decrease the space between product photos

decrease the space between product photos

rawandrefine
New Member
7 0 0

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 

Replies 11 (11)

Artzen_tech
Shopify Partner
552 113 111

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;
}

 

 Screenshot_3.png

 

Let me know if need further assistance

Regards,

Artzen Technologies

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
rawandrefine
New Member
7 0 0

Hi

 

base.css is not an option under assets 

oscprofessional
Shopify Partner
16343 2438 3179

@rawandrefine 

check theme.css

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
Artzen_tech
Shopify Partner
552 113 111

theme.scss  

paste here

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
rawandrefine
New Member
7 0 0

i still want them 540 x 720 px - is this possible please?

Artzen_tech
Shopify Partner
552 113 111

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

If helpful, please Like and Accept this Solution to help others
Artzen Technologies | A Shopify Development Agency
WhatsApp - 9877983930

Book FREE CONSULTATION who want to migrate to Shopify or want to start an eCommerce business with Shopify
rawandrefine
New Member
7 0 0

i saved the images as 540 x 720

 

can you confirm what i need to do please?

rawandrefine
New Member
7 0 0

hello? can you confirm what i need to do please as the images im uploading are 540 x 720 

 

thanks

oscprofessional
Shopify Partner
16343 2438 3179

@rawandrefine 

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

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
rawandrefine
New Member
7 0 0

This did work but the pictures have now gone square, i still want them 540 x 720 px - is this possible please?

OmeerEco
Excursionist
16 1 3

Just remove the position relative like attacked:

OmeerEco_0-1674118384428.png

 

Ecommerce Specialist