Jump to content

How to have separate landscape and portrait product images`

Go to solution Solved by Web_Solutions,

Recommended Posts

Hello! On our website, we are looking to have two separate pages that display portrait products and landscape products. Our problem comes with adding the landscape products, as once we change the aspect ratio, all products including the ones in our portrait page are changed to this aspect ratio. 

Would there be any code to correct this?

 

Link to comment
13 minutes ago, Carvases said:

image.thumb.png.1e326af8299f4a4c25ec3c904487cc01.pngThe attached image is supposed to be landscape however once changed to the 3:2 aspect ratio, it changes the portrait page to the same

Can you share your website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
15 minutes ago, Carvases said:

Did you add product of those? products and landscape

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Apologies for the late reply, I have attempted to add the landscape products however once changing the format of the image to 3:2 aspect ratio, it changes all of the portrait images to the same aspect ratio, so I have removed it. As we're still getting visits to our website, we're looking to keep it presentable whilst working on this issue.

Link to comment
2 hours ago, Carvases said:

Apologies for the late reply, I have attempted to add the landscape products however once changing the format of the image to 3:2 aspect ratio, it changes all of the portrait images to the same aspect ratio, so I have removed it. As we're still getting visits to our website, we're looking to keep it presentable whilst working on this issue.

You didn't add a product on Landscapes. If you add a product then I'll give you code for change the image ration for that.

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
Just now, Carvases said:

Hi! Have you been able to see the landscapes page with the product? Thanks!

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

#collection-64f5d32803e6186358dbec2b .products.collection-content-wrapper .grid-image-wrapper {
    padding-bottom: 66.666% !important;
}

 

Screenshot_537.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
29 minutes ago, Web_Solutions said:

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

#collection-64f5d32803e6186358dbec2b .products.collection-content-wrapper .grid-image-wrapper {
    padding-bottom: 66.666% !important;
}

 

Screenshot_537.png

Thank you so much, that is perfect! Is there anyway to also show the image as landscape when you click on the product? 🙂

Link to comment
  • Solution
21 minutes ago, Carvases said:

Thank you so much, that is perfect! Is there anyway to also show the image as landscape when you click on the product? 🙂

Yes. Replace the previous code with the code below.

#collection-64f5d32803e6186358dbec2b .products.collection-content-wrapper .grid-image-wrapper, .collection-64f5d32803e6186358dbec2b .ProductItem-gallery-slides:before {
    padding-bottom: 66.666% !important
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.