Hi, I want to show a tripadvisor icon on header. My site is
I follow this steps:
1) create a font icon in fontello
2) put into Functions this code:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons[‘tripadvisor’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue800’);
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[‘Trip Advisor’] = ‘tripadvisor’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
2) import this icon in enfold general panel (ive check it the code of icon insert it an icon in a post, and look ok)
3) Assign the url in Social Profiles
But the ICON DONT SHOW IN HEADER
Hi carmycurly!
I changed the code to following one
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['tripadvisoricon'] = array( 'font' =>'tripadvisor', 'icon' => 'ue800');
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['Trip Advisor'] = 'tripadvisoricon';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Please review your website now.
If you would like to adjust the colors, please use following code in Quick CSS field in Enfold theme options > General Styling tab
.av-social-link-tripadvisoricon a { color: black; background: red; }
Best regards,
Yigit
ITS OK THANKS!