Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsHeader and Footer Areas
How to Enable the Fixed Navigation Bar on Tablets and Mobile Devices
How to Enable the Fixed Navigation Bar on Tablets and Mobile Devices

Learn how to enable the fixed navigation bar in Divi on small screens so that the navigation is always visible when scrolling.

Updated over 3 months ago

A fixed navigation bar can significantly enhance the user experience by keeping your site’s menu accessible at all times, especially on tablets and mobile devices.

In this article, we will guide you through the process of enabling a fixed navigation bar on tablets and mobile devices using Divi.

Make the default Divi's Header area fixed on mobile devices

Since the Divi's Fixed Navigation bar isn't fixed on mobile devices out of the box, you can use the following steps to make it fixed at the top of the page scroll on mobile devices:

  1. Go to Divi → Theme Options → General Tab → Custom CSS

  2. Add the following CSS code:

    /* Fixed Navigation Bar on mobile devices */
    @media screen and (max-width: 980px) {
    #main-header.et-fixed-header {
    position: fixed;
    }

    .logged-in #main-header.et-fixed-header {
    top: 0 !important;
    transition: all .3s 0s;
    }
    }

Use the Theme Builder to build a custom Header

  1. Go to Divi → Theme Builder

  2. Click on the Add Global Header option

  3. Choose the Build Global Header option

  4. Click on the Green Plus Icon to add a 1 Column Row

  5. Click the Dark Grey Plus Icon to add a new module and add the Menu module

  6. Add the Logo image to the Menu module

  7. Edit the Row's settings that contain the Menu module by clicking on the Gear Icon

  8. Go to the Design Tab → Spacing → Padding and set the Top and Bottom Padding to 0

  9. Edit the Section's settings by clicking on the Gear Icon

  10. Go to the Design Tab → Spacing → Padding and set the Top and Bottom Padding to 10px - change these values to your liking

  11. Go to Advanced Tab → Scrolling Effects

  12. For the Stick Position option, choose Stick at the Top

The Result:

Divi - Header area fixed on Mobile Devices
Did this answer your question?