How to Add a Button to Your Divi Header

Last Updated on September 16, 2022 by 2 Comments

How to Add a Button to Your Divi Header
Blog / Divi Resources / How to Add a Button to Your Divi Header

Adding a button to your Divi header could not be simpler. By using the Divi Theme Builder, you can control placement, design, and specific page assignment. Perhaps a button in your header is necessary on specific landing pages but not on individual blogs. We are going to walk you through the process of using the theme builder to add a button to your Divi header. Afterward, you can use these skills to add buttons anywhere you want in your theme builder templates. Let’s get started!

Preview

Here’s a preview of what we’re working on today, using the downloadable free header design that matches our Security Services layout pack.

Desktop

desktop preview

Mobile

mobile preview

How to Add a Button to your Divi Header

We are going to be using the Divi Builder to accomplish this addition, so be sure to load it up in your WordPress dashboard. You will find it underΒ Divi – Theme Builder in your admin panel, and the main page will look something similar to this.

theme builder location

Create or Add a Header

Once you’re inside the Divi Theme Builder, you need to either create, add, or edit the header to which you need to add the button. If you have an existing header you will be adding the button to, just go ahead and enter the builder so you can get to work.

For the rest of us, we are going to use the freebie header for our Security Services layout pack. If you want to use this one (or another header which you’ve downloaded), you will need to open theΒ Portability options in the theme builder by clicking theΒ double-arrow icon in the builder.

portability

If you downloaded a header from us or somewhere else (maybe even exported your own as a backup), find the JSON file of the header you will upload and click Import Divi Theme Builder Templates. When the import finishes, your site will have the new header installed and ready for you to stick in your button.

Enter the Divi Builder

Double-click the header to enter the builder (or right-click and selectΒ EditΒ from the context menu).

entering the builder

The header will load up in the builder, and you can see all of the spaces in which Divi lets you place the module.

header

Choose Where to Put the Button

When it comes to editing your site’s header, you must consider spacing before anything else. Not only is it an element that every single visitor sees, but it’s also an element that shifts dramatically between desktop and mobile. So if you’re adding a button to an existing layout of any kind, you need to be sure that it’s not going to ruin anything.

For this particular header, we are going to add a Subscribe button to the main header. To do so, we need to adjust the Column Structure of the containing row from 1 to 3 Columns.

column structure

Move and Edit the Menu Module

With that one, move theΒ Menu Module to the right-most column and go into itsΒ Settings. Under theΒ Content tab, go to the Logo options and remove it.

header logo

Note, you can also change this to a brand logo, or you can keep your own if you’re not using this layout pack. The envelope logo just doesn’t work for this design.

Add a Button Module

When the Menu module has been moved, you can go ahead and add theΒ Button module to the left-most column. Click theΒ black + circle and find theΒ Button module in the list that appears.

button module

Edit Button Text

Then, go into the module settings and under theΒ Content tab, find theΒ Text area, and in theΒ Button field, add the text you want to appear to users.

subscribe text

Add a Button Link

Below that in theΒ Content tab, go into theΒ Link options and set the button to whatever URL where you send new subscribers. Some email providers give specific URLs to forms, while others just give you embeds for your own pages. Whichever works best for your conversion funnel will go here.

link

Style the Button to Match the Site

The Divi button module is great, but the default styling does not match the header in which we’re placing it. So we want to have a button that users the same fonts, colors, and styles as the rest of the site.

First, go into theΒ Button module settings and into theΒ Design tab. Then, find the area labeledΒ Button andΒ enable the toggle forΒ Use Custom Styles for Button.

styling the button

Next, choose the color’s from your site’s palette that works best. For this header, we’re using the same background and icon color as the social icons, which is #ffc230 for the background and for #000724 the text color.

colors

After that, you need to make sure the fonts and other text styles match. You might want the button text to be larger and more prominent, but for this particular header, we’re going to make the button text match and compliment the menu it’s sharing the header with.

fonts

In this case, this means that we’re setting the Button Border Width toΒ 0px and the Button Border Color to transparent, thus removing the border entirely.Β Then, we set theΒ Button Text Size to 15px to match the header menu, and useΒ Michroma as theΒ Button Font andΒ Bold as theΒ Font Weight.

With all that done, you should now have a button in your Divi header that matches the rest of the site’s design spot on.

Final Results

When all the customization is complete, the final results may appear something like this.

Desktop

desktop preview

Mobile

mobile preview

Wrapping Up

If you’re a Divi user, getting comfortable using the theme builder can help greatly expand your skillset and design potential. Even something as simple as changing column structure and adding a button can take a good design all the way to a great design. Just make sure that your styling stays consistent and that the button takes users to content that really makes placing the button front and center worth it.

Why do you use buttons in your Divi header?

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

Divi Plugin Highlight: Divi Carousel Module 2.0

Divi Plugin Highlight: Divi Carousel Module 2.0

Posted on November 3, 2024 in Divi Resources

Carousels are a great way to interactivity to your website. With the Divi Carousel Module 2.0 plugin, you can create carousels for just about any type of content. Showcase client testimonials, images, logos, team members, and more with this intuitive tool. Read on to learn about its features, how...

View Full Post
New Starter Site for Construction (Quick Install)

New Starter Site for Construction (Quick Install)

Posted on October 29, 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

2 Comments

  1. This tutorial description seems incorrect for the options I have on my dashboard…

    My website has (what appears to be) an existing Global Header that I am trying to add a button to.
    I go to: Divi > Theme Builder.
    But the Global Header button is grey, not green, and says “Add Global Header”.
    (The only options are “Build Global Header” or “Add from library”).
    I click “Build Global Header”. But of course this just leads to a blank header, not to my existing header.
    What am I doing wrong?
    Thank you.

    • It appears you’ve made a Custom Header rather than a Global Header. However, you can transform your Custom Header into a Global Header by dragging it onto the Default Website Template. For an example, please refer to this recording, https://go.screenpal.com/watch/cZjqXIV9krb. Should this solution not resolve your issue, do not hesitate to reach out to the Support Team by initiating a conversation from our website using the floating pink message icon on the bottom right.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today