Make Divi Header Stick to Top of Page

Written by Dan Mossop

By default the Divi Theme header sticks to the top of the page as you scroll down. It is possible to disable this feature and you may occasionally find yourself in the situation that you want to make the header sticky, but can't find out how to do so.

You can re-enable the sticky (or "fixed") header by going to "Appearance » Divi Theme Options » General Settings" and then clicking to enable the "Fixed Navigation Bar" and finally saving.

This screenshot illustrates the setting:

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

Streamline Your Divi Workflow!

Copying images and content directly from your clipboard into Divi has never been easier. Say goodbye to the cumbersome save-and-upload routine and hello to streamlined efficiency.

Latest Posts

Customize Lightbox Title Styling in the Divi Gallery Module

Adjust the appearance of the lightbox title that appears when visitors open images from a Divi Gallery to align with your brand and improve readability. Refining the title’s color, size, and weight enhances visual hierarchy, accessibility, and overall polish. In this...

Center the Lightbox Image Count in the Divi Gallery Module

Centering the image count in a gallery lightbox creates a cleaner, more balanced presentation and makes it easier for visitors to see where they are in the image set. This simple visual tweak can enhance readability, especially with larger images and longer captions,...

Style the Divi Gallery Module Lightbox Image Count

Tailor the appearance of the image counter in the Divi Gallery module lightbox to match your brand and improve readability. By customizing the counter’s color and typography, you ensure it displays clearly and suits your design. In this guide we show you how to style...

Customize the Lightbox Image Background Color in the Divi Gallery

Control the color that appears behind your images when users open in the gallery lightbox, including support for semi-transparent hues. This helps improve contrast for transparent images, align the experience with your brand palette, and create a more polished viewing...

Style the Divi Gallery Lightbox Close Button

Give your gallery lightbox a clear, on-brand close button by customizing its color and size. This improves visibility and usability against varying image backgrounds and ensures the button renders at full opacity for a consistent experience. In this guide we show you...

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, 

9 Comments

  1. Hi Chris, how can I keep the mobile header fixed like on desktop view?

    Reply
  2. My friend hello and one question.
    Fixed menu is active, but when I scroll down, menu stay at top of page, I've tried css to make it fixed/sticky but don't work, can you help me?

    Thanks so much for your support and time.

    Reply
    • Hey Julio, I just took a look at your site. When I scroll down I see the header shrink a bit, but stay visible at the top of the browser window. This shrunken state is what Divi refers to as the "Fixed header". If this is what you want, but aren't seeing, I'd try clearing your browser cache. I can see you have W3TotalCache running which could prevent the latest version of the page from showing. Also, this "fixed header" only shows up on desktop widths, not on mobiles, so make sure you're looking on a wide browser width.

      If you want the header to scroll out of view with the rest of the content when you scroll down, then you need to disable the fixed header. You can do so by setting "Divi > Theme Options > General > Fixed Navigation Bar" to "Disabled". (You might need to clear your caches after making the change).

      I hope that helps, but let me know if not. Thanks!

      Reply
  3. Is there anyway to make the top header sticky, with the main header?

    Reply
    • Hey Chris, I believe if the "Divi > Theme Options > General > Fixed Navigation Bar" setting is enabled then both the main header and top header will be sticky by default. Certainly this is what I see on my test site. If this isn't happening for you, is there any chance you're able to send me a like to the site you're working on so that I can take a look? Cheers!

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