Changing the Divi Phone and Email Icons

Written by Dan Mossop

The Divi Theme secondary header lets you add a phone number and email address, and displays these along with a corresponding icon. However, there is no way to change the icon, should you want to do so. Here are a few ways that you can change the phone and email to something better suited to your purposes.

Replacing the Icons with another Elegant Themes Icon

The easiest way to change the icons is to replace them with another of Divi's built-in icons.

Follow that link and scroll to the "Complete Set and Unicode Reference Guide" section and you'll see each icon listed along with a code such as "" (the icon for a mobile phone, in this case). If you remove the "&#x" and ";" you'll get a code (e.g. "e00b") that you can now use in the following CSS to change the phone / email icon:

/* Change the secondary header phone icon */
#et-info-phone:before { 
    content: 'e00b' !important;
}

/* Change the secondary header email icon */
#et-info-email:before { 
    content: 'e00b' !important;
}

Replacing the Icon with a Font Awesome Icon

If none of the built-in icons suit your site, you may like to change the icons to one from an extended icon font such as Font Awesome.

First load the Font Awesome icon font into your site. The easiest way to do this is to get the Font Awesome embed code (which they'll email to you). Paste the code you receive into the "Divi > Theme Options > Integrations > Add code to the head of your blog" box.

Then pick the Font Awesome icon you want to use. Click on that icon to get a page of information about it. On that page, in small writing, you'll find the unicode value for the icon, which will be something like "f10b" (which in this case is the code for Font Awesome's own mobile phone icon). You can now use the code with one of the CSS blocks below:

/* Change the secondary header phone icon */
span#et-info-phone:before { 
    font-family: FontAwesome !important;
    content: '10b' !important;
}

/* Change the secondary header email icon */
span#et-info-email:before { 
    font-family: FontAwesome !important;
    content: '10b' !important;
}

Enhance Your Divi Icons with Halloween Flair!

Easily customize your Divi phone and email icons with the Divi Halloween plugin. Integrate 179 unique Halloween-themed icons to give your contact info a festive twist. Perfect for seasonal updates and adding thematic charm without any hassle.

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, 

6 Comments

  1. All good, I worked it out. Set the default to what I wanted and created a query that worked for the tablet minimum width to what is in place already.

    Reply
    • Okay, great! Thanks for the update, Grant, and I'm glad you got it sorted.

      Reply
  2. Hi there,

    Wondering if you can help. On this site using the Divi Builder https://www.payrollmatters.co.nz/,
    for the phone styling I am trying to get top of page phone number and email address to float:right. If I add float:right to the element (e.g. #et-info-phone) in the browser css console I get what I want but adding this to the site styles in a media query targeting max-width:475 it doesn't work. Where do I find a styles setting to override the Divi styles?

    Reply
  3. Thanks, Dan! I had the phone icon there before, but I think the sign of the times suggest no one really uses a telephone anymore and I thought I update with an image of a mobile phone. Also, I added a vertical-align: 2px to have the image of the mobile phone align with the text in case anyone was interested.

    Reply
    • You're welcome, Louis. Yeah, updating the icon to a mobile phone makes a lot of sense. Thanks for the alignment tip :)

      Reply
    • Thank you for this Louis, the default email icon vertical alignment has been bugging me for a while. In my case, I set it to -1 px. Can't believe I haven't thought of this before!

      #et-info-email:before {
      vertical-align: -1px!important;
      }

      Reply

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 Posts

Hide the Page Title in the Hello Elementor Theme

Hiding the page title in the Hello Elementor theme allows you to create a cleaner and more customized page layout, free from default headings that may not fit your design. This is particularly useful for landing pages or custom content layouts where the default page...

How to Hide a Divi Module When Scrolling Up or Down

In this quick tutorial, I’ll show you how to hide a Divi module when scrolling in a specific direction (up or down), so that the module only shows when you want it to. This is especially useful when using Divi’s Scroll Effects feature and you have a effect you want to...

Fade a Divi Image Module Edge into the Background

Want to create a stylish fade effect on your Divi image module—where one side fades smoothly into the background? With a bit of CSS, you can make any edge (or corner) of the image fade out: top, bottom, left, right, or even diagonally.Fade a Divi Image Module Edge...

Hide the Header and Footer in the Hello Elementor Theme

Removing the default header and footer from your Hello Elementor theme allows for a streamlined and distraction-free website design. This is especially useful when creating unique landing pages, full-width layouts, or custom headers and footers with a page builder. In...

Setting up the Divi Password Box Module

Setting up password protection on a page can help you control access to sensitive or private content in WordPress, allowing only authorized visitors to view certain sections. With the Divi Password Box module, you can replace the plain Divi password form with a fully...

Random Posts