How Do I Make My Announcement Bar Sticky On Dawn Theme?

Hello,

How can I make my announcement bar sticky on my site?
At the moment I have set my menu to be sticky but the announcement bar isnโ€™t :disappointed_face:

I would like both the announcement bar and menu to be sticky.

URL: https://bliskbeauty.com/

Thanks in advance :slightly_smiling_face:

Hi @moosh44

This is Richard from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Richard | PageFly

1 Like

Hello @moosh44 ,

You can try to follow these steps:

Go to Online Store โ†’ Theme โ†’ Actions โ†’ Edit code

Go to theme.liquid file โ†’ add this following code at the bottom of file

#shopify-section-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

#shopify-section-header .site-header {
  position: relative;
}

.site-header__logo img {
  max-width: 100%;
}

.site-header__announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.site-header__announcement-inner {
  max-width: 100%;
}

Save and preview

Hope this can help you out.

Ali Reviews team.

1 Like