Solved

How to make product photos sticky on Flex theme?

srdjank
Shopify Partner
9 0 2

Hi everyone,

 

Could someone please take a look at my site and let me know how to make the product photo sticky so that as the user scrolls down the form on the right, the product photo remains displayed on the screen?

 

I've tried the solutions already offered for this problem for different themes, but none of them have worked for me. I've tried setting various containers to position:relative and the image container to position:sticky, but none of it worked. There's probably something I'm missing, if anyone could take a quick look I would be eternally grateful.

 

https://vibrantwallart.com/collections/animals/products/galactic-lion

Accepted Solution (1)

PageFly-Victor
Shopify Partner
7865 1785 3044

This is an accepted solution.

Hi @srdjank 

This is Victor from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file styles.css.

Step 3: Paste the below code at bottom of the file -> Save

 

.product-gallery.product-gallery__thumbnails--false.product-gallery--media-amount-10.slideshow-transition--fade.product-gallery--bottom-thumbnails.display-arrows--false {

    position: sticky !important;

    z-index: 1111;

    top: 0;

}

 

Hope that my solution works for you.

Best regards,

Victor | PageFly

banned

View solution in original post

Replies 5 (5)

Cloying
Visitor
2 0 0

Same question

PageFly-Victor
Shopify Partner
7865 1785 3044

This is an accepted solution.

Hi @srdjank 

This is Victor from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file styles.css.

Step 3: Paste the below code at bottom of the file -> Save

 

.product-gallery.product-gallery__thumbnails--false.product-gallery--media-amount-10.slideshow-transition--fade.product-gallery--bottom-thumbnails.display-arrows--false {

    position: sticky !important;

    z-index: 1111;

    top: 0;

}

 

Hope that my solution works for you.

Best regards,

Victor | PageFly

banned
srdjank
Shopify Partner
9 0 2

This worked perfectly, thank you!

PageFly-Victor
Shopify Partner
7865 1785 3044

You are welcome @srdjank 

banned
N-B
Tourist
7 0 1

This doesn't work on the Flex (Swagger) theme. Do you have another solution?

Thank you