Tagged: header, social icons
Hi. I’d like to follow up on this please: If you refer to my prior ticket, you’ll see that I was able several weeks ago to add the Houzz social icon in my header. However, I had done this in the parent theme, not a child theme – so when I updated the theme the icon disappeared. (see http://www.fiveoaksdemo.com, top right-hand corner).
Today if have uploaded and activated the child theme, and I inserted what I think is the correct code in the functions.php file, but I am still not able to get the Houzz icon to show up in the header.
Can you help me please?
Thank you!
Hey Arrastia,
Should work now, code used:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['houzz'] = array( 'font' =>'fontello', 'icon' => 'ue802');
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);
Best regards,
Josue
Hi,
Thank you for contacting us.
It is a good idea to first test the child theme on a localhost or staging site. Please check this link to setup a testing site on your local machine.
You can backup and restore the main theme settings to your new child theme to make the look same :)
Best regards,
Vinay