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 5
  • Views 524
  • Created
  • Last Reply

Top Posters In This Topic

  • 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

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.