All Collections
FAQ's and Troubleshooting
How to create a transparent and fixed Header layout that overlaps the page's content
How to create a transparent and fixed Header layout that overlaps the page's content

Create a transparent fixed header layout that overlaps the page content.

Eduard Ungureanu avatar
Written by Eduard Ungureanu
Updated over a week ago

Using Divi's Theme Builder, a custom Global Header layout can be created, giving us access to a wide range of design options.

Create a Global Header layout

  1. Go to WordPress Dashboard → Divi → Theme Builder and create a new Global Header layout

  2. Add a 1 Column Row

  3. Add the Menu module, set a logo image and choose the WordPress menu to be used as the website navigation menu

Basic layout styling

  1. Open the Section's settings - which contains the entire Header layout - expand the Background option group, and set the Background color to transparent

    Set the Section's background color

  2. Open the Section's settings, go to Design Tab → Spacing → Padding and set 0px for top and bottom padding

  3. Open the Section's settings, go to Advanced Tab → Scroll Effects and set it to be Sticky at the Top

  4. Go back to the Content Tab → Background → Background color, enable the Sticky State and set a solid color

    Chane the background color for the Sticky state

  5. Open the Row's settings, go to Design Tab → Spacng → Padding and set 10px for top and bottom padding

    Row's top and bottom padding

  6. Open the Menu module's settings, go to Content Tab → Background and remove the Menu module's background color

    Remove the Menu module's background color

  7. Open the Row's settings and go to Advanced Tab → Position and set its position to be absolute

  8. Set the Row's Location to Top Center

    Row's Position and Location

Pro Tip: Because we have set the Row's Position to be Absolute, the Section will have a 0px Height. To fix that, we must set the Section's Min Height (for the Sticky State) as a fixed value.

The value (in px) on this demo will be 98px. This value will depend on other elements and design settings, such as:

  • The logo height

  • The font-size and line-height used on the Menu module

  • etc

The result can be seen below:

  • The Page is not scrolled:

    Transparent Header overalping the page content

  • The page is scrolled:

    Header with solid background color

Did this answer your question?