How can I make the announcement bar sticky on mobile with Dawn theme?

Help! I need the announcement bar sticky on desktop and mobile, but can only seem to get it to work on desktop using the forums here. Can anyone help?

There is not a ‘display’ tab nor anything that says ‘responsive’ in the announcement bar settings.

1 Like

Hi @reallycoollivin , can you share your store url?

https://www.reallycoolliving.com/

Go to base.css and add the following snippet :

@media screen and (max-width: 640px) {
      .announcement-bar-section {
       position: sticky;
       top: 0;
}
}

Just tried and it does not work. I left it published so you can check.

It seems that other code overwriting my code , add the following snippet :

@media screen and (max-width: 640px) {
      .announcement-bar-section {
       position: sticky !important;
       top: 0 !important;
}
}

Doesn’t work

Try this :

.announcement-bar-section {
    position: sticky !important;
    top: 0 !important;
}

exactly what I had before, sticky on desktop, but not mobile.

Looks like you got this resolved! I’m having the same issue, how did you resolve?

Did you ever get an answer to this?