How to add XING Social Icon Font to Divi
I would not recommend anything to you I’ve not been using enthusiastically myself. Bold links are affiliate links. I recommend what you’ll find there and If you make a purchase, I will get a commission without additional costs to you.
If you have anything to do with freelancing or job placement in the german-speaking area you probably want to link to your profile there. Therefore I will provide you with a XING icon font to seamlessly integrate into your Divi child theme Social Bar.
The XING icon font
The first thing we want is a XING icon font to match the Divi social icon font called ETmodules. This icon font comes with 360 awesome icons but XING isn’t among them, sadly. The XING icon can luckily be found at IcoMoon and even downloaded as a webfont in the IcoMoon-App. Awesome!
We then save the xing font files into a subfolder of our child theme named fonts.
Loading the font
The next thing we need to do is to load the XING webfont into our theme. This is done with adding the @font-face in our child theme style.css.
We then define our custom-social-icon-classes and add classes to use in the next step: modifying the social-icon-template.
Customizing the template
Divi displays the social icons from a template located at /includes/social_icons.php. We add the same folder and file to our child theme to make WordPress use this one instead.
We now want to add another list element containing our XING icon and link to our profile at the end of that unsorted-list-element.
Styling the icons
The last thing we need to do is to style the icon according to our theme. This goes into your child themes style.css and could look like this
And there we have it: a perfectly matching XING icon with our Divi child theme. This can easily be adapted to any theme using icon fonts to display social icons. Could you get that to work? How do you like it?
If you have any trouble following the step-by-step-instructions, I recommend downloading the ZIP and adding everything in there to your child theme. Do not forget to edit YOUR-PROFILE and make it point to your profile at XING in the /includes/social_icons.php file.