Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #452079

    Hi,
    I need to add additional social icons to the drop down list in the Social Profiles Section of Enfold. Can you tell me how to do this?

    Thanks,
    Scott

    #452088

    I did try adding this to the functions.php but it didn’t work:

    ‘houzz’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue803’),

    Additionally, I uploaded the fontello font for houzz via the IconManager in Enfold but that didn’t help.
    Your help is much appreciated.
    Thanks,
    Scott

    #452110

    Hi Scott!

    You need to the change the ‘font’ value to the name of the font you uploaded:

    /* this will add the icon to the framework available icons */
    function avia_add_custom_icon($icons) {
    	$icons['houzz']	 = array( 'font' =>'_FONT_NAME_HERE_', 'icon' => '_ICON_HERE_');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    /* this will add the newly added icon to the social profile options */
    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);

    Best regards,
    Josue

    #452279

    Hi Josue,

    I added your code to the functions.php file for Enfold and uploaded it to the correct folder on the server. I named the font houzz and included it in the code as per your instructions. It’s not working. Houzz does not show up in the drop down menu in the Social Profiles section of the Enfold Theme. Any suggestions?

    Thanks,
    Scott

    //add custom social icon

    function avia_add_custom_icon($icons) {
    $icons[‘houzz’] = array( ‘font’ =>’houzz’, ‘icon’ => ‘ue800’);
    return $icons;
    }
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);

    /* this will add the newly added icon to the social profile options */
    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);

    #452298

    Hi Josue,
    I found in the forums where you helped someone with the same code. It appears they gave you access to their site and you added to code to”Plugins > Edit Functions.” Not sure where in WP you added this but perhaps that’s what I’m missing here.

    Thanks,
    Scott

    #452303

    Okay! I got it working! I didn’t have your code in the right place in the functions.php file. I placed the code below:
    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    Now it’s working great!
    Thanks for all of your great help!
    Scott

    #452318

    Hey Scott,

    Yes that’s the way to do it when no child theme is available, alternatively you can use this plugin to store these custom functions as a plugin (Plugins > Edit functions) separated from the theme files (this will prevent overriding when updating).

    Regards,
    Josue

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