add to cart button sticky

Hello Shopify Community,

I’m facing an issue with my eCommerce website, zelzis.com. On all product pages, the Add to Cart and Buy Now buttons are not sticky—they only appear when I scroll, but they don’t remain visible. However, on other pages, these buttons work as expected and remain sticky while scrolling.

I’ve attached screenshots showing the difference. Can someone please check and help me resolve this issue?

Thank you in advance for your assistance!

Best regards,

  • Here is the solution for you @zelzis
  • Please follow these steps:

  • Then find the theme.liquid file.
  • Then add the following code at the before tag and press ‘Save’ to save it.

  • Here is the result you will achieve:

  • Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.

hii

your code is paste but some issyu i want to our page in refresh to your button is show in header level sticky and some scroll to fotter level this are issyu faced i want to share screenshot


Can you replace to this code @zelzis

this code apply in head tag but not work i want to requested

i want to share some desktop connect option provide

anydesk

teamviewer

google meet

you are intrested for our work

You can private message me and share the teamview code with me.

please share some guidelince how share in private message for you


Can you try thiss code @zelzis