Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #355542

    Hi 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,
    Elliott

    #355837
    This reply has been marked as private.
    #356172

    Hey!

    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,
    Ismael

    #356666

    Hi 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.

    #357110

    Hi!

    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.
    #394321
    This reply has been marked as private.
    #394345

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab and adjust as needed

    li.social_bookmarks_uf314.av-social-link-uf314:hover a {
    background-color: orange!important;
    color: white;
    }

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.