-
AuthorPosts
-
January 29, 2020 at 10:29 pm #1179625
Hi there, on the site https://rsconstruction.staging.wpengine.com/ I can’t display Houzz and Google icons, it’s displaying only Google+ and I’ve no option to display these icons on the top and on the footer.
I have this at functions.php file but anyways, nothing is happening:
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
// New Code Below
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘houzz’] = array( ‘font’ =>’home’, ‘icon’ => ‘ue800’);
$icons[‘icon-google’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘uf1a0’);
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’;
$icons[‘Google’] = ‘icon-google’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);/*
And I have this also at the CSS
.social_bookmarks_icon-google a:hover {
color:#FFF!important;
background:#DB4437!important;
}.social_bookmarks_icon-google a:hover:before {
color:#FFF!important;
background:#DB4437!important;
}Could you please check what could be the problem? I sent you an admin access to the WordPress staging site:
January 30, 2020 at 4:46 pm #1179982Hey sherrybdesign,
The code is not there anymore if the theme was updated, the file was overwritten. Or did you remove the code?
Best regards,
VictoriaFebruary 1, 2020 at 5:57 am #1180449Hey Victoria, the theme I’m using is Enfold 4.6.2 and the code is already there from line 765 to 780 on the functions.php file. Could you please check again and tell me why those icons aren’t appearing on the Enfold Social Media options?
// New Code Below
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘houzz’] = array( ‘font’ =>’home’, ‘icon’ => ‘ue800’);
$icons[‘icon-google’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘uf1a0’);
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’;
$icons[‘Google’] = ‘icon-google’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);Thank you!
February 5, 2020 at 9:43 am #1181663Hi sherrybdesign,
Your code will work but only if it’s on the child theme’s functions.php.
Please use a child theme, it can be downloaded here (includes the instructions in using it as well):
– https://kriesi.at/documentation/enfold/child-theme/Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.