Sticky/Fixed Header and Navigation for Debut Theme

Hey everyone,

I have coded a professional, highly tested solution for this as well if you’d like to try.

You can download/install it for free under 1 minute, just click here to read the tutorial.

Besides that you also have options to turn it on/off at the customize page, even to allow it only on desktop or mobile depending on your needs.

Kind regards,
Diego

1 Like

Hi. After installing several applications, such a message appeared on my website.
Does anyone know how to remove it? It’s under the URL bar and the Menu bar in the center is gone. Thank you

Hi there!

I followed option 1 to add the sticky header, but I need to temporarily stop using the sticky header. When I comment out all the code I added for the sticky header in the theme.js and theme.scss.liquid and save, the header is still sticky on the published website. Would you kindly let me know what else I may need to do to remove the sticky header?

Thanks so much!

1 Like

Thanks Diego, the free version works well for me. There are a few small bugs like resetting to the top of the page when you click the search icon in the menu bar, but these are very minor. Overall an easy copy & paste solution!

Hi,

I added the Part 2 of the code given in the original post. The navigation menu is sticking and the announcement bar moves but as you scroll it shows the background above the navigation menu instead of the navigation moving up and replacing the announce

ment bar. See photo.

1 Like

Same problem for me :disappointed_face:

my website is topkozuchy.sk please if you could fix the space and moving menu bar to the top after scolling down it would help me.

@topkozuchy

Have you checked this solution yet? It fixes the problem you mention.

its not working for me

06-Oct-2020 — The sticky header must contain the navigation as well. … Making the menu fixed means that your navigation will always be fixed to the top of the … I’ll do the integration on the Debut theme which at this time is the default …

Same problem for me :disappointed_face:

Same problem for me :disappointed_face:

I have managed to fix it with option 1 (but only on desktop).

At first I got a delay on the top of each page, but I changed the padding top to 226px instead of 80px.

I looks fine on desktop, but on mobile it is still a delay. Can anyone help?

@emelineno

Iwas dealing with the same issue. gave up trying and paid $15 for some dev here to get it fixed for me. these things should be done automatically by shopify…

I do have a little problem though… after I scroll down the page and then back to the top, the top bar covers the content underneath it.

good to see

@kwaris @AustinK @rahulmittal79

You may want to give a try to this solution if you’re still having trouble with it.

Kind regards,
Diego

Caution This is an advanced tutorial and is not supported by Shopify .

Hi I followed option 2. I have my announcement enabled. However when I scroll down, there is an awkward empty gap where the announcement banner should have been. I only want my menu bar to be sticky. Can someone please help to assist? Thank you

1 Like

Hi,
Very nice article.
I really enjoyed going through all the great information you’ve provided in this great article.
Keep up the great work.
Thank you

Hi Sean or anyone who can help.

Thanks for the detailed solution, which is very helpful…and now comes the however. I cannot find the under Assets mentioned file /theme.scss.liquid
I’ve looked at other posts and found out that the file may be named css.theme (no s at the beginning and no .liquid at the end) and accordong to the authors, that should also do the job.
So I pasted the code at the bottom of the file and then the second block of code in the Assets theme.js. file and it still doesn’t work. I’ve made sure the Logo is aligned left before atarting the c.n.p action.

Any suggestion?

Thanks

Neil

UPDATE …I read on until I found a suggestion from Silverclouding Shopify Expert. This seems to have solved the issues. So thanks and I’ll close this message

Regards

85 14 21