Jump to content

add photos & text to product page?

Recommended Posts

I need to add a PNG image to the left of my dropdowns on my product page and a bit of text directly underneath my photo gallery but my code is not working for some reason.

I cannot use the additional description text because the text needs to be directly under the photos. I've already used the additional description text.

Photo attached of what it should look like, I've already coded the rest with CSS.

password is DISTILLE

 

 

 

thumbnail_private shop.jpeg

Link to comment
  • Replies 10
  • Views 404
  • Created
  • Last Reply

Top Posters In This Topic

I removed it since it didn't work, for the text underneath I tried this first:

 .ProductItem-gallery-thumbnails:after {
    content: "test";
    font-size: 14px !important;
  }

This put the text in the same line as the thumbnails, I could not find the correct identifier to get it to be underneath the entire container. 

Then I tired a code you wrote elsewhere on squarespace, tweaked it a bit, and added the text as an image block. I suppose this might work for an image next my option dropdowns as well? But even with changing the padding I cannot seem to get the image to be closer underneath the thumbnails. This is the code:

<script>
$(document).ready(function(){
    $('section.ProductItem-additional .image-block').insertAfter('.ProductItem-gallery-thumbnails');
});
</script>
<style>
.ProductItem-gallery-slides {
    overflow: visible !important;
}

.ProductItem-gallery {
    overflow: visible !important;
    flex-wrap: wrap;
}

.ProductItem-gallery .image-block {
    width: 100% !important;
    flex: 1 1 100% !important;
}
  
.ProductItem-gallery .image-block.has-aspect-ratio  {
    padding-bottom: 40% !important;

}
 
</style>

 

Link to comment
On 6/13/2024 at 11:18 PM, Gmm398 said:

I removed it since it didn't work, for the text underneath I tried this first:

 .ProductItem-gallery-thumbnails:after {
    content: "test";
    font-size: 14px !important;
  }

This put the text in the same line as the thumbnails, I could not find the correct identifier to get it to be underneath the entire container. 

Then I tired a code you wrote elsewhere on squarespace, tweaked it a bit, and added the text as an image block. I suppose this might work for an image next my option dropdowns as well? But even with changing the padding I cannot seem to get the image to be closer underneath the thumbnails. This is the code:

<script>
$(document).ready(function(){
    $('section.ProductItem-additional .image-block').insertAfter('.ProductItem-gallery-thumbnails');
});
</script>
<style>
.ProductItem-gallery-slides {
    overflow: visible !important;
}

.ProductItem-gallery {
    overflow: visible !important;
    flex-wrap: wrap;
}

.ProductItem-gallery .image-block {
    width: 100% !important;
    flex: 1 1 100% !important;
}
  
.ProductItem-gallery .image-block.has-aspect-ratio  {
    padding-bottom: 40% !important;

}
 
</style>

 

#1. So you want to add text to this position (under thumbnails)?

image.thumb.png.0a97aa0d8d8e1b88beb9d8d8b5693673.png

#2. With your second problem, to make image closer to Thumbnail, add this code under your code

<style>
  .ProductItem-gallery-thumbnails {
    margin-bottom: 0px !important;
}
</style>

image.png.6dc7ea08877958e4f37a8a6280d87ea3.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

You are amazing thank you so much! One last thing. When I added that, then my qty input box that I coded to be 50% to match the width of the other two inputs and my "add to cart" button now are slightly off when I change screen size... (at full screen they are in alignment), they are not responding exactly like the first to inputs. I tried making  all the boxes the same size by using percentages but that didn't work for the add to cart. It only responds to em or px? I tried making add to cart button is 30em and the others are 22em, but then they don't respond at all of course when I change window size. Anyway to get the add to cart and the QTY input to respond like the first two variants? 

Link to comment
On 6/23/2024 at 10:44 PM, Gmm398 said:

You are amazing thank you so much! One last thing. When I added that, then my qty input box that I coded to be 50% to match the width of the other two inputs and my "add to cart" button now are slightly off when I change screen size... (at full screen they are in alignment), they are not responding exactly like the first to inputs. I tried making  all the boxes the same size by using percentages but that didn't work for the add to cart. It only responds to em or px? I tried making add to cart button is 30em and the others are 22em, but then they don't respond at all of course when I change window size. Anyway to get the add to cart and the QTY input to respond like the first two variants? 

Can you take a screenshot of problem?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.