Tagged: fontello, functions.php
-
AuthorPosts
-
December 23, 2015 at 6:24 am #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;
}December 25, 2015 at 4:46 am #557415Hi 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,
IsmaelDecember 28, 2015 at 8:14 pm #557819It 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.
December 28, 2015 at 8:29 pm #557829And 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?
December 28, 2015 at 9:53 pm #557850Hey!
can you activate the code and send us after to check?
I can see your icons there working fine.Cheers!
BasilisDecember 29, 2015 at 12:03 am #557890Yes…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.
December 29, 2015 at 6:13 pm #558184Any luck with this? I’ve been going back and forth with support for over a week :(
December 30, 2015 at 11:40 pm #558600Hey!
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,
JosueJanuary 4, 2016 at 10:51 pm #559552Thank you! You’re the best :)
January 4, 2016 at 11:43 pm #559578You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Houzz – my code isn't working?’ is closed to new replies.