Shopify themes, liquid, logos, and UX
Hi Friends!
Here's how you can make product images sticky on scroll on Venture template.
1- Click on Online store => Actions => Edit code => theme.scss.liquid
2- At the very bottom of the code paste the following code:
@include media-query($medium-up) { .template-product .page-container { overflow: visible; .grid__item.medium-up--three-fifths { position: -webkit-sticky; position: sticky; top: 100px; } } }
3- Click save! And it should work.
Solved! Go to the solution
This is an accepted solution.
UPDATED VERSION FOR PRODUCTS WITH ONE AND MORE PHOTOS
Here's how you can make product images sticky on scroll on Venture template.
1- Click on Online store => Actions => Edit code => theme.scss.liquid
2- At the very bottom of the code paste the following code:
@include media-query($medium-up) { .template-product .page-container { overflow: visible; .grid__item.medium-up--three-fifths, .grid__item.medium-up--one-half { position: -webkit-sticky; position: sticky; top: 100px; } } }
3- Click save! And it should work.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024