Hi there,
we’ve added some custom icons to the social media icon options via
/*Add Custom Icon to Social Media Icons*/
function avia_add_custom_icon($icons) {
$icons['icon-iconmonstr-paper-plane-1'] = array( 'font' =>'jom-iconfont', 'icon' => '\e915');
$icons['icon-bee_4'] = array( 'font' =>'jom-iconfont', 'icon' => '\e914');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
function avia_add_custom_social_icon($icons) {
$icons['Newsletter'] = 'icon-iconmonstr-paper-plane-1';
$icons['Biene'] = 'icon-bee_4';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
sadly, once you hover over the custom icons the title tag equals “icon-iconmonstr-paper-plane-1”, which is not pretty at all.
Is there a way to modify that?
Thanks in advance
Hey emilconsor,
Try this function instead:
/*Add Custom Icon to Social Media Icons*/
function avia_add_custom_icon($icons) {
$icons['newspaper'] = array( 'font' =>'jom-iconfont', 'icon' => '\e915');
$icons['biene'] = array( 'font' =>'jom-iconfont', 'icon' => '\e914');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
function avia_add_custom_social_icon($icons) {
$icons['Newsletter'] = 'newspaper';
$icons['Biene'] = 'biene';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Best regards,
Mike
Hi Mike,
thanks, that did it.
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike