Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
i am looking for a way to decrease the gap between products so the photos are bigger and closer together
tried a few codes and nothing has worked yet
the url is https://rawandrefine.com/collections/tumble-stones-rough
i also tried a test collection where all pics were the exact same size and the gap was still there
can anyone help please?
the theme is narrative so theme.scss.liquid not css
Hello @rawandrefine
Its Artzen Technologies! We will be happy to help you today.
1. Go to online store > theme > Edit code > Assets > base.css (file) and Paste the below code at bottom of the file -> Save
.card__image-wrapper--aligned .card__image--align{
object-fit: cover;
}
Let me know if need further assistance
Regards,
Artzen Technologies
Hi
base.css is not an option under assets
check theme.css
theme.scss
paste here
i still want them 540 x 720 px - is this possible please?
Sorry, @rawandrefine
Your image doesn't have enough space to show on this (540 x 720)pixel because you have taken max-width:980px.
Let me know if need further assistance
Regards,
Artzen Technologies
i saved the images as 540 x 720
can you confirm what i need to do please?
hello? can you confirm what i need to do please as the images im uploading are 540 x 720
thanks
img.card__image.card__image--align.fade-in.lazyautosizes.lazyloaded {
object-fit: cover;
}
Add this css at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid
This did work but the pictures have now gone square, i still want them 540 x 720 px - is this possible please?
Just remove the position relative like attacked:
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025