How can I make my announcement bar at the top sticky on the Craft theme?

Solved

How can I make my announcement bar at the top sticky on the Craft theme?

GiudFabri123
Explorer
76 0 16
Accepted Solution (1)

EBOOST
Shopify Partner
1405 352 434

This is an accepted solution.

Hi @GiudFabri123 ,


May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code

EBOOST_1-1672356985580.png
2. Assets/base.css
3. Add code below to end of file

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

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free. Github.com/eboost10
- ❤❤DONATE ❤❤Coffee tips

View solution in original post

Replies 2 (2)

EBOOST
Shopify Partner
1405 352 434

This is an accepted solution.

Hi @GiudFabri123 ,


May I suggest to update code these steps:

1. Go to Store Online-> theme -> edit code

EBOOST_1-1672356985580.png
2. Assets/base.css
3. Add code below to end of file

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

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free. Github.com/eboost10
- ❤❤DONATE ❤❤Coffee tips
GiudFabri123
Explorer
76 0 16

Thank you! It works!