Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I want to show "recently viewed products" on the homepage. When I add the section, I get this:
As you can see, the pictures are too big. I want something similar as the above "featured products".
Can someone help me find a good css code for this problem?
Solved! Go to the solution
This is an accepted solution.
- Here is the solution for you @pool-care
- Please follow these steps:
- Then find the theme.liqid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.
<style>
@media screen and (min-width: 990px) {
.grid--2-col-desktop .grid__item {
width: calc(20% - var(--grid-horizontal-spacing) / 2) !important;
}
}
</style>
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
I don't see them on your site. Can you add them back so I can check?
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
They are back now! 😀
This is an accepted solution.
- Here is the solution for you @pool-care
- Please follow these steps:
- Then find the theme.liqid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.
<style>
@media screen and (min-width: 990px) {
.grid--2-col-desktop .grid__item {
width: calc(20% - var(--grid-horizontal-spacing) / 2) !important;
}
}
</style>
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025