For the last hour or so I’ve been trying to add TripAdvisor icon to my website with no luck.
I’ve been able to add the TripAdvisor in Theme option within the Dashboard, but the icon just won’t appear on the site.
I’d like to say that I’ve tried every combination for it to work, but apparently that’s not the case.
Please help :)
Hey SlabeB,
I was able to get it working for you, just so you will know in the future the fontello fonts should be uploaded to Enfold Theme Options > Import/Export > Iconfont Manager, not the Custom Font Manager :)
The correct function is:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['tripadvisor'] = array( 'font' =>'fontello', 'icon' => 'uf262');
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);
If you open the zip file that you download from fontello, and look in fontello.css at the bottom you will see the code for the icon: content: ‘\f262’;
and when you put it into the function change the “\” to a “u” look above.
Please clear your browser cache and check.
Best regards,
Mike
Mike, thank you so much for helping me with this. I promise I’ll read the instructions more carefully in the future :)
As far as I’m concerned, this topic can be closed.
Cheers,
Borut
Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)
Best regards,
Mike