Home>Support>WooCommerce Site Wide Store Notice covering up header

WooCommerce Site Wide Store Notice covering up header

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/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 3 months ago Cozy Roo

    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/

  2. 6 years, 3 months ago Andrew Misplon Hi, I Work Here

    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.

    .woocommerce-demo-store #page-wrapper {
    	margin-top: 25px;
    }
    
  3. 6 years, 3 months ago Cozy Roo

    Perfect! Thanks much!

  4. 6 years, 3 months ago Andrew Misplon Hi, I Work Here

    For sure :)

  5. 5 years, 10 months ago Cozy Roo

    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!

  6. 5 years, 10 months ago Andrew Misplon Hi, I Work Here

    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.

    .woocommerce-demo-store #page-wrapper {
        margin-top: 45px;
    }

    Let us know how that goes.

  7. 5 years, 10 months ago Cozy Roo

    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…

  8. 5 years, 10 months ago Andrew Misplon Hi, I Work Here

    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.

  9. 5 years, 10 months ago Cozy Roo

    Hi Andrew, yeah I’m likewise not seeing an issue anymore either. That’s strange, since I didn’t make any further changes. Thanks!

  10. 5 years, 2 months ago kuldeepsingh

    /* To keep sitewide woocommerce notification only on shop page */

    body:not(.woocommerce) .demo_store {
    display: none !important;
    }

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More