Transparent Sticky Header Template: Free Divi Layout

aniaromanska

Written by Ania Romańska

Published on . Last edited on .

Free header layout for Divi: a Divi Theme Builder card with a Global Header over a transparent TrailTales header and a pink Free Header Layout badge

TL;DR

The free layout is a Divi Theme Builder header: one JSON file (Sticky_Header_Theme_Builder_Layout.json) plus a ReadMe, made in Divi 4 and converted by Divi 5 on import.

Import it inside a Theme Builder header (Divi → Theme Builder → Add Global Header → Build Global Header → Import); it can’t be imported directly into the Divi Library.

The header sticks with Advanced → Scroll Effects → Sticky Position: Stick to Top and turns white (#ffffff) with black menu links in the Sticky state.

Logo swap: the white logo in the Menu module goes to 0% opacity and a colored logo (Image module, position absolute, center left) goes to 100% when the header is sticky.

div#et-main-area { margin-top: -76px; } (-40px below 980px) in the section’s Free-Form CSS pulls the page content under the header; change it if your header height differs.

Updated for Divi 5: The layout is a Divi 4 JSON file, and Divi 5 converts it when you import it. Tested in Divi 5.18: the sticky white background, the menu colors, the logo swap and the CSS all work without changes.

Free Sticky Header Layout for Divi

This free layout is a ready-made transparent header for the Divi Theme Builder: it sits over your hero image, sticks to the top as you scroll, and turns white with dark menu links and a colored logo once your visitor scrolls down.

Looking to add a stunning transparent fixed header to your Divi website without the hassle? You’re in the right place! Today, I’m offering a free layout that includes a fully customizable transparent header that stays fixed as you scroll. This post includes a video tutorial where I show you exactly how to import the layout, customize it to fit your brand, and apply the CSS snippet used to achieve this effect.

If you haven’t yet seen my Transparent Fixed Sticky Header in Divi [Step-by-Step Guide], be sure to check it out. It includes a video tutorial where I guide you through creating this header from scratch and share the CSS code used to create this effect.

Let’s dive in and get started with your new transparent header!

Important! This header layout requires that you have the Divi theme for WordPress installed (Divi 5, or Divi 4.23 and up). It is not included with this product.

Free download

Transparent Sticky Header Layout

A Theme Builder header that is transparent over the hero and turns white with a colored logo when it sticks on scroll. Works in Divi 5 and Divi 4.

Get the free download

Want to see it in action first? Scroll down on the demo page.

What’s inside the free header layout?

The zip contains one JSON file (Sticky_Header_Theme_Builder_Layout.json) with a single header section, and a ReadMe. The header section includes:

  • A section with a transparent background that turns white in the sticky state, with Sticky Position set to Stick to Top.
  • A Menu module with a white logo and white, uppercase menu links that turn black when the header is sticky.
  • An Image module with the colored logo, positioned absolute over the menu logo: it fades in when the header gets sticky, while the white logo fades out.
  • Free-Form CSS on the section that moves the page content under the header (div#et-main-area { margin-top: -76px; }, -40px on tablets and phones).

The two extra snippets from the step-by-step guide (the sticky hover color and the menu spacing) are not in the layout, so copy them from there if you want them.

How to import the header layout in Divi 5 (and Divi 4)

Import the JSON file inside a Theme Builder header, not into the Divi Library (it can’t be imported there directly):

  1. Download the zip and unzip it.
  2. Go to Divi → Theme Builder, click Add Global Header and choose Build Global Header.
  3. In Divi 5, open the gear menu (top-left) → Import and choose Sticky_Header_Theme_Builder_Layout.json. Divi 5 converts the Divi 4 layout for you. In Divi 4, use the Portability (import/export) icon in the builder and choose Import.
  4. Open the Menu module and select your own menu (the layout points to the menu of my demo site), then replace the white logo in the Menu module and the colored logo in the Image module.
  5. Save the header, then save the Theme Builder.

How to use and customize it?

Swap the logos and menu, set your own colors in the normal and Sticky states, and adjust the CSS if your header has a different height. If you need instructions on how to install the layout on your website and how to customize it, watch my quick follow-along YouTube video below.

The video was recorded in Divi 4. In Divi 5 the options are in the same places: the Sticky values sit behind the Sticky icon next to Hover and the responsive icons, and the section’s CSS is in Advanced → CSS → Free-Form CSS (Advanced → Custom CSS in Divi 4).

A few tips for customizing it:

  • If your header is taller or shorter than 76px, change the -76px (and -40px for tablets and phones) in the section’s Free-Form CSS to your header’s height.
  • The colors for the scrolled header are Sticky values: the section’s background color, the Menu Text color, the Hamburger Menu Icon Color and the opacity of both logos.
  • The Menu module has a transparent background, and Divi uses it for the dropdown and mobile menu too. If your menu has sub-menus, give the dropdown and mobile menu a background color in the Menu module’s Design tab.

And that’s it!

I hope you love this free layout and find it useful for your Divi projects! If you’re ready to go deeper into Divi design or want to work directly with me, I’d love to connect. The Divi Stylist Academy offers in-depth training and live sessions, or you can reach out to collaborate one-on-one.

All the details you need are just a click away. Thank you for downloading, and happy designing!

This article has been tagged with: Divi CSS, Free Divi Layouts, Menus & Headers

Tags

Free header layout for Divi: a Divi Theme Builder card with a Global Header over a transparent TrailTales header and a pink Free Header Layout badge

Table of Contents

Popular questions

Does this free Divi header layout work with Divi 5?

Yes. The file is a Divi 4 layout, and Divi 5 converts it when you import it. In Divi 5.18 the sticky background, the menu colors, the logo swap and the div#et-main-area CSS all work after the conversion.

Where do I import the sticky header layout?

Inside a Theme Builder header: go to Divi → Theme Builder → Add Global Header → Build Global Header and import the JSON file in the builder. It can’t be imported straight into the Divi Library.

How do I change the colors of the header when it is sticky?

Edit the Sticky values of the options: the section’s background color, the Menu Text color and the Hamburger Menu Icon Color in the Menu module. The logo swap uses the Sticky value of the logo opacity (Menu module) and of the Image module’s opacity filter.

Why does my content hide under the header, or leave a gap above it?

The CSS moves the page content up by the header’s height: -76px on desktop and -40px below 980px. If your logo or menu makes the header taller or shorter, change these values in the section’s Free-Form CSS to your header’s real height.

About the Author

Ania Romańska

I'm a Divi expert from Poland, with over 10 years building the templates and courses that make up Divi Lover. I'm also a mom of five, which taught me a thing or two about explaining things clearly the first time.

Psst!Black Friday is here.

Black Friday
40% off templates.
Early-bird prices on Divi 5 courses.

Your next Divi project just got a little cheaper.All templates and plugins are 40% off. Plus, grab my new Divi 5 Self-Study Courses at special early-bird prices before they open in January.

No code needed

Sale prices are already applied. Ends November 30.