Hi,
Added below code to functions.php file to add custom social icons,
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['Groupware'] = array( 'font' =>'fontello', 'icon' => 'UF1A0');
$icons['TeamViewer'] = array( 'font' =>'fontello', 'icon' => 'UE801');
$icons['Messenger'] = array( 'font' =>'fontello', 'icon' => 'UF136');
$icons['Wiki'] = array( 'font' =>'fontello', 'icon' => 'UF266');
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['Groupware'] = 'Groupware';
$icons['TeamViewer'] = 'TeamViewer';
$icons['Messenger'] = 'Messenger';
$icons['Wiki'] = 'Wiki';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
But doesn’t show at Enfold Theme Options > Social Profiles dropdown menu.
Could you please advise?
Thank you,
-Leanne
Never mind, solved!
I missed the below part of the document:
Note 2: If you are not using a child theme, please find following line in Functions.php file of parent theme
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
and add your code right below that line.
Hi,
Glad to hear that you have this sorted out, 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
