Welcome again to the Divi 5 Mastery Path. In Part 5, we constructed the overall homepage for our coworking house web page from scratch, the use of the Design Variables from Phase 3 and the Option Group Presets and Element Presets from Part 4 to stay the design constant.
Now, in Phase 6, we’ll shift to the highest of each and every web page by way of making a customized header and navigation in Divi 5’s Theme Builder. We’ll use Flexbox settings, presets, variables, and Interactions to construct a responsive header that incorporates a press release bar, emblem, major navigation menu, social media hyperlinks, and a call-to-action button.
We’ll additionally make the header world, so it sounds as if constantly around the web page. Via the top of this put up, your coworking web page can have a sophisticated, branded header that improves navigation and visually ties the web page in combination.
Let’s get began.
Why You Want A Customized Header
The default Divi header and the Menu module are helpful beginning issues, however a customized header constructed within the Theme Builder will give you extra keep watch over over structure, styling, responsiveness, and behaviour. For instance, you’ll create sticky headers, construct customized navigation buildings, use semantic HTML the place suitable, and make a decision precisely how the header adjustments throughout breakpoints.
Divi 5 additionally will give you extra menu-building choices than a conventional unmarried Menu module way. You’ll be able to nonetheless use the Menu module for pace, which we’ll do on this instructional. On the other hand, you’ll additionally construct extra complex navigation with Hyperlink modules, Menu Loops, Dropdown modules, and Interactions when a challenge requires it.
The usage of the presets and variables from previous portions of the path is helping the header fit the homepage. As a substitute of manually recreating fonts, colours, spacing, and button kinds, you’ll reuse the similar design gadget. Then, while you replace a shared preset or variable later, the ones adjustments can glide in the course of the header anywhere that preset or variable is used.
Getting access to The Theme Builder
To start out, pass on your WordPress dashboard and navigate to Divi > Theme Builder.

Beneath the Default Web page Template, click on Upload International Header. If you’re ranging from an current placeholder, select the method to construct or edit the International Header. This opens the Visible Builder with a canvas devoted to the header structure.

On this phase, we’ll construct a customized header and navigation for the coworking web page. We’ll use the Design Variables and Presets created in Portions 3 and four, which can accelerate the method and stay the header aligned with the remainder of the web page.
Via the top, you’ll additionally perceive the similar workflow we’ll use for different world spaces of the web page, together with the footer we’ll construct in Phase 7.

Step 1: Atmosphere Up The Header Container
First, we’ll construct the root of the customized header. This provides the navigation a blank, versatile construction the use of Divi 5’s Flexbox controls and the design gadget we already created.
Row Settings
Get started by way of including a single-column Row to the Canvas. Within the Content material tab, increase the Background choice team and observe the Number one Colour variable to the background box.
Subsequent, transfer to the Row settings’ Design tab. Make bigger the Structure choice team and set Justify Content material to Heart.

Make bigger the Sizing choice team. Set Width to 100% and Max Width to None.

Within the Spacing choice team, find the Padding fields. Use the Insert Dynamic Content material icon so as to add the Spacing – XSmall variable to the highest and backside padding fields.
Column Settings
Now, alter the Column settings for the Row. Within the Row’s Content material tab, increase the Components choice team and find the Column. Click on the edit icon, then open the Column’s Design tab and increase the Structure choice team.
Within the Horizontal Hole and Vertical Hole fields, insert the Spacing – XSmall variable the use of Divi’s dynamic content material choices.
In the end, set Align Pieces to Heart.

Subsequent, upload some other single-column Row to the Segment. Pass to the Row’s Design tab and increase the Structure choice team. Use the Spacing – XSmall variable to set the Horizontal Hole and Vertical Hole to 10px. Within the Align Pieces box, make a selection Heart.

In the second one Row’s Column settings, pass to the Design tab and increase the Structure choice team. Follow the Spacing – XSmall variable to the Vertical Hole box. Then, set Justify Content material and Align Pieces to Heart. In the end, set Structure Wrapping to Wrap.

Segment Settings
Subsequent, alter the Segment’s Flexbox settings and spacing. Click on into the Segment. Pass to the Design tab and increase the Structure choice team. Set the Vertical Hole to 10px.

Make bigger the Spacing choice team. Within the Most sensible Padding box, make a selection the Border Width – Buttons variable to set the highest padding to 0px. For the Backside Padding box, make a selection the Spacing – XSmall variable, which provides 10px of padding.

Pass to the Complicated tab and increase the Place choice team. Upload 999 to the Z Index box. This is helping stay the header above web page content material when it turns into sticky.

In the end, increase the Scroll Results choice team. Open the dropdown within the Sticky Place box and make a selection Keep on with Most sensible. This helps to keep the header on the peak of the viewport as guests scroll.

Step 2: Including The Announcement Bar
Sooner than including the principle navigation, create the announcement bar. Within the first Row you added previous, click on the black + icon so as to add a Heading module.
Within the Heading module settings, click on the Assign Presets button subsequent to the module header.

Make a choice the Subheading preset from the to be had choices.

Pass to the Design tab and increase the Heading Textual content choice team. Click on into the Heading Textual content Colour box to open the colour modal. Then, select White out of your world colours.

Sooner than including the emblem and navigation hyperlinks, upload a Module Group to stay the principle header parts aligned and spaced. Click on the black + icon in the second one Row so as to add a Crew module. When the Insert Module or Row modal seems, upload an Symbol module throughout the Crew.
Within the Content material tab of the Symbol module, increase the Symbol choice team. Hover over the Symbol box and make a selection the Insert Dynamic Content material icon. Then, make a selection Website online Brand from the to be had choices.

Be aware: In case you have no longer assigned a symbol in Divi > Theme Choices, you’ll do this after the header is constructed.

Within the Design tab, increase the Sizing choice team. Within the Max Top box, upload a price of 50px.

Step 4: Including The Menu Module
For pace and ease, we’ll use the Menu module to maintain the principle navigation hyperlinks. This way permits you to temporarily attach a WordPress menu and magnificence it with the design gadget we already created.
Divi 5 additionally contains more moderen menu-building choices, together with Hyperlink modules with Menu Loops, Dropdown modules, and Interactions. The ones gear are helpful for absolutely customized navigation patterns, mega menus, slide-in menus, and different complex setups. For this header, alternatively, the Menu module helps to keep the workflow centered.
Upload a Menu module to the Crew. In case you have already created a menu within the WordPress dashboard, make a selection it within the Menu module’s Content material tab beneath the Menu choice team. If no longer, you’ll create the menu later and go back to this atmosphere.

Within the Menu module header, click on the Assign Presets icon. Make a choice Darkish Textual content from the to be had choices.

The Menu module can come with a symbol. Since we’re the use of a separate Symbol module for the emblem, take away the Menu module emblem by way of increasing the Brand choice team and clicking the delete icon.

Sooner than including extra modules, alter the Crew module’s Flexbox settings. Click on into the Crew and pass to the Design tab. Make bigger the Structure choice team and assign the Spacing – XSmall variable to the Vertical Hole box. Set Structure Route to Row, Justify Content material to Area Between, Align Pieces to Heart, and Structure Wrapping to Wrap.

In the end, increase the Sizing choice team. Within the Dimension box, permit Develop to Fill. For the Alignment box, select Stretch.

Step 5: Including Social Hyperlinks
Subsequent, upload a Social Media Observe module to the navigation house out of doors the Crew. Within the Content material tab, increase the Components choice team and upload your Social Networks.
Go back to the principle Content material tab for the Social Media Observe module. Click on the Assign Presets icon within the module header and select the Remoted Icons – Darkish preset.
![]()
Subsequent, edit each and every Social Community merchandise within the Components choice team and assign an extra preset. Click on the edit icon for the primary Social Community.

Click on the Assign Presets icon and make a selection the No Background preset.

Repeat those steps for the rest Social Community pieces.
Step 6: Including A CTA Button
In the end, upload a Button module to the navigation house. Within the module header, click on the Assign Presets icon and make a selection the Crammed – Black preset.

Step 7: Growing Interactions
Now that the principle header parts are in position and styled with presets and variables, we will be able to use Divi 5’s Interactions gadget to keep watch over how the header behaves throughout breakpoints.
In earlier Divi workflows, you’ll have hidden parts on cellular the use of Visibility settings within the Complicated tab. That also works, however Interactions provide you with a extra versatile solution to display and conceal parts when customers input explicit breakpoints.
For this coworking header, we’ll disguise the social media icons and CTA button on smaller displays whilst retaining the emblem and menu visual. This helps to keep the cellular header more practical with out doing away with the important thing navigation trail.
Atmosphere Up The Interactions
Make a selection the Social Media Observe module and pass to the Complicated tab. Make bigger the Interactions choice team and click on + Upload New Interplay.

When the modal seems, select Breakpoint Input because the Cause Match.

Assign an Admin Label. Then, set the Breakpoint to Pill, select Cover Component because the Impact Motion, and make a selection the Social Media Observe module because the Goal Module.

This Interplay hides the Social Media Observe module when the structure enters the Pill breakpoint. On the other hand, we additionally want some other Interplay to turn the module once more when the structure returns to Desktop.
Click on + Upload New Interplay. Make a selection Breakpoint Input once more. This time, set the Breakpoint to Desktop and select Display Component because the Impact Motion. Stay the similar Goal Module.
Subsequent, create two extra Interactions for the CTA Button. Create one Interplay to display the Button on Desktop and some other to disguise the Button on the Pill breakpoint and under.

Step 8: Checking out Responsiveness
Despite the fact that we constructed the header with Design Variables, presets, and Flexbox settings, it’s nonetheless essential to check how the entirety behaves throughout display screen sizes. Fluid typography, versatile spacing, and wrapping layouts assist, however real-world trying out confirms that the header nonetheless appears to be like polished and purposes neatly on each and every breakpoint.
Divi 5 will give you two essential gear for responsive paintings.
Customizable Responsive Breakpoints
Divi 5 helps customizable responsive breakpoints, which provide you with extra keep watch over than a hard and fast desktop, pill, and call setup. You’ll be able to use the default lively breakpoints or permit further ones when a design wishes extra exact keep watch over.
For this header, breakpoints assist making a decision precisely when the social hyperlinks and CTA button must disguise, when spacing must tighten, and when navigation wishes extra space. You’ll be able to get admission to and edit Customizable Responsive Breakpoints from the Most sensible Bar.
Responsive Editor
The Responsive Editor in Divi 5 permits you to edit values throughout enabled breakpoints at once throughout the Visible Builder. Hover over a responsive-supported box in a module’s settings to expose the Edit Responsive Values icon.

As you progress thru each and every breakpoint, the Visible Builder updates the canvas so you’ll edit values in context. This makes it more straightforward to verify that spacing, sizing, and visibility alternatives paintings around the header’s complete responsive vary.
Pointers And Best possible Practices For Headers In Divi 5
Listed here are a couple of highest practices that will help you get extra from your customized header and stay the workflow environment friendly because the coworking web page grows.
Preview In Context
Divi 5 permits you to edit Theme Builder spaces whilst viewing them in context with web page content material. As a substitute of switching from side to side between the Theme Builder and a separate web page preview, you’ll see how the header appears to be like above the homepage or some other web page when you alter spacing, alignment, and hues.
To permit this view, click on the Builder Settings icon within the Builder Bar and activate Display Theme Builder Layouts.

International vs. Particular Headers
We created a International Header on this instructional so it sounds as if throughout all the web page. That is generally the most efficient place to begin for a easy web page as a result of each and every web page will get the similar navigation construction by way of default.
Later, you’ll create extra explicit Theme Builder templates when sure pages, put up varieties, or sections of the web page desire a other header.

Export Header Templates
This is a just right thought to export your Theme Builder templates or header structure as a backup. You’ll be able to do that at once from the Theme Builder interface. Having an export record makes it more straightforward to revive the header, transfer it to some other web page, or percentage it with a crew member.

Downloading And Putting in The Information
To make issues more straightforward, we’ve created a JSON record you’ll import into the Theme Builder. Sooner than uploading the International Header, it’s best to outline a WordPress menu in Look > Menus. In case you have no longer created one but, you’ll nonetheless import the template and assign the menu later.
Navigate to Divi > Theme Builder. Then find the Import & Export Templates icon on the top-right of the interface.

Click on the Import & Export icon, make a selection the Import tab, find the CustomHeaderandNavigation.json record for your pc, and click on Import Divi Theme Builder Templates.

Sooner than opening the template, click on the Save Adjustments button.

With the template stored, open the Visible Builder. Relying for your enabled Customizable Responsive Breakpoints, you might wish to examine the breakpoints used within the imported Interactions.
Make a selection the Social Media Observe module, pass to the Complicated tab, and increase the Interactions choice team. Test that the right kind breakpoints are assigned to the disguise socials and display socials Interactions. Repeat the similar take a look at for the Button module’s display button and disguise button Interactions.

That’s it. You’ve created an international header for the coworking web page. To obtain the recordsdata, fill out the shape under.
@media most effective display screen and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:ahead of { border-top-color: #ffffff !essential; border-left-color: clear !essential; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !essential; border-left-color: clear !essential; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { colour: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:ahead of { background: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !essential } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !essential; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 sturdy { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; }.et_bloom .et_bloom_optin_1 .et_bloom_form_container p, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p sturdy, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape enter, .et_bloom .et_bloom_optin_1 .et_bloom_form_container shape button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !essential;}
Obtain For Unfastened
Sign up for the Divi E-newsletter and we can electronic mail you a duplicate of without equal Divi Touchdown Web page Structure Pack, plus heaps of alternative wonderful and loose Divi assets, guidelines and methods. Observe alongside and you’ll be a Divi grasp very quickly. If you’re already subscribed merely sort on your electronic mail cope with under and click on obtain to get admission to the structure pack.
You may have effectively subscribed. Please take a look at your electronic mail cope with to verify your subscription and get get admission to to loose weekly Divi structure packs!
What’s Coming Subsequent
With the customized header whole, the coworking web page now has a powerful navigational basis that makes use of the similar Design Variables and Presets we inbuilt Portions 3 and four.
In Phase 7: Construction a Customized Footer in Divi 5, we’ll create an identical world footer template the use of the similar design gadget. You’ll learn to construct a practical footer with more than one columns, hyperlinks, social icons, copyright textual content, and constant styling.
In case you have no longer downloaded the most recent model of Divi 5 but, now is a great time. The most recent liberate will give you get admission to to the options used all the way through this path, together with the Theme Builder workflow, Interactions, Flexbox controls, Customizable Responsive Breakpoints, and the Responsive Editor.
The put up Part 6: Building A Custom Header And Navigation In Divi 5 gave the impression first on Elegant Themes Blog.



0 Comments