A Shopify store owner is experiencing a layout issue where the announcement bar overlaps and covers half of the header on their purchased theme. The user attempted to fix it by adding CSS code above the </body> tag but saw no results.
Proposed Solutions:
Multiple community members offered different approaches:
Reorder theme sections: Remove custom sticky header code, then drag the Header block below the Announcement bar in the theme customizer and set sticky header to “Always”
CSS fixes: Several users provided custom CSS snippets to be added either:
Above the </body> tag in theme.liquid
At the end of the style.css file
Before </head> in theme.liquid
The CSS solutions primarily adjust the positioning of the navigation/header element (using top property with values like 3rem, 44px, or 70px) to prevent overlap with the announcement bar.
Status: The issue remains unresolved as the original poster has not confirmed which solution worked. Screenshots were provided by helpers showing expected results.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
Please remove the code you added to make your header sticky, then go to your store admin > Sales channels > Online store > Themes > Customize > Header, drag and drop the Header block below the Announcement bar, and change the Sticky header of the Header to Always
Hello @aynoorstudios
Go to online store ----> themes ----> actions ----> edit code ----> assets ----> style.css
add this code at the end of the file and save.