How to Remove Divi Header Bottom Border Without a Plugin

by | Last updated May 9, 2026 | Divi Tutorials

remove header bottom border in Divi

Do you want to remove header bottom border in Divi? That is the grey line that divides the main header (the part that contains the logo and the primary menu links) and the content part of your Divi website.

In this article, I will explain how to remove header bottom border that separates the menu bar and the content part without messing up your the code or design of your Divi website.

how to remove gray line below menu

In my case, I was working on one of my websites and I had both the header with a sky blue background and the first section below the header with the same background color.

I didn’t like the gray line below the menu bar, so I had to remove it.

If you need to remove the line, add the custom CSS code below to your Divi Theme Options Custom CSS field.

After logging in to your WordPress dashboard, then go to Divi >>Theme Options>>Custom CSS.

Then paste this code:

#main-header {

box-shadow: none !important;

}

Also, if you want to remove the shadow bottom of the primary menu bar, add this code to the Custom CSS section of the Divi Theme Options.
#main-header.et-fixed-header {
box-shadow: none !important;
}

Where to Paste this Code

This CSS code needs to be copied and pasted into Divi theme customizer in Custom CSS section.

I hope that you enjoyed this tutorial. Subscribe to Divi Banks on YouTube and join our newsletter for more crisp content on WordPress and web design.

Shop Divi Products

Buy nicely done Divi Layouts, Child themes, and extensions for your next Divi project.

Related Articles

How to Add Padding Around Featured Images in Divi’s Blog Module

How to Add Padding Around Featured Images in Divi’s Blog Module

If you're using the Divi theme for your WordPress website and want to customize the appearance of your blog posts page, one simple tweak you can make is adding padding around the featured images. This can help create a more visually appealing layout and better...

Divi Logo Guide: Everything You Need to Know

Divi Logo Guide: Everything You Need to Know

A professionally designed logo is a powerful branding asset that can leave a lasting impression on your website visitors. Research shows that a well-designed logo can boost consumer trust in a brand by an impressive 75%. But the question most people ask is – how do...

Leave a Comment

0 Comments

Submit a Comment

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

WP101 - FREE WordPress Tutorials

Enter your email address below to gain access to the FREE WordPress training.

You have Successfully Subscribed!

Pin It on Pinterest