Shopify themes, liquid, logos, and UX
Hi there,
I am busy building our webshop and I know my way around code a bit, even if Shopify's liquid structure is new to me. I am getting the hang of the liquid coding, but I can't seem to solve the thumbnail issue, so far.
I am trying to reduce the thumbnail size on the product page by about 50%, because some products have quite a number of variants and the page therefore becomes crowded quick.
Website is still not fully published, so password = medicus.
URL to specific product page: https://medicusserpens.de/products/dienstgrad-schlaufe-sanoa-diverse
Website language is German, so don't be afraid. 😉
You're looking for the "SanOA - diverse" product.
Screenshot shows the thumbnails I would like to shrink by about 50%. It might look even more crowded, when you're viewing this because I am still busy adding variant pics.
I would like to change this setting globally (all products), but only on Desktop view (certain screen size as limitation?), because on mobile there are no screenshots anyways.
Any help is much appreciated!
Solved! Go to the solution
This is an accepted solution.
Try this one.
@media screen and (min-width: 990px) {
.thumbnail-list {
grid-template-columns: repeat(6, 1fr) !important;
}
}
Note: This is apply only on the desktop, tablet and mobile is not included.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hey @medicus-serpens
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>
@media screen and (min-width: 768px) {
.thumbnail-list {
grid-template-columns: repeat(7, 1fr) !important;
}
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thanks a bunch! This would have also worked, but I wanted to incorporate it into the base.css file.
in any case: thanks for the super fast help, reply and working solution.
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.
This is an accepted solution.
Try this one.
@media screen and (min-width: 990px) {
.thumbnail-list {
grid-template-columns: repeat(6, 1fr) !important;
}
}
Note: This is apply only on the desktop, tablet and mobile is not included.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thanks a bunch! This worked a treat and it looks much neater now. Could you explain the specific css a bit more?
What determines the size of the individual thumbnail boxes? 6 determines to number of tiles per row, I guess, but what determines the size?
Cheers!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024