Shopify themes, liquid, logos, and UX
Some products have square photos and some have portrait - is there a way I can make them all the same size so it presents better on my website?
Thanks!
Hi @EmmaLILI
Check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
span.snize-thumbnail img {
height: 44vh;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi thank you
Unfortunately this has distorted/stretched out the images that were square - is there a way to prevent this
The default height is 300px convert 44vh to px is 352 I only add a bit to make it uniform. You can make it 30vh or 40vh.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @EmmaLILI
Its Artzen Technologies! We will be happy to help you today.
Instead of adding the height to the images you can use the images of same size to not jeopardize the look and feel of the images.
Or else you can add the css to make the images of same size.
To do this Follow the Below Steps:
1) Go to your Online Store
2) Edit Code
3) Find theme.liquid file or CSS File
4) Add the following CSS at the bottom of the file above </body>
span.snize-thumbnail img {
height: 30vh;
}
Let me know if need further assistance
Regards,
Artzen Technologies
Thanks but this didn't work either
@EmmaLILI
Can you kindly share your store link (with the password, if any) with us?
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hi @EmmaLILI
You can try this code by following these steps:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file base.css or theme.css
Step 3: Insert the below code at the bottom of the file -> Save
#snize-search-results-grid-mode span.snize-thumbnail img { object-fit: cover !important; height: 100% !important; }
Result:
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024