Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #797348

    Hi Support Team,
    I need to add an additional social icon to the Social Profiles Section in the header area of theme options and in the widget of Enfold. I am working with a child theme if that helps. The icon that needs to be added is Houzz and I’ve downloaded from Fontello. I can see it in the choices within Content Elements for “Icon List”.
    I have been through that tutorial and reviewed many of the forums regarding this. It’s not working…

    Here is what I have added to my CHILD THEME: functions-child.php
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘houzz’] = array( ‘font’ =>’houzz’, ‘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[‘Houzz’] = ‘houzz’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    Can you tell me how to do this?

    Thank you for your time!

    #797546

    Hey ersink,

    I tried logging in, and it seems like our account isn’t active. :)

    ACCOUNT PENDING: Your account is currently not active. An administrator needs to activate your account before you can login.

    But anyway, I noticed that your code currently uses single left (‘) and right(’) quotes. Please make sure you use directionless single quotes (‘). Please try this code instead:

    
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons['houzz']	= array( 'font' =>'houzz', '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['Houzz'] = 'houzz';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    

    Please let us know if you need further help.

    Best regards,
    Sarah

    #797597

    Hey Support Team,

    sorry about that. The logins should work now.
    Please find in my enfold-child folder the function.php with your settings. Now I see a pen instead of the houzz icon.

    Do you know why?

    Cheers
    Ersin

    #797620

    Hi! I’ve checked your icon, and your code should be like this instead:

    
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons['houzz']	= array( 'font' => 'fontello', 'icon' => 'uf27c');
    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['Houzz'] = 'houzz';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    

    I updated your functions.php file. If you check your website now, the icon is visible properly. :)

    Best regards,
    Sarah

    #797642

    wow, awesome support!. Thank you very much. That worked fine.

    Cheers
    Ersin

    #797664

    You’re welcome! We’re glad to help.

    Please take a moment to review our theme if you haven’t already. https://themeforest.net/downloads We’d appreciate it!

    If you have any other questions or issues, feel free to post them here on the forum and we will gladly try to help you.

    Also, 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/

    Thank you for using Enfold!

    Sarah

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Additional social icons to both Social Media Profile widget and theme option’ is closed to new replies.