Tagged: custom social icons
Hello,
I followed the directions in the documentation for adding custom icons to social profiles, but I am having a hard time getting the right icons to show up. I would like to add the phone and the location icons from Entypo. I updated the icon code and font name, but they both keep displaying as the pencil. They do show up as items in the dropdown menu in the Social Profiles section. This is the code I added to my functions.php. Is there something I’m missing? Thanks for your help!
function avia_add_custom_icon($icons) {
$icons['icon_name'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue854');
$icons['icon_name'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue842');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
// Add new icon as an option for social icons
function avia_add_custom_social_icon($icons) {
$icons['Phone'] = 'phone';
$icons['Location'] = 'location';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Hey Kirstie,
In your code please replace:
$icons['icon_name'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue854');
$icons['icon_name'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue842');
with
$icons['Phone'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue854');
$icons['Location'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue842');
Maybe you need to switch the values ue854 and ue842 if the ue842 value stands for the phone icon and vice versa.
Best regards,
Peter
Perfect! That’s exactly what I was missing. Thanks so much for your help!
Hi MattJensenMarketing,
Glad that we could help :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!
Best regards,
Nikko