Recreate the top header phone / email in a module

Written by Dan Mossop

The Divi default header can be configured with a secondary header which displays, among other things, a phone number and email address. If you use a custom header built in the theme builder, you won't be able to make use of this secondary header. Here's how you can recreate the phone / email portion in a module that can be placed in your theme builder header.

To do so, add a code module to the page and then paste the following into it:

1<style>
2 .my-phone {
3 margin-right: 13px;
4 }
5 .my-phone:before {
6 font-family: ETmodules;
7 content: "\e090";
8 position: relative;
9 top: 2px;
10 margin-right: 2px;
11 }
12 .my-email:before {
13 font-family: ETmodules;
14 content: "\e076";
15 margin-right: 4px;
16 }
17</style>
18<a class="my-phone" href="tel:0412341234">04-1234-1234</a>
19<a class="my-email" href="mailto:test@test.com">test@test.com</a>
Now you'll have something that looks like this:

Supercharge Your Posts with AI-Generated CTAs

Transform your WordPress site with WP Magic CTAs. Our AI-driven plugin creates customized, highly-targeted calls to action for each post, helping you increase engagement and conversions effortlessly. Perfect for promoting offers, building your email list, and directing traffic where you need it most.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest From Divi Booster

Enable Automatic Looping for YouTube Videos in the Divi Video Module

Enabling automatic looping for YouTube videos in your Divi video module ensures that content plays seamlessly and continuously without interruption. This feature can enhance user engagement, highlight key information, or create dynamic visual effects on your website....

Hide Video Controls in Divi Video Module

Disabling YouTube video controls in the Divi Video Module helps create a seamless, distraction-free viewing experience for your site visitors. This approach is useful when you want full control over how your video content appears and is interacted with on the page, or...

Mute YouTube Videos by Default in the Divi Video Module

In the Divi Video Module, starting your YouTube videos muted by default can create a more user-friendly browsing experience on your webpage. It is particularly beneficial for reducing distractions, enhancing visitor engagement, and providing a seamless content preview...

Autoplay Videos in Divi Video Module

Enabling videos in your Divi video module to start playing automatically can enhance both the site's design and user engagement. To ensure full compatibility with browser requirements, such as Chrome's autoplay policy, it's often necessary to start your videos muted...

How to Add the Post Status in Divi's Dynamic Content

Divi's Dynamic Content feature is great for enhancing your post/page templates with post-specific information. While Divi includes an option to show information such as the Post Created Date using Dynamic Content, there is no equivalent option for the Post Status....

Random Divi Posts