Solved

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

Andrecolap
Excursionist
47 0 5

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

 

<style>
.card__content {
opacity: 0 !important;
}
</style>

 

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

 

Andrecolap_0-1693753325094.jpeg

 

Accepted Solutions (2)
JonasS
Shopify Partner
73 8 12

This is an accepted solution.

 Just replace the code you added before, try again

Cobo-Sf : Your needs, our speed – Together, we succeed!
Feel free to let us know what you really want to change for your client.

View solution in original post

Moeed
Shopify Partner
3808 962 1193

This is an accepted solution.

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 </body> tag

<style>
.card__content {
    opacity: 0;
    height: 0;
}
</style>

RESULT:

 

Moeed_0-1693756898633.png

 

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

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 12 (12)

JonasS
Shopify Partner
73 8 12

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

 

Cobo-Sf : Your needs, our speed – Together, we succeed!
Feel free to let us know what you really want to change for your client.
JonasS
Shopify Partner
73 8 12

 

<style>
@media (max-width:768px){
    .card__information {
    display: none;
   }
}
</style>

 

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

Cobo-Sf : Your needs, our speed – Together, we succeed!
Feel free to let us know what you really want to change for your client.
Andrecolap
Excursionist
47 0 5

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:

Andrecolap_0-1693756482960.jpeg

JonasS
Shopify Partner
73 8 12

This is an accepted solution.

 Just replace the code you added before, try again

Cobo-Sf : Your needs, our speed – Together, we succeed!
Feel free to let us know what you really want to change for your client.
Andrecolap
Excursionist
47 0 5

Thank you JonasS,

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

Andrecolap
Excursionist
47 0 5

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.

 

Moeed
Shopify Partner
3808 962 1193

This is an accepted solution.

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 </body> tag

<style>
.card__content {
    opacity: 0;
    height: 0;
}
</style>

RESULT:

 

Moeed_0-1693756898633.png

 

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

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Andrecolap
Excursionist
47 0 5

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

Moeed
Shopify Partner
3808 962 1193

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

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Andrecolap
Excursionist
47 0 5

Thank you Moeed,

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

Thanks

Moeed
Shopify Partner
3808 962 1193

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. 

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️