Welcome again to the Divi 5 Mastery Route. In Phase 5, we constructed the entire homepage for our coworking area web page from scratch, the use of the Design Variables from Phase 3 and the Choice Team Presets and Component Presets from Phase 4 to stay the design constant.

Now, in Phase 6, we’ll shift to the highest of each web page via 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 statement bar, emblem, major navigation menu, social media hyperlinks, and a call-to-action button.

We’ll additionally make the header world, so apparently constantly around the web site. By way of the tip of this submit, your coworking web page may have a refined, branded header that improves navigation and visually ties the web site 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 provides you with extra keep watch over over format, styling, responsiveness, and behaviour. As an example, you’ll be able to create sticky headers, construct customized navigation constructions, use semantic HTML the place suitable, and make a decision precisely how the header adjustments throughout breakpoints.

Divi 5 additionally provides you with extra menu-building choices than a standard unmarried Menu module manner. You’ll nonetheless use the Menu module for velocity, which we’ll do on this instructional. On the other hand, you’ll be able to additionally construct extra complex navigation with Hyperlink modules, Menu Loops, Dropdown modules, and Interactions when a venture requires it.

The use of the presets and variables from previous portions of the route is helping the header fit the homepage. As a substitute of manually recreating fonts, colours, spacing, and button types, you’ll be able to reuse the similar design gadget. Then, whilst you replace a shared preset or variable later, the ones adjustments can glide throughout the header anywhere that preset or variable is used.

Gaining access to The Theme Builder

To start, cross for your WordPress dashboard and navigate to Divi > Theme Builder.

Divi Theme Builder in the WordPress dashboard

Below the Default Website online Template, click on Upload International Header. In case you are ranging from an present placeholder, make a choice the approach to construct or edit the International Header. This opens the Visible Builder with a canvas devoted to the header format.

Add Global Header in the Divi Theme Builder

How To Construct A Customized Header And Navigation

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 is able to accelerate the method and stay the header aligned with the remainder of the web site.

By way of the tip, you’ll additionally perceive the similar workflow we’ll use for different world spaces of the web site, together with the footer we’ll construct in Phase 7.

Finished custom header and navigation in Divi 5

Step 1: Surroundings Up The Header Container

First, we’ll construct the basis of the customized header. This offers 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 via including a single-column Row to the Canvas. Within the Content material tab, amplify the Background possibility crew and follow the Number one Colour variable to the background box.

Subsequent, transfer to the Row settings’ Design tab. Increase the Structure possibility crew and set Justify Content material to Middle.

Set Justify Content to Center in Divi 5

Increase the Sizing possibility crew. Set Width to 100% and Max Width to None.

Set Row width and max width in Divi 5

Within the Spacing possibility crew, 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, amplify the Parts possibility crew and find the Column. Click on the edit icon, then open the Column’s Design tab and amplify the Structure possibility crew.

Within the Horizontal Hole and Vertical Hole fields, insert the Spacing – XSmall variable the use of Divi’s dynamic content material choices.

In spite of everything, set Align Pieces to Middle.

Set Align Items to Center in Divi 5

Subsequent, upload any other single-column Row to the Phase. Cross to the Row’s Design tab and amplify the Structure possibility crew. Use the Spacing – XSmall variable to set the Horizontal Hole and Vertical Hole to 10px. Within the Align Pieces box, make a selection Middle.

Header Row Flexbox settings in Divi 5

In the second one Row’s Column settings, cross to the Design tab and amplify the Structure possibility crew. Observe the Spacing – XSmall variable to the Vertical Hole box. Then, set Justify Content material and Align Pieces to Middle. In spite of everything, set Structure Wrapping to Wrap.

Second Row Column layout settings in Divi 5

Phase Settings

Subsequent, alter the Phase’s Flexbox settings and spacing. Click on into the Phase. Cross to the Design tab and amplify the Structure possibility crew. Set the Vertical Hole to 10px.

Set Section Vertical Gap in Divi 5

Increase the Spacing possibility crew. Within the Best 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.

Set Section spacing in Divi 5

Cross to the Complex tab and amplify the Place possibility crew. Upload 999 to the Z Index box. This is helping stay the header above web page content material when it turns into sticky.

Set Z Index for the custom header in Divi 5

In spite of everything, amplify the Scroll Results possibility crew. Open the dropdown within the Sticky Place box and make a selection Persist with Best. This assists in keeping the header on the height of the viewport as guests scroll.

Set the custom header to Stick to Top in Divi 5

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.

Assign a preset to a Heading module in Divi 5

Select the Subheading preset from the to be had choices.

Choose the Subheading preset in Divi 5

Cross to the Design tab and amplify the Heading Textual content possibility crew. Click on into the Heading Textual content Colour box to open the colour modal. Then, make a choice White out of your world colours.

Set Heading Text Color to White in Divi 5

Step 3: Surroundings Up The Navigation Basis

Sooner than including the brand and navigation hyperlinks, upload a Module Team to stay the principle header parts aligned and spaced. Click on the black + icon in the second one Row so as to add a Team module. When the Insert Module or Row modal seems, upload an Symbol module within the Team.

Within the Content material tab of the Symbol module, amplify the Symbol possibility crew. Hover over the Symbol box and make a selection the Insert Dynamic Content material icon. Then, make a selection Website Emblem from the to be had choices.

Select the Site Logo dynamic content option in Divi 5

Observe: If in case you have no longer assigned an emblem in Divi > Theme Choices, you’ll be able to do this after the header is constructed.

Upload a site logo in Divi Theme Options

Within the Design tab, amplify the Sizing possibility crew. Within the Max Top box, upload a price of 50px.

Set logo max height in Divi 5

Step 4: Including The Menu Module

For velocity and ease, we’ll use the Menu module to care for the principle navigation hyperlinks. This manner allows you to temporarily attach a WordPress menu and elegance it with the design gadget we already created.

Divi 5 additionally contains more recent menu-building choices, together with Hyperlink modules with Menu Loops, Dropdown modules, and Interactions. The ones equipment are helpful for absolutely customized navigation patterns, mega menus, slide-in menus, and different complex setups. For this header, then again, the Menu module assists in keeping the workflow centered.

Upload a Menu module to the Team. If in case you have already created a menu within the WordPress dashboard, make a selection it within the Menu module’s Content material tab underneath the Menu possibility crew. If no longer, you’ll be able to create the menu later and go back to this environment.

Select a WordPress menu in the Divi Menu module

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

Apply the Dark Text preset to the Menu module in Divi 5

The Menu module can come with an emblem. Since we’re the use of a separate Symbol module for the brand, take away the Menu module emblem via increasing the Emblem possibility crew and clicking the delete icon.

Remove the logo from the Divi Menu module

Sooner than including extra modules, alter the Team module’s Flexbox settings. Click on into the Team and cross to the Design tab. Increase the Structure possibility crew and assign the Spacing – XSmall variable to the Vertical Hole box. Set Structure Path to Row, Justify Content material to House Between, Align Pieces to Middle, and Structure Wrapping to Wrap.

Group module Flexbox settings for the custom header

In spite of everything, amplify the Sizing possibility crew. Within the Dimension box, allow Develop to Fill. For the Alignment box, make a choice Stretch.

Group module sizing settings in Divi 5

Step 5: Including Social Hyperlinks

Subsequent, upload a Social Media Apply module to the navigation space outdoor the Team. Within the Content material tab, amplify the Parts possibility crew and upload your Social Networks.

Go back to the principle Content material tab for the Social Media Apply module. Click on the Assign Presets icon within the module header and make a choice the Remoted Icons – Darkish preset.

Apply the Isolated Icons - Dark preset in Divi 5

Subsequent, edit each and every Social Community merchandise within the Parts possibility crew and assign an extra preset. Click on the edit icon for the primary Social Community.

Edit a Social Network item in Divi 5

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

Apply the No Background preset to a Social Network item

Repeat those steps for the remainder Social Community pieces.

Step 6: Including A CTA Button

In spite of everything, upload a Button module to the navigation space. Within the module header, click on the Assign Presets icon and make a selection the Stuffed – Black preset.

Apply the Filled - Black Button preset in Divi 5

Step 7: Developing Interactions

Now that the principle header parts are in position and styled with presets and variables, we will use Divi 5’s Interactions gadget to keep watch over how the header behaves throughout breakpoints.

In earlier Divi workflows, you may have hidden parts on cell the use of Visibility settings within the Complex tab. That also works, however Interactions come up with a extra versatile method to display and conceal parts when customers input particular breakpoints.

For this coworking header, we’ll disguise the social media icons and CTA button on smaller displays whilst conserving the brand and menu visual. This assists in keeping the cell header more practical with out eliminating the important thing navigation trail.

Surroundings Up The Interactions

Choose the Social Media Apply module and cross to the Complex tab. Increase the Interactions possibility crew and click on + Upload New Interplay.

Add a new Interaction in Divi 5

When the modal seems, make a choice Breakpoint Input because the Cause Match.

Choose Breakpoint Enter as the Interaction trigger event

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

Hide the Social Media Follow module at the Tablet breakpoint

This Interplay hides the Social Media Apply module when the format enters the Pill breakpoint. On the other hand, we additionally want any other Interplay to turn the module once more when the format returns to Desktop.

Click on + Upload New Interplay. Choose Breakpoint Input once more. This time, set the Breakpoint to Desktop and make a choice 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 any other to disguise the Button on the Pill breakpoint and underneath.

CTA Button show and hide Interactions in Divi 5

Step 8: Checking out Responsiveness

Even supposing we constructed the header with Design Variables, presets, and Flexbox settings, it’s nonetheless necessary to check how the whole thing behaves throughout display screen sizes. Fluid typography, versatile spacing, and wrapping layouts assist, however real-world checking out confirms that the header nonetheless appears to be like polished and purposes smartly on each and every breakpoint.

Divi 5 provides you with two necessary equipment for responsive paintings.

Customizable Responsive Breakpoints

Divi 5 helps customizable responsive breakpoints, which come up with extra keep watch over than a set desktop, pill, and contact setup. You’ll use the default lively breakpoints or allow 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 more space. You’ll get admission to and edit Customizable Responsive Breakpoints from the Best Bar.

Responsive Editor

The Responsive Editor in Divi 5 allows you to edit values throughout enabled breakpoints without delay within the Visible Builder. Hover over a responsive-supported box in a module’s settings to expose the Edit Responsive Values icon.

Edit Responsive Values icon in Divi 5

As you progress thru each and every breakpoint, the Visible Builder updates the canvas so you’ll be able to edit values in context. This makes it more uncomplicated to substantiate that spacing, sizing, and visibility possible choices paintings around the header’s complete responsive vary.

Guidelines And Perfect Practices For Headers In Divi 5

Listed here are a couple of highest practices that can assist you get extra from your customized header and stay the workflow environment friendly because the coworking web page grows.

Preview In Context

Divi 5 allows you to edit Theme Builder spaces whilst viewing them in context with web page content material. As a substitute of switching backward and forward between the Theme Builder and a separate web page preview, you’ll be able to see how the header appears to be like above the homepage or any other web page whilst you alter spacing, alignment, and colours.

To allow this view, click on the Builder Settings icon within the Builder Bar and activate Display Theme Builder Layouts.

Enable Show Theme Builder Layouts in Divi 5

International vs. Particular Headers

We created a International Header on this instructional so apparently throughout all of the web site. That is normally the most productive start line for a easy web page as a result of each web page will get the similar navigation construction via default.

Later, you’ll be able to create extra particular Theme Builder templates when sure pages, submit varieties, or sections of the web site want a other header.

Global Header in the Divi Theme Builder

Export Header Templates

This can be a just right thought to export your Theme Builder templates or header format as a backup. You’ll do that without delay from the Theme Builder interface. Having an export document makes it more uncomplicated to revive the header, transfer it to any other web site, or percentage it with a crew member.

Export a header template in Divi 5

Downloading And Putting in The Recordsdata

To make issues more uncomplicated, we’ve created a JSON document you’ll be able to import into the Theme Builder. Sooner than uploading the International Header, it’s best to outline a WordPress menu in Look > Menus. If in case you have no longer created one but, you’ll be able to 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.

Import and Export Templates icon in the Divi Theme Builder

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

Upload a JSON file to the Divi Theme Builder

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

Save imported Theme Builder templates in Divi

With the template stored, open the Visible Builder. Relying for your enabled Customizable Responsive Breakpoints, you could wish to check the breakpoints used within the imported Interactions.

Choose the Social Media Apply module, cross to the Complex tab, and amplify the Interactions possibility crew. Check 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.

Verify Button Interactions in Divi 5

That’s it. You’ve created a world header for the coworking web page. To obtain the recordsdata, fill out the shape underneath.

.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !necessary; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:ahead of { border-top-color: #ffffff !necessary; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:ahead of, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:ahead of { border-top-color: clear !necessary; border-left-color: #ffffff !necessary; }
@media best 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 !necessary; border-left-color: clear !necessary; }.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:after { border-bottom-color: #ffffff !necessary; border-left-color: clear !necessary; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_fields i { colour: #f92c8b !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_form_content .et_bloom_custom_field_radio i:ahead of { background: #f92c8b !necessary; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !necessary } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !necessary; } .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 !necessary;}

Download For Free

Obtain For Loose

Sign up for the Divi E-newsletter and we can e mail you a replica of without equal Divi Touchdown Web page Structure Pack, plus heaps of alternative superb and loose Divi assets, guidelines and methods. Apply alongside and you are going to be a Divi grasp very quickly. In case you are already subscribed merely kind to your e mail cope with underneath and click on obtain to get admission to the format pack.

You’ve got effectively subscribed. Please take a look at your e mail cope with to substantiate your subscription and get get admission to to loose weekly Divi format 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 in-built 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 purposeful footer with a couple of columns, hyperlinks, social icons, copyright textual content, and constant styling.

If in case you have no longer downloaded the newest model of Divi 5 but, now is a superb time. The most recent unencumber provides you with get admission to to the options used all through this route, together with the Theme Builder workflow, Interactions, Flexbox controls, Customizable Responsive Breakpoints, and the Responsive Editor.

The submit Phase 6: Construction A Customized Header And Navigation In Divi 5 gave the impression first on Chic Issues Weblog.

WordPress Web Design

[ continue ]