How do I make the announcement bar sticky in the Refresh theme?

Solved

How do I make the announcement bar sticky in the Refresh theme?

Nourdennaoui
Tourist
10 0 1

 my question is how i make annoucement bar sticky in refresh theme: thats my site: https://ledlightslb.com/

nour
Accepted Solution (1)

GemPages
Shopify Partner
5625 1261 1240

This is an accepted solution.

Hello @Nourdennaoui 

 

It's GemPages support team and glad to support you today.

I would like to give you a solution to support you.

1. Go to Online Store -> Theme -> Edit code.

2. Open your theme.liquid theme file.

3. Paste the below code before </body>:

 

<style>
   body #shopify-section-announcement-bar{
      position: sticky;
      position: -webkit-sticky;
      top: 0px;
   }
  body .shopify-section-header-sticky{
    top: 38px;
   }
</style>

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

View solution in original post

Replies 4 (4)

GemPages
Shopify Partner
5625 1261 1240

This is an accepted solution.

Hello @Nourdennaoui 

 

It's GemPages support team and glad to support you today.

I would like to give you a solution to support you.

1. Go to Online Store -> Theme -> Edit code.

2. Open your theme.liquid theme file.

3. Paste the below code before </body>:

 

<style>
   body #shopify-section-announcement-bar{
      position: sticky;
      position: -webkit-sticky;
      top: 0px;
   }
  body .shopify-section-header-sticky{
    top: 38px;
   }
</style>

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Nourdennaoui
Tourist
10 0 1

thanks ur very helpful 🙂

nour
GemPages
Shopify Partner
5625 1261 1240

It's my pleasure to help 😍.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
aleksilepisto
Visitor
1 0 0

Hi there! 🙂 I followed your instructions and added the code on my theme.liquid (check the attached screenshot). Now the sticky annoucement bar almost works, but not quite. It made the bar area sticky, but the actual bar doesn't move with it? Hope you can help. Preview store: https://thewellnezzy.com/?_ab=0&_fd=0&_sc=1