-
AuthorPosts
-
November 21, 2014 at 10:36 am #354985
Hi!
After upgrading to WordPress 4.0.1 and updated Enfold to the last version, I have an issue with a custom Social Icon. The code below doesn’t include anymore the custom fontello icon:add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);
function avia_add_custom_icon($icons)
{
$icons[‘blogger’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘uf314’);
return $icons;
}Can you please help me to resolve this problem?
Cheers
D.November 21, 2014 at 8:43 pm #355542Hi David!
Send us a WordPress login and we’ll take a look. Be sure to set your reply as private when including login information.
Best regards,
ElliottNovember 22, 2014 at 10:18 am #355837This reply has been marked as private.November 23, 2014 at 10:42 am #356172Hey!
Thank you for the info.
Blogger is not available as a social icon option by default. How did you add it before? Please use this on functions.php:
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['Blogger'] = 'blogger'; return $icons; }
You’ll be able to select Blogger on Enfold > Social Profiles.
Regards,
IsmaelNovember 24, 2014 at 11:46 am #356666Hi Ismael,
I uploaded a custom fontello icon for Blogger! This is the code in functions.php:add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
function avia_add_custom_social_icon($icons)
{
$icons[‘Blogger’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘uf314’);
return $icons;
}Before the upgrade to the latest version of the Enfold theme, everything was working fine! Now is possible to select Blogger on Enfold > Social Profiles, but the custom fontello icon is not appearing.
D.
November 24, 2014 at 9:10 pm #357110Hi!
This code is working on my XAMPP setup.
function avia_add_custom_icon($icons) { $icons['blogger'] = array( 'font' =>'fontello', 'icon' => 'ue800'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['Blogger'] = 'blogger'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
You need to add it around line 18 so it displays beneath this line.
if(isset($avia_config['use_child_theme_functions_only'])) return;
Double check that the ue800 value for your icon is correct. For me I extracted the font file and opened up the svg file to see the correct code to use.
Cheers!
Elliott- This reply was modified 9 years, 12 months ago by Elliott.
February 11, 2015 at 1:52 pm #394321This reply has been marked as private.February 11, 2015 at 2:34 pm #394345 -
AuthorPosts
- You must be logged in to reply to this topic.