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

How To Make A Sticky Product Image While Scrolling In Impact Theme

Solved

How To Make A Sticky Product Image While Scrolling In Impact Theme

CozzyCrib
Tourist
5 0 1

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!

Accepted Solution (1)

PageFly-Oliver
Shopify Partner
878 190 191

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.

View solution in original post

Replies 4 (4)

PageFly-Oliver
Shopify Partner
878 190 191

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.

CozzyCrib
Tourist
5 0 1

Thank you! It worked.

flashify
Visitor
1 0 0

This worked for me as well. Thank you. 
Just paste it after closing body tag and before the closing HTML tag in theme.liquid. 

StudioWildling
Shopify Partner
1 0 0

Awesome, thanks. This worked seamlessly for me. I just adjusted the top padding to suit my store better.