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
Mobile
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.
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.
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).
The header will load up in the builder, and you can see all of the spaces in which Divi lets you place the module.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
Mobile
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?
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.