Make announcement bar sticky Spotlight theme version 11.0.0

I recently updated to Spotlight v. 11.0.0 which has an announcement bar feature. I would like to make the bar sticky (non-scrolling). I have tried solutions posted for other themes, but they do not work for mine. Thanks in advance!

Hey @sfeller

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Thanks! That worked!

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

For anyone in the same situation, if you try this code directly on your store it will not work.
Quick explanation:
the div#… is the id of the div and it is unique.
to make it work in your store you should inspect your announcement bar html and use that id instead of the one of this answer.

example : shopify-section-sections–20416973504856__978956ef-5812-4f2a-b84b-d8797a300758

position: fixed is what actually makes it sticky.
Beware, this is a forced approach to do the trick forcing everything.

After updating to Spotlight version 12 this morning the solution no longer works.

I was able to find the new section id number and now it is working again. Thanks again for your help!

Hi! would you be able to help me with my store https://nomoreaccessories.com/

cannot find a solution that works to have our announcement bar sticky