Hide the Standard Divi Theme Header

Written by Dan Mossop

There are scenarios where you might want to remove the default header provided by the Divi theme—such as designing a custom header, improving focus on page content, or achieving a cleaner page layout. Hiding the standard Divi header allows for greater control over the appearance and user experience of your site. In this guide we show you how to hide the standard Divi theme header to achieve your desired site look.

Hide the Standard Divi Theme Header using Divi Booster

This method explains how to hide the default Divi theme header by utilizing the Divi Booster plugin's built-in header hiding feature. By following these steps, you can quickly remove the standard header across your site without custom code, offering a convenient solution for customizing your site's design.

Access the Divi Booster Settings

To get started, head to your WordPress dashboard. In the left-hand admin sidebar, click on 'Divi' to expand the menu, then select the 'Divi Booster' option to open its settings panel.

Configure Header Visibility

Inside the Divi Booster settings, locate the 'Header' section and click to expand it. Then, find the 'Main Header' subsection and expand that as well. Look for the option labeled 'Hide header completely' and check its box to activate it.

Save Your Changes

Once you've enabled the setting, be sure to click the 'Save Changes' button at the top right of the Divi Booster panel to apply your updates.

Confirm the Header is Hidden

Visit your site's homepage to check that the standard Divi header is no longer visible at the top of your site.

Hide the Standard Divi Theme Header using Custom CSS

This method demonstrates how to hide the standard Divi theme header by adding custom CSS directly into the Divi Theme Options panel. It's a straightforward approach that allows you to visually remove the default header from your site without editing theme files, making it easy to achieve a cleaner look or prepare for a custom header.

Open Divi Theme Options and Locate Custom CSS

In your WordPress dashboard, click on 'Divi' in the sidebar, then choose 'Theme Options.' Once the Theme Options panel appears, scroll down to find the 'Custom CSS' box at the bottom of the page.

Add CSS to Hide the Divi Header

Inside the Custom CSS box, paste the following code exactly as shown. This will remove the standard Divi theme header and adjust the spacing to keep your layout looking its best.

/* Hide the header */
#main-header {
  display:none;
}
#page-container {
  padding-top:0px !important;
  margin-top:-1px !important;
}
/* Adjust padding for transparent headers */
.et_transparent_nav #main-content .container {
  padding-top: 58px !important;
}

Save Your Changes

After pasting the code, don't forget to click the 'Save Changes' button in the top right corner of the Theme Options panel to make your changes live.

Verify the Header is Hidden

Return to your site's homepage and confirm that the standard Divi header is no longer being displayed.

Conclusion

Hiding the standard Divi theme header is easy with either Divi Booster or a quick CSS snippet in Theme Options. Choose the method you prefer and enjoy a cleaner, more custom site layout!

Take Your Divi Theme Customization Further!

Discover endless possibilities with Divi Booster. Easily hide the main header bar and unlock hundreds of additional features to customize your Divi site with ease. Perfect for anyone looking to streamline their design and functionality.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

105 Comments

  1. THANK YOU for this!

    Reply
  2. hi, used it, like the simplicity
    the full page sections needed an extra to make the really full page

    #main-header { height: 0px; display:none; }

    Reply
    • Nice catch. Thanks for sharing it, Stefan :)

      Reply
    • Thank you so much !!! I was looking for this gem for hours…
      Made my day :)

      Reply
    • You are a GOD. Been looking for this fix for hours. Thanks, All the internet points to you.

      Reply
  3. Hello,

    The first code also removes my logo. Is there any way to solve that?

    Thanks!!

    Reply
      • Hi ,

        1.I would like to know how to hide the header only on add-on page,
        2. when open a addon page the header links are active , i would like to know how to link to header tabs.

        Reply
        • Hi yahraa, are you able to send me a link to an example add-on page, so that I can see how you have it set up? Thanks!

          Reply
      • Hi i am trying to hide the header but the setting is not opening when i open per page divi builder 3 dots (Setting)

        Reply
        • Hi Anam, are you using the visual builder? The instructions above were for the adding per-page CSS in the backend / classic builder. I've updated with instructions for the visual builder / new backend builder too.

          I hope that helps, but let me know if not / I've misunderstood what you're trying to do. Thanks!

          Reply
  4. Hi Dan,

    I'd like to make the divi theme header appear again after having inserted the CSS Code you provided. How do I make it appear again? I deleted the CSS code but it still does not appear.
    Thanks!

    Reply
    • Hi Mat, I can see the header showing up on pages other than the homepage ("kontakt", for example), so I think the CSS code has been correctly removed. I think the reason the homepage isn't showing the header because it is using the "Blank Page" template. If you go to the edit screen for the homepage then in the "Page Attributes" box on the right-hand side you should be able to change the Template to "Default Template" to restore the header. I hope that helps!

      Reply
      • Thank you, Dan! It worked, you're my hero =)

        Reply
        • Hi Dan
          Your seo is working, my menu didnt show and you gave me the answer so thanks im happy now :)

          Reply
  5. This works for regular pages but not for woocommerces pages. The links are transparent but still there. Is there any way how to fix this please? Thx

    Reply
    • i take my previous comment back :) works perfectly, I just by mistake havent realized some of the wordpress settings i made before. thx

      Reply
      • Okay, great! I'm glad you figured it out, and thanks for letting me know, Michelle :)

        Reply
  6. Hi, Is there any way we can replace the default header with divi section built from divi builder?

    Reply
  7. Hello,

    How to hide menu when scroliing?

    Reply
    • Hi Manja, there's a built-in Divi option that should do what you need. Go to "Divi > Theme Options > General > Fixed Navigation Bar", set it to "Disabled" and click "Save Changes". That will prevent the header / menu from being shown when you scroll down. Technically, it doesn't "hide" the menu, but it does make it scroll out of view as you scroll down which pretty much achieves the same effect. I hope that helps!

      Reply
  8. Thanks guys this worked first time around guys !

    Reply
  9. I feel like this was sort of answered but not fully. After hours of googling as a self proclaimed googlefu ninja master I can't find exactly how to do this "properly".

    I want to remove, replace, or hide (if that's my only option) the built in header menus (primary/secondary) and insert a global fullwidth menu module I created for my blank pages at the top where the divi primary/secondary menu's used to be.

    I have a LOT of pages that are not set to blank and it would be ridiculous for me to go in and change them all to blank, then add in the global fullwidth menu one at a time.

    Reply
    • Let me clarify that I would much rather find a way to replace the menus inside the header.php file using something like this:

      echo do_shortcode('[et_pb_section global_module="30801"][/et_pb_section]');

      to change the menu for all pages on my entire site to the fullwidth header section I created in divi libray

      Reply
      • Hey Matthew, there are a couple of plugins which will let you add a fullwidth header section from your library to the page. I've linked to them in this quick post I've put up:

        https://divibooster.com/adding-a-site-wide-divi-builder-layout-below-the-header/

        I'd say that would be the "proper" way to do it. The code you've given will work and I've added some implementation details to that post, but it's worth noting the caveats around how Divi updates are handled.

        I don't think there are any suitable action hooks for directly adding the library where you need it, but another possible strategy is to add the section somewhere else in the page and move it with JavaScript. I haven't coded up an implementation of that yet, but I used a similar technique for adding a full-width image above the header, which you might be able to adapt.

        Reply
        • Thanks for sharing, Michelle :)

          Reply
  10. Hey Dan,

    Quick question

    How would you go about removing the header site wide on DESKTOP only?

    My situation is, I have an image above my full width menu module, but i disabled the header overall. So on mobile, the header doesnt' show up, and the full width menu doesn't have a description on it.

    My ideal solution is, use my menu module on desktop, and then use the divi header/nav menu for mobile.

    Thanks for any and all help

    Cheers

    Reply
    • Hey Tim, the way to do this is using a CSS "media query" to check the screen width and only apply the code given when the screen is sufficiently wide to suggest it is a desktop.

      I've added a "Hiding the Header on Desktops only" section to the post which gives the modified code. Let me know if you have any questions about it. Thanks!

      Reply
  11. Hi Great post! Is it possible to just hide the header in desktop but not tablet or mobile?

    Reply
    • Hi Kelly, I've just updated the post with a section on "Hiding the Header on Desktops only". I hope it helps!

      Reply
  12. Hey Nate,
    How can I remove the header from only one page?

    Thanks, nathalie

    Reply
    • Hi Nathalie, to remove the header from a single page (or post), you can paste the code from this post into per-page "Custom CSS" box, which you'll find from the page edit screen by clicking on the three-lined "hamburger" menu button on the top right of the purple Divi Builder area. CSS placed in that box will apply only to that particular page. If you are talking about another type of "page" (e.g. the homepage or category page), please send me a link to the page you're working on – it should be possible to do with a modification to the CSS given. Thanks!

      Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest Posts

Hide the Page Title in the Hello Elementor Theme

Hiding the page title in the Hello Elementor theme allows you to create a cleaner and more customized page layout, free from default headings that may not fit your design. This is particularly useful for landing pages or custom content layouts where the default page...

How to Hide a Divi Module When Scrolling Up or Down

In this quick tutorial, I’ll show you how to hide a Divi module when scrolling in a specific direction (up or down), so that the module only shows when you want it to. This is especially useful when using Divi’s Scroll Effects feature and you have a effect you want to...

Fade a Divi Image Module Edge into the Background

Want to create a stylish fade effect on your Divi image module—where one side fades smoothly into the background? With a bit of CSS, you can make any edge (or corner) of the image fade out: top, bottom, left, right, or even diagonally.Fade a Divi Image Module Edge...

Hide the Header and Footer in the Hello Elementor Theme

Removing the default header and footer from your Hello Elementor theme allows for a streamlined and distraction-free website design. This is especially useful when creating unique landing pages, full-width layouts, or custom headers and footers with a page builder. In...

Setting up the Divi Password Box Module

Setting up password protection on a page can help you control access to sensitive or private content in WordPress, allowing only authorized visitors to view certain sections. With the Divi Password Box module, you can replace the plain Divi password form with a fully...

Random Posts