Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #556887

    Hi there…I’ve tried 2 different codes for the functions.php, but I still can’t get houzz to show up in my social icons lists?

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

    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons[‘houzz’] = ‘houzz’;
    // Add new icon here
    return $icons;
    }

    #557415

    Hi BrendaSarg!

    Thank you for using Enfold.

    Were you able to select the houzz icon in the social panel? Please try this code instead:

    // Add new icon as an option for social icons
    function avf_add_custom_social_icon($icons) {
    	$icons['Houzz'] = 'houzz';
            //$icons['NewIcon'] = 'newicon';
    	return $icons;
    }
    
    // Register new icon as a theme icon\
    function avf_add_custom_icon($icons) {
    	$icons['houzz']	 = array( 'font' =>'fontello', 'icon' => 'ue800');
    	//$icons['newicon']	 = array( 'font' =>'newicon', 'icon' => 'ue801');
    	return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 50, 1);

    Best regards,
    Ismael

    #557819

    It crashed the site :(

    Can you please log in and see what the issue is? I’ve been trying for over a week to no avail.

    #557829

    And then I got it to stay up…but it made my other social media icons disappear from my header and Houzz still didn’t appear in my social icons list so I removed it again.

    This shouldn’t be so hard to add a new icon?

    #557850

    Hey!

    can you activate the code and send us after to check?
    I can see your icons there working fine.

    Cheers!
    Basilis

    #557890

    Yes…but then my icons are gone until you get back to this post and my client complains :(

    Can you please log in and check?? I don’t want to have the site up without the icons.

    #558184

    Any luck with this? I’ve been going back and forth with support for over a week :(

    #558600

    Hey!

    It should appear now, here’s the code that did the job:

    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    function avia_add_custom_icon($icons)
    {
    $icons['houzz']	 = array( 'font' =>'houzz-font', 'icon' => 'ue801');
    return $icons;
    }
    
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    function avia_add_custom_social_icon($icons)
    {
    $icons['houzz'] = 'houzz';
    return $icons;
    }

    The fontname and icon code were wrong (houzz-font, ue801).

    Best regards,
    Josue

    #559552

    Thank you! You’re the best :)

    #559578

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Houzz – my code isn't working?’ is closed to new replies.