Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsHeader and Footer Areas
How to Create a Transparent Fixed Header Layout That Overlaps the Page's Content
How to Create a Transparent Fixed Header Layout That Overlaps the Page's Content

Learn how to create a transparent fixed header in Divi that overlaps your page's content for a modern and elegant website design.

Updated over 3 months ago

A transparent fixed header that overlaps your page's content can add a modern and elegant touch to your website.

This design technique keeps the header visible while allowing your content to shine through, enhancing aesthetics and navigation.

This article will guide you through the steps to create a transparent fixed header layout using Divi, ensuring seamless and stylish integration with your site's overall design.

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

    Section Sticky Position

  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 or the font-size and line-height used on the Menu module

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?