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:

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.

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

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

Latest From Divi Booster

How to Add the Post Status in Divi's Dynamic Content

Divi's Dynamic Content feature is great for enhancing your post/page templates with post-specific information. While Divi includes an option to show information such as the Post Created Date using Dynamic Content, there is no equivalent option for the Post Status....

Fix Divi Text Module "Regular" Font Weight Not Working

Are you encountering an issue where the font weights in Divi's Text Module don't seem to apply as expected? In particular, you might find that when you set the text module's body text font weight to "Regular", your font is actually assigned a weight of 500 instead of...

Make the Divi Gallery Module Swipeable

The Divi Gallery Module comes with a slider mode that lets you display images in a slider with clickable left/right arrows to scroll through the images. For mobile / touchscreen users, you can improve the user experience by allowing your user to swipe to navigate to...

How to Use Divi Dynamic Content in Woo Modules Product Selector

Divi's Dynamic Content is a powerful feature that lets you populate your Divi modules and theme builder templates with data pulled in various sources, such as custom fields. This allows for efficient organization and maintenance of your sites.Unfortunately, Divi's...

Random Divi Posts