I’ve done some research and can’t seem to get the solutions to work to replace the standard social profile YouTube icon that appears in the top header with a different icon. I’ve uploaded the fontello icon I want (FontAwesome icon), and added the code in my child functions, but all I see in the drop down is “Icon Label” when I try to pick a new YouTube icon. I know I’m missing something, just not sure what.
Apologies for the redundant support post!
Thanks!
Any help?
Hi,
Sorry for the late reply. Where can we see the icon/element in question? Which icon would you like to replace it with?
Best regards,
Rikard
Hi DanielCPalmer,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Sure see below.
Hi DanielCPalmer,
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['alt_youtube'] = array( 'font' =>'fontello', 'icon' => '61802');
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['Alternative Youtube'] = 'alt_youtube';
return $icons;
}
Best regards,
Victoria