Dawn theme - how to reduce space between images on collections on mobile

Hi there,

I would like to reduce the space between images on collections on mobile.

In order to get rid of titles and price I added the following to theme.liquid

.card__content { opacity: 0 !important; }

Maybe that is where the problem originated.

Below the screenshot of what I see now on mobile and the link to the website, the password is Chonga:

https://77af35.myshopify.com/

Thank you

Did you want to hide the title and price of the product card?

yes, see my previous post:

https://community.shopify.com/topic/2208860


try the code above, it will only work for mobile mode

Where should I place it? Does it go in theme.liquid?

I tried to replace the code I added before, and I tried to remove that and add this to the bottom of theme.liquid but it didn’t work, in both cases I have titles and prices again:

Just replace the code you added before, try again

Hey @Andrecolap

Remove all the code you’ve added so far and add this code by these steps

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Thank you JonasS,

it worked I must have made a mistake before when pasting it, but now the images are not clickable.

Hi Moeed, what JonasS proposed worked, so I didn’t try your last code, but thanks for replying.

Hey @Andrecolap

The code which @JonasS provided made your products unclickable and no user can click on them but the code I provided solves your issue and makes the product clickable as well.

Best Regards,

Moeed

Actually the links do not longer work after this change. Now I can’t open the pages relating to the products clicking on the images.

Thank you Moeed,

I changed the code again, it seems to be perfect now.

Thanks

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.