I have added the following code to the end of my functions.php file, but the icon fonts are not added to the drop down list under “Social Icon.”
I added the fontello file before adding the changes to function.php. Did I miss something. I followed the PHP snippet from the documention.
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘icon_name1’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue800’);
$icons[‘icon_name2’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue801’);
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[‘Icon Label 1’] = ‘icon_name1’;
$icons[‘Icon Label 2’] = ‘icon_name2’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
Hey Critterbug!
If you are not using a child theme, please make sure that you are adding your code right below following line in functions.php file
if(isset($avia_config['use_child_theme_functions_only'])) return;
If that does not help, please create a temporary admin login and post it here privately.
Cheers!
Yigit
Thanks Yigit,
That worked!
You might want to consider adding that bit of information to the snippet in the documents. I spent all morning reading support threads and that little bit of info was no where.
Hey!
I will update the post on our documentation in a minute. Glad it is working fine now :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Cheers!
Yigit