Solved

Fixed/Sticky Product Imaged on Page scroll. VENTURE theme.

HelpX
Tourist
8 1 15

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.

 

Screen Shot 2019-10-04 at 4.14.30 pm.png

 

Accepted Solution (1)

HelpX
Tourist
8 1 15

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.

 

Screen Shot 2019-10-04 at 4.14.30 pm.png

 


 

View solution in original post

Replies 20 (20)

KetanKumar
Shopify Partner
36843 3636 11978

Hello, @HelpX 

Thanks for post.

Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
san5
Tourist
4 0 1

How to do it for debutify theme.

Sanoj
New Member
6 0 0

Hello

 

It works but only for product with 2 or more pictures.

Do you know what to add to the code to make it sticky if there is only one picture ?

Thanks

KetanKumar
Shopify Partner
36843 3636 11978

Hello, @Sanoj 

can you please try this 

https://codepen.io/ikhwanb/pen/VwZKLOw

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
enrique00
Tourist
8 0 1

Hello.

The Link is broken.

DO you have a solution for Minimal theme?

maaz0938
New Member
4 0 0

Hi          

HelpX
Tourist
8 1 15

Here's the updated code, that will work for products with one photo and multiple photos. 
Please, try and let me know if it worked.

@include media-query($medium-up) {
  .template-product .page-container {
    overflow: visible;
    padding-top: 1px;
    .grid__item.medium-up--three-fifths, .grid__item.medium-up--one-half {
      position: -webkit-sticky;
      position: sticky;
      top: 100px;
    }
  }
}
Sanoj
New Member
6 0 0

Hello dude,

 

It works perfectly.

Thank you very much 🙂

 

HelpX
Tourist
8 1 15

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.

 

Screen Shot 2019-10-04 at 4.14.30 pm.png

 


 

Sanoj
New Member
6 0 0

 Hello dude,

 

I changed my them for Turbo 5.0 and I wanted to repeat this.

 

Unfortunately, it didn't work.

Any idea how to stick the picture on the product description of Turbo 5 ?


THANKS A LOT.

Jason

Djovan23
Visitor
1 0 0

Hey HelpX

 

Thanks a lot! Works great for me, that you so much! Can't thank you enough! Just one thing which I would love you to help me with, please!

Djovan23_0-1596745418992.png

After adding the code a very strange bar appeared. (the bar pushes down my content on the bottom of the page to under the page so now visitors need to scroll down) I would love if I could just get it away as it was before the sticky scroll. Please will you help me? Thank you so much! 

 

SOLGLPK
Visitor
1 0 0

Has anyone solved this? I'm having the same annoying bar issue..

Marwisniewski
New Member
5 0 0
Add to the bottom of your theme.scss.liquid and see if it works.
 
@include media-query($medium-up) {
  .template-product .page-container {
  overflow: visible;
  padding-top: 1px;
    .grid__item.medium-up--three-fifths, .grid__item.medium-up--one-half {
      position: -webkit-sticky;
      position: sticky;
      top: 100px;
    }
  }
}
AshokDaga
Visitor
1 0 0

IT DIDN'T WORK MY FRIEND..

 

jordancharm1994
Visitor
2 0 0

Hello, thanks for the help, this worked on the desktop version. Can you please provide a solution for MOBILE?

Thanks!

Luksteks
Visitor
3 0 0

Hello,

Thanks for help but it did not work on Icon theme, can you help us too please?

Kenza55
Visitor
2 0 1

Hi Im using debutify theme and i cannot find ' theme.scss.liquid " i looked at the theme 'Sense ' just to see if it's there but it's not could you please give me any help?

Alexis_drvcm
Tourist
5 0 1

Hi can you help me on my theme it is different from yours but i need exactly the same thing on my product page, thanks for your help !

HelpX
Tourist
8 1 15

@Alexis_drvcm , @Sanoj  , guys please post your request as separate topic on the forum and we will help you! This topic is made specifically for VENTURE theme 😃 Have a grate time

Jason-Evans
Tourist
12 0 2

This solution worked great, Thank you