How To Add Background Masks and Patterns to your Divi Header

Last Updated on September 16, 2022 by 6 Comments

How To Add Background Masks and Patterns to your Divi Header
Blog / Divi Resources / How To Add Background Masks and Patterns to your Divi Header
Play Button

Divi’s new background masks and patterns feature is more commonly used for sections on a page. But, we can also add them to headers as well! In this tutorial, we’ll show you how to add background masks and patterns to a Divi header template using the theme builder. This is a great way to create completely unique header designs for your website.

Let’s get started.

Subscribe To Our Youtube Channel

Sneak Peek

Here is a quick look at the design we’ll build in this tutorial.

add background masks and patterns to a divi header

add background masks and patterns to a divi header

add background masks and patterns to a divi header

Download the Layout for FREE

To lay your hands on the designs from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

To import the header template to your Divi Library, do the following:

  1. Navigate to the Divi Theme Builder.
  2. Click the Import button at the top right of the page.
  3. In the portability popup, select the import tab
  4. Choose the download file from your computer (make sure to unzip the file first and use the JSON file).
  5. Then click the import button.

Once done, the section layout will be available in the Divi Builder.

Let’s get to the tutorial, shall we?

What You Need to Get Started

To get started, you will need to do the following:

  1. Navigate to the Divi Theme Builder.
  2. Click the Add Global Header area of the default website template (or use a new template if you don’t want it to be global.
  3. In the dropdown menu, select Build Global Header.

add background masks and patterns to a divi header

After that, you will be able to start designing a new header using the Divi Builder.

How to add Background Masks and Patterns to a Divi Header

1. Creating the Section Background with a Background Color and Pattern

To start, open the settings of the existing section. Under the content tab, update the background options with the following background settings:

Background Color:

  • Background Color: #262d3f

Background Pattern:

  • Pattern: Pills
  • Pattern Color: rgba(255,255,255,0.1)
  • Patter Size: Custom Size
  • Pattern Width: 1px

add background masks and patterns to a divi header

Section Padding

Under the design tab, update the section padding as follows:

  • Padding: 0px top, 0px bottom

This will decrease the vertical space of the header a bit.

add background masks and patterns to a divi header

2. Adding the Row Layout

Once the section background is complete, we are ready to add the content of the header. In this case we are going to add a menu on the left and a cta button on the right so we need to add a row layout that will work. Add a three-fourths one-fourths (two-column) layout to the section.

add background masks and patterns to a divi header

We’ll come back to the row settings in a bit. For now, let’s add some mock content.

3. Adding the Header Mock Content (a Menu and Button)

Now we are ready to add a menu and a CTA button to our header. Since this tutorial is focusing on the background design of the header, we won’t list all the design settings for the mock content. But, feel free to download the free template from this tutorial to take a closer look at the settings used in this illustration.

In the left column of the row, add a new menu.

add background masks and patterns to a divi header

Make sure to select a menu and add a logo. Then use the design settings to design the menu to your liking.

add background masks and patterns to a divi header

In the right column, add a button module and customize it to your liking as well.

add background masks and patterns to a divi header

4. Creating the Row Background with Gradient, Mask, and Pattern

The Gradient

Open the settings of the row containing your menu and button. Then update the background options with the following background settings:

Background Gradient:

  • Gradient Stop 1 Color: Trasparent
  • Gradient Stop 1 Position: 50%
  • Gradient Stop 2 Color: #ff4c00
  • Gradient Stop 2 Position: 75%
  • Gradient Direction: 90 deg

add background masks and patterns to a divi header

The Pattern

  • Pattern: Pills
  • Pattern Color: rgba(38,45,63,0.48)
  • Pattern Size: 1px
  • Pattern Vertical Offset: 20px

Note: The vertical offset of the pattern is set to 20px because there is a 20px top padding on the section above the row. This makes sure the pattern of the section aligns with the pattern of the row.

add background masks and patterns to a divi header

The Mask

  • Mask: Chevrons
  • Mask Color: #262d3f

For headers, it works best if you use masks that have symmetrical designs. The Chevrons mask is a great option because it not only looks cool but also leads the user to look at the button on the right.

NOTE: For headers, it is best to keep the mask size set to “Stretch to Fill” so that it covers the horizontal space without compromising the mask design.

add background masks and patterns to a divi header

5. Final Touches to the Row

To round off the design (literally), we are going to add a border-radius and a few more tweaks to the row.

The Border Radius, Border, and Spacing

Under the design tab, update the padding as follows:

  • Padding: 5px top, 5px bottom

add background masks and patterns to a divi header

Then give the row a nice rounded corner for an additional design element.

  • Rounded Corners: 50px
  • Left Border Width: 50px
  • Left Border Color: #262d3f

We need to give the left side of the row a border because the square edge of the mask will overflow the row despite the rounded corners.

add background masks and patterns to a divi header

Column Spacing for Vertical Alignment of Content

And for one last touch, add some padding to the second column to center the button vertically.

  • Padding: 13px top, 13px bottom

add background masks and patterns to a divi header

Final Result

Let’s check out the final result. Here is our new header being used on one of the pages from our Personal Trainer Layout Pack.

The gradient is a bit subtle so here is a closer look at what it looks like.

add background masks and patterns to a divi header

And here is the header design on desktop and mobile.

add background masks and patterns to a divi header

add background masks and patterns to a divi header

add background masks and patterns to a divi header

Have Fun Experimenting

The header background design is only the tip of the iceberg. There is much exploration to be done with the background options available in Divi. For example, with just a few clicks, we can add a diagonal stripes pattern and a diagonal lines mask combo to create the header illustrated below.

Final Thoughts

Hopefully, this tutorial has helped you understand how Divi’s background masks and patterns can work harmoniously to create a unique background design for your headers. Feel free to experiment with more background design combinations to fit the design of your own website or upcoming project.

For more, check out how to combine Divi’s new gradient builder with masks and patterns.

I look forward to hearing from you in the comments.

Cheers!

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

New Starter Site for Estheticians (Quick Install)

New Starter Site for Estheticians (Quick Install)

Posted on November 12, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post
Divi 5 Update: Public Alpha Version 3

Divi 5 Update: Public Alpha Version 3

Posted on November 11, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. As we progress towards the final release, we’ll update Divi 5 every two weeks, appearing as a standard update in your WordPress dashboard. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 3 today. Thanks...

View Full Post

6 Comments

  1. A very detailed and helpful post you have here. I hope your tips and tricks will help me a lot.

  2. Awesome, there should be a way to add all these the layout of all these tutorials

  3. Thanks for the guide, I’ll now know how to combine themes

    • You’re welcome, Crpto! Glad it was helpful.

  4. This is a great feature, I like it

    • Awesome!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today