When I enable the WooCommerce site wide store notice text, the banner covers up the header. Increasing the padding in the header doesn’t solve the problem, since the elements in the header don’t get centered between the menu bar and the store notice banner, so it doesn’t look right.
Is there a way to push the header elements down from the top, rather than adding padding to both the top and bottom of the header? Or is there another solution to this issue?
Thanks in advance to your help!
URL: http://cozyroo.com/
Sorry, I gave the wrong URL. I have a test site set up with the site wide store notice here http://dev.cozyroo.com/test/
Hi Cozy Roo
You can fix/change this with some custom CSS. If you navigate to Appearance > Custom CSS, you’ll get our custom CSS editor. Just add the following code.
Perfect! Thanks much!
For sure :)
Hi, This custom CSS that you supplied me previously (see above post) is no longer working. The Site Wide Store Notice is covering up header again. Here is the custom CSS that I’m using:
.woocommerce-demo-store #page-wrapper {
margin-top: 45px;
}
Here’s the URL: https://cozyroo.com/
Thanks!
Hi again :) It doesn’t look like the CSS rule has been inserted at Appearance > Custom CSS. Try adding it back with 45px margin this time. If you were previously using the Boxed layout and have changed to the Full-Width layout it would explain the difference in required margin.
Let us know how that goes.
Hmm… it’s always been the full-width layout, and I have that rule in the Custom CSS section right now. I even just deleted it and pasted in your rule, and still nothing…
Thanks for the update. The new CSS is working on my machine and the notice is no longer overlapping. Can you perhaps try clearing your browser cache to ensure you’re not viewing a cached version.
Hi Andrew, yeah I’m likewise not seeing an issue anymore either. That’s strange, since I didn’t make any further changes. Thanks!
/* To keep sitewide woocommerce notification only on shop page */
body:not(.woocommerce) .demo_store {
display: none !important;
}