Make Divi Header Stick to Top of Page

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:

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

9 Comments

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

    Reply
      • Hi Dan.
        Thanks for your reply. I’ve followed the instructions on the page (which I didn’t know of until you replied) but the header is still not fixed on mobile devices.
        I can easily change the size of the logo, which a part of this also, but the header scrolls up with the page??

        Reply
      • Hi again Dan,

        I got it now – with the tutorial fro divilife ;-)
        Thanks a lot.

        Reply
        • Great! Thanks for letting me know, and give me a shout if there's anything else I can help with :)

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