Add icons in Divi footer

How to add new social icons in Divi's footer?

Updated on 01/06/24

1257 words

5 minutes of reading
73 comments

This article contains affiliate links recognizable by the percentage icon (%) → I am an affiliate link

It's still annoying, a theme like Divi that allows to display in the footer only the icons of Facebook, Twitter, Google+ and RSS... What about the other social networks? Don't you want to add the Instagram icon or the YouTube icon for example? I don't think so, otherwise you wouldn't be reading this article! Indeed, it is possible add icons to the Divi footer But not natively...

The code will have to be changed a little with the help of a child theme. In this article, we will detail all the steps to achieve this... and you will be proud of yourself .

Also read: How to unveil the mouse scroll footer?

1 – Divi natively embarks 15 social media icons

You should know that Divi comes with 15 social media icons that you can include in your footer or any other place. File style.css Divi, located in the theme directory, shows us exactly how many social media icons the theme includes by default:

 
 .et-social-facebook a.icon:before { content: 'e093'; } .et-social-twitter a.icon:before { content: 'e094'; } .et-social-google-plus a.icon:before { content: 'e096'; } .et-social-pinterest a.icon:before { content: 'e095'; } .and-social-linkedin a.icon:before { content: 'e09d'; } .et-social-tumblr a.icon:before { content: 'e097'; } .et-social-instagram a.icon:before { content: 'e09a'; } .et-social-skype a.icon:before { content: 'e0a2'; } .et-social-flikr a.icon:before { content: 'e0a6'; } .et-social-myspace a.icon:before { content: 'e0a1'; } .et-social-dribbble a.icon:before { content: 'e09b'; } .et-social-youtube a.icon:before { content: 'e0a3'; } .et-social-vimeo a.icon:before { content: 'e09c'; } .et-social-rss a.icon:before { content: 'e09e'; }

That means these icons are already embedded and it won't be difficult to use them.

2 - How to add icons to the Divi footer like Instagram, Pinterest, YouTube, Linkedin etc.?

In the article concerning Divi's general options, we had seen how to activate icons of Facebook, Twitter, Google+ and RSS for your site. To add other icons, you'll have to put your hands in the code a bit using the information seen in the previous paragraph... Nothing complicated if you follow these steps:

  1. First of all, you will have to create a child theme
  2. Then you will open the folder of your Divi theme (the original theme) to locate the folder named included.
  3. Once this folder included located, you will copy the named file social_icons.php to stick it in your child theme (at the root)
  4. Edit this named file social_icons.php in order to add icons to the Divi footer. You can open with the help of a text editor like Brackets or SublimText For example.
  5. For each social network you wish to add, you will need to insert the following lines, knowing that each element registered in red must be modified according to your needs:
    <li <="" class="et-social-icon et-social-reseaux-au-choix">
    php esc_html_e( '</p', 'Divi' ); ?>"class="icon">php esc_html_e( '</pSocial networks
    <span><?php esc_html_e( 'ReseauxSocial', 'Divi' ); ?>
    </a>
    </li>

Instagram

  • To the footer of Divi: and social-instagram https://www.instagram.com/?hl=en
    <li <="" class="et-social-icon Pinterest">
    php esc_html_e( '</p', 'Divi' ); ?>and social-interestphp esc_html_e( '</pSocial networks
    <span><?php esc_html_e( 'and social-instagram', 'Divi' ); ?>
    </a>
    </li>

  • To the footer of Divi: https://www.pinterest.fr/ https://www.instagram.com/?hl=en
    <li <="" class="et-social-icon Linkedin">
    php esc_html_e( '</p', 'Divi' ); ?>and Social Linkedinphp esc_html_e( '</pSocial networks
    <span><?php esc_html_e( 'https://www.pinterest.fr/', 'Divi' ); ?>
    </a>
    </li>

  • To the footer of Divi: https://www.linkin.com/ https://www.instagram.com/?hl=en
    <li <="" class="et-social-icon YouTube">
    php esc_html_e( '</p', 'Divi' ); ?>and social-youtubephp esc_html_e( '</pSocial networks
    <span><?php esc_html_e( 'https://www.linkin.com/', 'Divi' ); ?>
    </a>
    </li>

  • To the footer of Divi: https://www.youtube.com/ https://www.instagram.com/?hl=en
    <li <="" class="et-social-icon et-social-youtube">
    php esc_html_e( '</p', 'Divi' ); ?>https://www.youtube.com/php esc_html_e( '</pSocial networks
    <span><?php esc_html_e( 'https://www.youtube.com/', 'Divi' ); ?>
    </a>
    </li>

  • To the footer of Divi: https://vimeo.com/en/ https://www.instagram.com/?hl=en
    <li <="" class="et-social-icon Vimeo">
    php esc_html_e( '</p', 'Divi' ); ?>And so on...php esc_html_e( '</pSocial networks
    <span><?php esc_html_e( 'I want to know more about this topic Divi...', 'Divi' ); ?>
    </a>
    </li>

  • 3 – Where to insert the code of each social network into the file

social_icon.php

You will need to insert the codes of each network absolutely between the tags and ?

. Know that the order in which you insert your icons will be the order in which they will appear in the footer of your site. <ul> et </ul>In the screenshot above, I have you

Front-End side result of adding Divi icon
indicated with arrows where you can add code

additional icons. For example, if you want your new icons to be added after the RSS icon, you will need to add the code between line 35 and line 37

Just as if you want them to appear before Facebook, you will need to insert code between line 1 and line 3.

In the next screenshot, I inserted the code at the end of the file, just before closing the tag.

Add icons to the Divi footer, just after the RSS icon la balise </ul> :

add icons to the Divi footer
In your Divi parent theme file, copy the named file

4 - Last step: change the footer.php file

footer.php

  1. Paste this file into your child theme (it's the same manip as the social_icons.php file) Edit this file using a text editor
  2. On line 44 (since version 3.18.2 of Divi), you will need to modify the path to reach the file
  3. that you just inserted into your child theme
  4. The new path must be social_icons.php Social_icons
  5. ‘includes/social_icons' To better understand, look at the screenshot below: for Now your new icons should appear in the footer of your Divi site.
  6. Front-End side, here is the result of adding icons
How to add icons in Divi footer

The theme Divi is versatile and easy to modify, you've seen, it was very easy

Divi Tips » How to add new social icons to the Divi footer? Comment flow
. There is always a solution when customizations are not offered since the options available in the admin part. Some other WordPress themes are much more complicated to modify

In conclusion...

– Trust me – add icons to the Divi footerIt's also a moon reasons why I like to use Divi ... If you want more tips to customize your Divi theme, I'll give you an appointment here!How to add icons in the Divi footer – Say it on Pinterest! 73 Comments

This tutorial article explains how to add icons to Divi's footer such as Instagram, Pinterest, YouTube, Linkedin and more!
Where to add the new icons in the Divi footer

Get Divi

Divi training

Ebook Divi PDF

Free tips

Divi Quiz

Live coaching

icon 256x256

Proudly translated by wpLingua, the translation extension for WordPress That I develop! SEO-Friendly / Automatic / Editable

Divi footer icons

  1. morel fabien
  2. Lycia
  3. Marie
  4. Lycia
  5. Bayle
  6. Lycia
  7. Marie
  8. Lycia
  9. David
  10. Lycia
  11. Eric
  12. Eric
  13. Lycia
  14. Lycia
  15. Sylbohec
  16. Lycia
  17. Jean-Michel
  18. Jean-Michel
  19. Lycia Diaz
  20. Lycia Diaz
  21. Lycia Diaz
  22. Jean-Michel
  23. Lycia Diaz
  24. Jean-Michel
  25. Jean-Michel
  26. Lycia Diaz
  27. Jean-Michel
  28. Lycia Diaz
  29. kevin.tartary
  30. Jean-Michel
  31. Lycia Diaz
  32. Jean-Michel
  33. Lycia Diaz
  34. Lycia Diaz
  35. Lycia Diaz
  36. Jean-Michel
  37. Lycia Diaz
  38. iDevelopper
  39. Lycia Diaz
  40. iDevelopper
  41. Jean-Michel
  42. Lycia Diaz
  43. Lycia Diaz
  44. Enterprendre 3.0
  45. Olivier.LM
  46. Lycia Diaz
  47. Valentin Lanier
  48. Lycia Diaz
  49. Elodie
  50. Lycia Diaz
  51. Sabine
  52. Lycia Diaz
  53. Virginie A.
  54. Lycia Diaz
  55. Pierre Deschamps
  56. Lycia Diaz
  57. Sandra
  58. Lycia Diaz
  59. Sara
  60. Sara
  61. sara
  62. Lycia Diaz
  63. Anthony
  64. Lycia Diaz
  65. Anthony
  66. Anthony
  67. Lycia Diaz
  68. Lycia Diaz
  69. Dalida
  70. Dalida
  71. Dalida
  72. Lycia Diaz
  73. Thomas

Submit a comment

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

This site uses Akismet to reduce undesirables. Learn more about how your feedback data is used.