Sticky header and announcement bar when scrolling up

Sticky header and announcement bar when scrolling up

Lars_Veldman
Excursionist
21 0 7

Hi,

Is there someone who can help me with my symmetry theme?

I want to make the header and announcement bar both sticky but only when scrolling up.

Kind regards,
Lars

Replies 3 (3)

rajweb
Shopify Partner
781 66 142

Hey @Lars_Veldman ,

I can definitely help you with that! You’ll need some custom JavaScript and CSS to make the header and announcement bar sticky only when scrolling up.

If you can’t share your store URL here, you can describe your current header setup—whether it’s a single div or separate elements for the announcement bar and header. Also, are you comfortable adding custom code in the theme?

Let me know, and I’ll guide you through it!

Thanks

 

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Dash Drop App: https://apps.shopify.com/dash-drop-delivery
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev

ProductifyGroups App:  Shopify App - Product Variants
Lars_Veldman
Excursionist
21 0 7

Thank you! my url is https://thefurrypawprint.com/
Custom code is no problem 🙂

Bundler-Manuel
Astronaut
959 47 110

Hi there Lars @Lars_Veldman  I came across this old blog post which has a lot of codes (not sure how effective they will be right now) but the steps and explanations in the guide will definitely still be relevant today, so you can have a look at it by searching for the article in this picture I share

IMG_4133.jpeg

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.