Tagged: custom icons
I’ve added a custom icon as per the documentation: https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options
The icon and link are working ok. But when I hovel over it it says: Icon_name instead ot Tiktok.
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['icon_name'] = 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['Tik Tok'] = 'icon_name';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
The same issue is referenced here: https://kriesi.at/support/topic/tiktok-in-social-media/#post-1305097 and it was fixed for someone but the solution wasn’t posted.
Resolved by:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['tiktok'] = 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['Tik Tok '] = 'tiktok';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Had tried that before but then needed to remove and select the icon again.
Hi mmc501,
We’re glad that you were able to find the solution.
Just let us know if you still need further assistance.
Best regards,
Nikko