The issue occurs because the announcement bar has a higher z-index than your header, causing it to overlap when scrolling. To fix this, you can adjust the z-index values in your CSS so that the header appears above the announcement bar.
This ensures that the header remains above the announcement bar while scrolling. If other elements also need layering adjustments, inspect their z-index and assign values accordingly, keeping the header’s value higher.
If you just want to make sure the announcement bar stays at the top of the page so you don’t have to worry about overlap, you can adjust the margin in the same code. Like this:
.header{
margin-top: 10px;
}
Simpler Solution with EasyEdits
I’m the developer of EasyEdits, a Shopify app that allows you to visually fix issues like these without diving into CSS. You can use the free trial to make changes and keep them permanently, even if you don’t continue with the app.