Tagged: social icons
I have implement a new icon “Android”. It appears! Yes. But how can i add an other icon?
Here is my code, which i have added in the /wp-content/themes/enfold/functions.php
I have added the whatsapp-font-icon within the enfold inport/export -> Iconfont Manager.
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['android'] = array( 'font' =>'entypo-fontello', 'icon' => 'u+F17B');
$icons['whatsapp'] = array( 'font' =>'whatsapp-font-icon', 'icon' => 'ue800');
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['android'] = 'Android';
$icons['whatsapp'] = 'WhatsApp';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);