Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Im trying to make the product images stick when scrolling, so the customer can read the description while still viewing the product images.
this is my store: cozzycrib.com
its in Hebrew.
thank you all in advance!
Solved! Go to the solution
This is an accepted solution.
Hi @CozzyCrib ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
@media(min-width:767px){
#main product-gallery{
position: sticky;
top: 100px;
}
}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @CozzyCrib ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
@media(min-width:767px){
#main product-gallery{
position: sticky;
top: 100px;
}
}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Thank you! It worked.
This worked for me as well. Thank you.
Just paste it after closing body tag and before the closing HTML tag in theme.liquid.
Awesome, thanks. This worked seamlessly for me. I just adjusted the top padding to suit my store better.