All things Shopify and commerce
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:
Thank you
Solved! Go to the solution
This is an accepted solution.
Just replace the code you added before, try again
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:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Did you want to hide the title and price of the product card?
yes, see my previous post:
<style>
@media (max-width:768px){
.card__information {
display: none;
}
}
</style>
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:
This is an accepted solution.
Just replace the code you added before, try again
Thank you JonasS,
it worked I must have made a mistake before when pasting it, but now the images are not clickable.
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.
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:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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
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.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024