Shopify themes, liquid, logos, and UX
How can I fix (sticky) Announcement bar and Header Dawn theme on scrolling my website
Solved! Go to the solution
This is an accepted solution.
Hi @Filip02
Have you tried the code I sent you above?
.shopify-section-group-header-group.section-header {
position: fixed !important;
top: 38.8px;
z-index: 9999 !important;
width: 100%;
}
div.shopify-section-group-header-group.announcement-bar-section {
position: fixed !important;
top: 0 !important;
z-index: 9999 !important;
width: 100%;
}
Hi @Filip02 , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
Hi @Filip02
.shopify-section-group-header-group.section-header {
position: fixed !important;
top: 38.8px;
z-index: 9999 !important;
width: 100%;
}
div.shopify-section-group-header-group.announcement-bar-section {
position: fixed !important;
top: 0 !important;
z-index: 9999 !important;
width: 100%;
}
Hi @Filip02
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
div#shopify-section-sections--16462901215321__announcement-bar {
position: sticky !important;
top: 0;
z-index: 1000 !important;
width:100%;
}
div#shopify-section-sections--16462901215321__header {
position: sticky !important;
top: 38px;
z-index: 999 !important;
width:100%;
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Hi thanks for help but this is what pops up when I want to save
Hi @Filip02
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
div#shopify-section-sections--16462901215321__announcement-bar {
position: fixed !important;
top: 0;
z-index: 1000 !important;
width:100%;
}
div#shopify-section-sections--16462901215321__header {
position: fixed !important;
top: 38px;
z-index: 999 !important;
width:100%;
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Don,t work bro
This is an accepted solution.
Hi @Filip02
Have you tried the code I sent you above?
.shopify-section-group-header-group.section-header {
position: fixed !important;
top: 38.8px;
z-index: 9999 !important;
width: 100%;
}
div.shopify-section-group-header-group.announcement-bar-section {
position: fixed !important;
top: 0 !important;
z-index: 9999 !important;
width: 100%;
}
The script works but I can't save it
I fix it just pasted the for AB in AB custom css and coed for Header in header custom css
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024