Navigation is a vital part of the user experience on your website. It’s important to make sure your visitors can navigate seamlessly through your website without having to compromise on aesthetics. By default, the WordPress Primary Menu Bar is placed at the top of every page and is considered separate from the page design you choose to follow. In many cases, though, including your menu in the overall page design can bring stunning results. It’ll give your website a more coherent look and feel.

In this post, we’re going to show you how to include the primary menu bar in your Divi page design. This is a simple but dynamic change to the way the primary menu is typically displayed, bringing a unique look to any Divi project.

Let’s get to it!

Preview

Let’s start off by taking a look at the end result on different screen sizes:

primary menu bar

Theme Customizer Settings

Go to the Theme Customizer

Before we start building our design, let’s start off with some Theme Customizer changes. Go to your WordPress Dashboard > Appearance > Customize.

Save Background Image

Since we’re going to detach the Primary Menu Bar from the top, we’ll need something to cover the space it normally takes up. We’ll use the following background image so go ahead and save it on your computer:

with-border

Upload Background Image to General Settings

Then, go to General Settings > Background and upload the image to your website’s background.

  • Strech Background Image: Enabled
  • Background Position: Fixed

Primary Menu Bar Settings

We’re also going to merge the Primary Menu Bar ready with our Divi design. To do that, we’ll need to modify the Primary Menu Bar settings first. Go to Header & Navigation > Primary Menu Bar and use the following settings:

  • Logo Max Height: 100
  • Text Size: 18
  • Letter Spacing: -1
  • Font: Poppins
  • Text Color: #333333
  • Active Link Color: #f55c83
  • Background Color: rgba(255,255,255,0)
  • Dropdown Menu Background Color: #FFFFFF

Add a New Page

Page Custom CSS

To make the primary menu bar overlap our page design, we’ll need a bit of CSS code. You can choose whether you want to make the overlap apply on your entire website or just a page in particular. If you choose to add it to one page only, add the following CSS code to your page settings:

#main-header {
margin-top: 140px;
}

Add New Section

Background Color

Let’s get started with the design! Add a new page, switch over to Visual Builder and add your first section. Open the section settings next and add ‘rgba(255,255,255,0.81)’ as the background color. This will allow our website background image to show through.

Spacing

Continue by going to the Spacing settings and addthe following custom margin and padding:

  • Top & Bottom Margin: 100px
  • Left & Right Margin: 60px
  • Top Padding: 135px
  • Bottom Padding: 0px

Rounded Corners

Add ’30px’ to each one of the corners of your section as well.

Border

Then, add a top border to your section:

  • Top Border Width: 35px
  • Top Border Color: #333333

Box Shadow

To finish off, add a very subtle box shadow.

  • Box Shadow Blur Strength: 61px
  • Box Shadow Spread Strength: -13px

Add Row #1

Column Structure

Time to start adding rows and modules! Add your first row using two equally-sized columns.

Sizing

Without adding any modules yet, open the row settings and change the Sizing settings:

  • Make This Row Fullwidth: Yes
  • Equalize Column Heights: Yes

Spacing

Add some custom padding next:

  • Top Padding: 250px (Desktop), 50px (Tablet & Phone)
  • Bottom Padding: 200px (Desktop), 100px (Tablet), 50px (Phone)
  • Column 1 Left Padding: 50px (Desktop), 0px (Tablet & Phone)

Add Title Text Module to Column 1

H1 Text Settings

We can now start adding the modules. We’ll start with the first column by adding a new title Text Module.

  • Heading Font: Poppins
  • Heading Font Weight: Medium
  • Heading Text Size: 120px (Desktop), 80px (Tablet), 58px (Phone)

Add Different Color to Part of Copy

You can easily change the color of a word in your title by switching over to the Text tab and adding a color to your word of choice by using span tags.

Add Description Text Module to Column 1

Text Settings

Right below the previous Text Module, go ahead and add a description Text Module using the following text settings:

  • Text Font: Poppins
  • Text Font Weight: Regular
  • Text Size: 20px (Desktop), 15px (Tablet & Phone)
  • Text Line Height: 2em

Spacing

We’ll need some extra margin for this Text Module:

  • Top & Bottom Margin: 50px

Add Button Module to Column 1

Button Settings

The last module in this column is a Button Module. After you’ve added the CTA copy, change the button styles:

  • Use Custom Styles for Button: Yes
  • Button Text Color: #FFFFFF
  • Gradient Color 1: #f45085
  • Gradient Color 2: #f88c7e
  • Gradient Direction: 137deg
  • Button Border Width: 0px
  • Button Border Radius: 40px
  • Button Font: Poppins
  • Button Font Weight: Regular
  • Font Style: Uppercase

Spacing

Open the Spacing settings next and add some margin and padding to your button:

  • Bottom Margin: 100px (Desktop), 20px (Tablet & Phone)
  • Top & Bottom Padding: 15px
  • Left & Right Padding: 50px

Box Shadow

Last but not least, we’ll use a very subtle box shadow to create more depth on our page:

  • Box Shadow Blur Strength: 55px
  • Box Shadow Spread Strength: -4px
  • Shadow Color: rgba(84,84,84,0.25)

Add Image Module to Column 2

Save & Upload Image

The second column only contains an Image Module. We’re using a mockup that is part of Divi’s Digital Marketing Layout Pack. Go ahead and save the image below to your computer. After you do so, add it to the Image Module in your second column.

Add Row #2

Column Structure

Time to add the second row! Choose the following column structure for it:

Column 1 Background Color

Then, open the row settings and add ‘#FFFFFF’ as the Column 1 Background Color.

Copy Button Gradient Background

We’re going to save ourselves some time and copy the gradient we’ve already used for the Button Module. To do that, open the Button Module, go to the button settings, right-click the gradient background and copy it.

Paste Gradient Background in Column 2

Then, go back to your row settings and paste the gradient background in the second column.

Column 3 Background Color

For the third column, we’re using the ‘#FFFFFF’ background color.

Sizing

Go to the Sizing settings next and change the settings:

  • Use Custom Width: Yes
  • Custom Width: 2600px
  • Use Custom Gutter Width: Yes
  • Gutter Width: 1

Spacing

We’ll need some extra padding as well:

  • Top & Bottom Padding: 0px
  • Column Top & Bottom Padding: 30px

Box Shadow

Last but not least, we’ll use a subtle box shadow:

  • Box Shadow Blur Strength: 61px
  • Box Shadow Spread Strength: -20px

Add Blurb Module #1

Choose Icon

We’ll need three Blurb Modules in total. We’ll start off with one and clone it afterwards to save time. Go ahead and add a new Blurb Module to the first column. After adding your content, select an icon of choice.

Icon Settings

Change the settings of your icon accordingly:

  • Icon Color: #f55c83
  • Icon Placement: Left
  • Use Icon Font Size: Yes
  • Icon Font Size: 88px (Desktop & Tablet), 50px (Phone)

Title Text Settings

Open the title text settings next and make some changes:

  • Title Font: Poppins
  • Title Font Weight: Medium
  • Title Text Size: 34px (Desktop & Tablet), 23px (Phone)

Body Text Settings

The body text needs to be modified as well:

  • Body Font: Poppins
  • Body Font Weight: Regular
  • Body Text Size: 16px (Desktop), 14px (Tablet & Phone)
  • Body Line Height: 2em

Spacing

And to create a more aesthetically appealing design, add some padding:

  • Top Padding & Bottom Padding: 100px
  • Left & Right Padding: 50px (Desktop & Tablet), 10px (Phone)

Clone Blurb Module Twice and Place in Remaining Columns

Go ahead and clone your Blurb Modules twice. After you do so, place them in the remaining columns.

Change Blurb Module in Column 2

Change Icon Color

The third Blurb Modules doesn’t need any changes, the second one however does. Start by changing the Icon Color into white.

Change Text Color

Open the Text Settings next and change the Text Color to ‘Light’.

Disable Fixed Navigation

To make sure the Primary Menu Bar keeps its place within the design, we’ll need to disable the Fixed Navigation Bar as well. To do that, go to your WordPress Dashboard > Divi > Theme Options > Disable the ‘Fixed Navigation Bar’ option and save the settings.

Preview

Now that we’ve gone through all the steps, let’s take a final look at the result on different screen sizes:

primary menu bar

Final Thoughts

In this post, we’ve shown you how to creatively include the primary menu bar in your overall Divi page design. This approach will help you create a more coherent look and feel on your website. We’ve created an example from scratch as well. If you have any questions or suggestions, make sure you leave a comment in the comment section below!

The post How to Include the Primary Menu Bar in Your Divi Page Design appeared first on Elegant Themes Blog.