Jump to content

How to adjust the design / layout of related products?

Go to solution Solved by tuanphan,

Recommended Posts

Hi everyone,

Just wondering how to go about changing the padding, image size, heading # etc of 'related products' when it's featured on my products page?

My product image is displaying nice and small & square but my related products is huge and rectangle. There's also not enough padding/space above where it says "You Might Also Like", and I'd like to change the size of this heading. 

https://www.studiojacandco.com.au/resources/p/instagram-audit

Thanks in advance 🙂

Jaclyn

Link to comment
  • Replies 10
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Add to Design > Custom CSS

h2.ProductItem-related-label {
    padding-top: 40px;
    padding-bottom: 20px;
}
@media screen and (min-width:768px) {
    .ProductItem-relatedProducts.ProductList.clear .list-grid {
    grid-template-columns: repeat(3,1fr);
}
}

 

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
On 3/14/2023 at 5:38 AM, studiojacandco said:

That's much better, thank you!!

Do you know how I can make the related product image/s the same size & shape as the product image? Currently the main product is square but my related product is portrait/rectangle.

Add to Design > Custom CSS

/* Related Products */
.ProductItem-relatedProducts .grid-image-wrapper {
    padding-bottom: 100% !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
  • 2 months later...
On 6/10/2023 at 12:47 AM, TWBDesign said:

Hi @tuanphan, would you know how to display the related products as stacked vertically, rather than in a  horizontal row? With the images 50% width (on the left) and the product titles beside them (on the right). Thank you!

Like this?

image.thumb.png.ae41817534c58fae734f1dcd9d21083d.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
  • 1 year later...
On 6/27/2024 at 7:38 PM, therisejourney said:

Any idea on how to remove the price or any other tags? I just want the image to show!

 

https://www.therisejourney.com/lunch-learn-programs/p/honoring-aapi-heritage-month

You can use this code to Custom CSS box

div.ProductItem-relatedProducts section.grid-meta-wrapper {
    display: none !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
  • 1 month later...

Hello there,

any idea on how to make the whole Related Product section smaller?

I would also like to place the section title (You might also like) centered and add a line before the section or have a border all around the section.

 

Many thanks!

Link to comment
On 8/17/2024 at 11:41 PM, lo_ad said:

Hello there,

any idea on how to make the whole Related Product section smaller?

I would also like to place the section title (You might also like) centered and add a line before the section or have a border all around the section.

 

Many thanks!

#1. Smaller

You mean width smaller?

#2. Use this code to Custom CSS box

h2.ProductItem-related-label {
    text-align: center;
    border-top: 2px solid red;
    padding-top: 10px;
}

 

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
22 hours ago, tuanphan said:

#1. Smaller

You mean width smaller?

#2. Use this code to Custom CSS box

h2.ProductItem-related-label {
    text-align: center;
    border-top: 2px solid red;
    padding-top: 10px;
}

 

Perfect solution!

Many thanks @tuanphan

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.