Jump to content

How to add a divider on the product detail page

Recommended Posts

Hi guys,

Can someone help me add a divider on my product detail page? There is the option to add this on all other pages but not this one for some reason? I have one on all my other pages as an example, it sits right above the footer.

Also whilst i'm here, is someone able to provide a code to decrease the height on my product photos on mobile view only? Thanks!

URL: https://threadsonline.co.uk/store/p/cp-company-zipped-overshirt

Link to comment
  • Replies 9
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

You could simply add the border line to the footer to ensure it shows up on every page of your website. Or you could add the following code to add it only to the product detail pages:
 

 

.tweak-products-width-full .products.collection-content-wrapper{
border-bottom: 1px solid rgba(0, 0, 0, .12);
}

 

For the height of images on mobile I'd try:

@media screen and (max-width: 767px){
.ProductItem-gallery-slides-item{

height: 80%!important;

}

 

And change the percent to whatever height you like.

 

Link to comment
13 minutes ago, E-W said:

You could simply add the border line to the footer to ensure it shows up on every page of your website. Or you could add the following code to add it only to the product detail pages:
 

 

.tweak-products-width-full .products.collection-content-wrapper{
border-bottom: 1px solid rgba(0, 0, 0, .12);
}

 

For the height of images on mobile I'd try:

@media screen and (max-width: 767px){
.ProductItem-gallery-slides-item{

height: 80%!important;

}

 

And change the percent to whatever height you like.

 

They both worked - thanks! But now I've got a massive gap between the product photo & title... could you help?

 

 

Link to comment
6 minutes ago, threadsonline said:

They both worked - thanks! But now I've got a massive gap between the product photo & title... could you help?

 

 

Also I now need to move my controls up to the center on the image on mobile view, could you help?

Also if you know how to remove the '1/2' in the top right hand corner that would be great 🙂 

Screenshot 2024-03-15 133439.png

Link to comment

You can use this CSS code

/* Mobile Product Gallery Height */
@media screen and (max-width:767px) {
.tweak-product-basic-item-gallery-aspect-ratio-34-three-four-vertical .ProductItem-gallery-slides:before {
    padding-bottom:70% !important;
}
}

 

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.