Shopify themes, liquid, logos, and UX
Hi,
I need to make the announcement bar sticky on all pages, above the header menu (already sticky). Tried all online solutions but nothing has worked. Any advice would be much appreciated!
Solved! Go to the solution
This is an accepted solution.
@naximov , go to base.css and add the following code:
sticky-header.header-wrapper.color-background-1.gradient.header-wrapper--border-bottom {
margin-top: 3.8rem !important;
}
.utility-bar.color-inverse.gradient.utility-bar--bottom-border {
position: fixed !important;
width: 100% !important;
height: 4rem !important;
}
This is an accepted solution.
@naximov , Add this code to base.css :
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu.header--has-social {
margin-top: 3.8rem !important;
}
This is an accepted solution.
@naximov , go to base.css and add the following code:
sticky-header.header-wrapper.color-background-1.gradient.header-wrapper--border-bottom {
margin-top: 3.8rem !important;
}
.utility-bar.color-inverse.gradient.utility-bar--bottom-border {
position: fixed !important;
width: 100% !important;
height: 4rem !important;
}
thanks - that worked but the header is now partially obstructed by the announcement bar. See the site
This is an accepted solution.
@naximov , Add this code to base.css :
header.header.header--middle-left.header--mobile-center.page-width.header--has-menu.header--has-social {
margin-top: 3.8rem !important;
}
This worked! Can you advise how I can center the header menu? When viewing the site full screen, the announcement text is centered, but the header menu appears off to the left?
I really cannot get my announcement bar to stick. Not can I find the base.css I dont seem to have it?
https://mayli-jewels.com/
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025