Removing the Divi Header Bottom Border

News: Divi Code Snippet Module now supports Divi 5

Written by Dan Mossop

Eliminating the bottom border bar from the Divi standard header creates a cleaner and more modern look on your website. This change can help your header blend seamlessly with the rest of the page, offering a sleeker appearance and improved visual consistency. In this guide we show you how to remove the bottom border bar from the Divi header to enhance your site's design using either the Divi Booster plugin or some custom CSS.

Remove the Bottom Border Bar from the Divi Header using Divi Booster

This method demonstrates how to remove the bottom border bar from the Divi standard header by using the Divi Booster plugin. It's an efficient, no-code approach that allows you to quickly toggle the border setting through an intuitive options panel, making it ideal for users who want a hassle-free solution.

Access Divi Booster Header Settings

To get started, open the Divi Booster settings from the Divi menu in the WordPress admin sidebar. Next, expand the 'Header' section, and then open the 'Main Header' sub-panel. This is where you'll find the relevant setting.

Enable the 'Hide Header Bottom Border' Option

Within the Main Header panel, find the 'Hide header bottom border' option and check the box to enable it. 

Save Your Settings

After enabling the option, be sure to click the 'Save Changes' button in the Divi Booster panel to apply your update site-wide.

Check the Updated Header

Visit your site to confirm that the header's bottom border is now removed. Your header should appear seamless, without any obvious border or shadow beneath it.

Remove the Bottom Border Bar from the Divi Header using Custom CSS

This method demonstrates how to remove the bottom border bar from the Divi standard header by adding custom CSS directly in the Divi Theme Options panel. It's a straightforward approach that allows you to eliminate the box shadow without modifying theme files or using child themes, making it ideal for quick, code-based customization.

Open Divi Theme Options and Locate Custom CSS

Head to the Theme Options area in the Divi menu from your WordPress dashboard. Once there, scroll down to the 'Custom CSS' section and click into the code input box.

Add the Custom CSS

Paste the following code into the Custom CSS box to remove the bottom border (box shadow) from the Divi header:

header#main-header.et-fixed-header,
#main-header {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

Save Your Changes

Once you've added the CSS, click the green 'Save Changes' button at the bottom of the Theme Options panel to make your update live.

Preview the Header Without a Bottom Border

Go to your website and check that your header no longer shows a bottom border or shadow—your design should now look sleek and borderless!

Conclusion

Removing the bottom border from Divi's standard header is quick and easy, whether you use Divi Booster or a bit of custom CSS. Enjoy your site's fresh, clean header design!

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

Remove Divi Header Shadows Effortlessly

Easily customize your Divi site with Divi Booster. Eliminate that unwanted header shadow and more with a few clicks. Perfect for streamlining your design process and enhancing your site's look!

Latest Posts

Add a Branded QR Code in Divi

To create a branded QR Code in Divi, you can use the Divi QR Code module and its "Center Image" feature. This lets you add an image / logo in the center of the QR code, perfect for promoting your brand or adding a unique twist to your QR Codes. The image is displayed...

Add Text Before the Number in the Divi Circle Counter

Adding a custom number prefix to your Circle Counter lets you clarify what the value represents—such as currency, units, or labels—without relying on the default percentage format. This helps your counters better match real-world metrics and keeps the design...

Add a Second Line of Text in a Divi Button Module

Adding a second line of text beneath a button’s main label lets you provide extra context, a brief benefit statement, or a supporting call-to-action without cluttering your design. This can improve clarity and increase clicks by making the button’s purpose more...

Top (or Bottom) Align Divi Icon List Module Icons

When Icon List items wrap onto multiple lines, the default icon alignment can make the icon appear vertically centered next to the text, which may look unbalanced or harder to scan. Setting the icons to align at the top creates a cleaner, more consistent...

Make Divi Button Modules Full Width with Centered Content

This configuration makes a Divi button stretch to the full width of its container while keeping its label neatly centered, creating a bold, edge-to-edge call-to-action. You might want this for hero sections, pricing tables, or any layout where a standard-sized button...

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, 

24 Comments

  1. hi there
    it didnt work for me using divi booster can you help me?

    Reply
    • Hi Eduardo, I just checked and the code still works in recent versions of Divi. I'd first try clearing any caches on your site and then clearing your browser cache. If that doesn't help, are you able to send me a link to the site you're working on so that I can take a look? Thanks!

      Reply
  2. Thank you worked perfectly

    Reply
  3. 2 years later … this should be a "toggle" in the Divi Theme Options.

    Reply
  4. Thank you, thank you, thank you!

    Reply
  5. Wow! Thank you so much for this! That line has been driving me crazy.

    Reply
  6. Thank you so much!! I've been going crazy trying to fix this.

    Reply
  7. Thanks for this!

    Reply
  8. Thanks Dan, you saved me time and less grey hair :)

    Reply
    • Ha ha! Happy to help, Reza :)

      Reply
  9. I am using a sidebar and the line appears again as soon as you start scrolling the page.

    Reply
    • Hi John, I've just updated the code in the post such that it should also remove the header bottom border on the "fixed" header that is displayed when you start scrolling the page. I hope that helps!

      Reply
  10. This is not working in firefox ????

    Reply
    • Hey lois, hmm… it's working for me in firefox! Any chance you can send me a link to the site you're working on so that I can take a look?

      Reply
  11. Thanks! I hope they are going to fix it in DIVI 3.0.

    Reply
  12. Thank you!!!

    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 *.

Compatible with

Divi 5

Divi 4

Get this feature

This feature is available in the following plugins:

Divi Booster

About Divi Booster