How To Make The Entire Divi Theme Builder Fixed with Two Sections Tutorial by Pee-Aye Creative

How To Make The Entire Divi Theme Builder Header Fixed (Even With Multiple Sections)

This quick snippet will allow you to make your entire Divi Theme Builder header fixed even if you are using multiple sections and rows!

#1. Create Your Header In The Divi Theme Builder

Start off by creating your Divi Theme Builder header. If you already have done this, great, just skip ahead.

From your WordPress Dashboard, go to Divi>Theme Builder. Create a new template, and assign it wherevery you want to dispaly it on your site. In our example, we chose to assign the menu to a specific page where we are show you the demo in action.

Click on “Add Custom Header” and in the popup choose “Build Custom Header.”

make the Divi Theme Builder Header fixed

In the Divi Theme Builder template, go ahead and create your design, and of coursse, feel free to use more than one section.

In our example, we made the first section with a socil media icons and a secondary menu, then the second section with the main site logo and menu.

Two sections in a Divi Theme Builder fixed header

#2. Set The Entire Divi Header To Fixed With CSS

Normally, with only one section in your Theme Builder header template, you would go to the Section settings to the Position toggle in the Advaced tab. But because we have two sections, setting them both to fixed would just cause them to overlap.

Instead of setting individual sections to fixed, we are going to set the entire Divi Theme Builder header template to fixed with a little bit of CSS. All you have to do is copy and paste this into your Divi>Theme Options>Custom CSS area.

/*make entire Divi Theme Builer header template fixed*/
header.et-l.et-l--header {
	position: fixed;
	width: 100%;
	z-index: 9999;
}
fixed Divi theme builder header template

There you go! Now you can use more than one section in the header template if you want to and still have it fixed!

If you notice that the header overlaps the page content, and want a genius way to solve it, check out our other tutorial called How To Automatically Stop Your Fixed Divi Header From Overlapping The Page And Push It down Instead.

Fixed transparent header with Divi

Don’t forget, we have tons of tutorials in our Divi Header series!

18

Last updated Jan 3, 2021 @ 1:01 pm

Subscribe

Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore :)

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

8 Comments

  1. jesus

    Hi Nelson .
    Amazing tutorial.
    it´s what I looking for my header.
    I have two sections and this video resolves the problem and works perfectly.
    Many thanks !!

    Reply
  2. Bill Andre

    Hi Nelson,

    I have been following your tutorials on building headers in Divi. I have learned a lot so thanks vey much. I am trying to build a variation of the header that I don’t think you have discussed. I want to create a header with two parts. In one of your videos you said you can do this with 2 rows in the same section or with 2 sections. When you hear what I am trying to do, maybe you can advise which is the better method.

    Ok … I am trying to design a header that has a large area for text at the top and a more narrow section or row below that contains the menu. When someone scrolls down the page the top section/row scrolls up and off the page but the narrow menu section/row becomes fixed at the top of the page.

    Is this possible? Thanks again for all you do.

    Bill

    Reply
  3. steve

    thanks for your great tute’s that I’ve only just discovered – although I’ve also already checked about 9 of them 🙂

    YES NINE!

    Reply
  4. Bill

    Weird. I have a three-section header built with the Theme Builder. I applied the CSS in the theme options and the first two sections disappeared. The third section is fixed, but the two other sections disappearing is a deal-breaker. Any ideas?

    Reply
  5. Bill

    Nevermind. I had to add the script as well. Thanks so much for the tutorial!

    Reply

Submit a Comment

Your email address will not be published.

Recent Posts

Pin It on Pinterest

0

Your Cart