Hi. I’m trying to add multiple social icons to the social profiles, and for some reason the icons are not showing up on the webpage. The names get added to the social profiles drop down… but when I load the website… the icons do not appear.
Here is the code I used:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['spotify'] = array( 'font' =>'fontello', 'icon' => 'uf1e9');
$icons['music'] = array( 'font' =>'fontello', 'icon' => 'uf1e9');
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['iTunes'] = 'music';
$icons['Spotify'] = 'spotify';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
I imported the fontello zip with both icons in it.
Hey,
I updated the code to following one
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['spotify'] = array( 'font' =>'fontello', 'icon' => 'uf1bc');
$icons['music'] = array( 'font' =>'fontello', '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['iTunes'] = 'music';
$icons['Spotify'] = 'spotify';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Please review your website
Regards,
Yigit
Yes they are showing up just perfectly. Thank you for the quick response Yigit! :)