
-
AuthorPosts
-
September 10, 2025 at 1:03 am #1489112
Hi – I am trying to add TripAdvisor to my social profiles. I have uploaded the fontello zip and add the following to my functions.php:
// 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);I am still unable to get the icon to load. Am i missing something?
Below are login credentials for your review.
Thank you for your helpSeptember 10, 2025 at 5:50 am #1489113So you uploaded your own symbols to Fontello? You didn’t enter a name for the font at the top of the Fontello page. That’s the one way to get the font name fontello.
Can you insert the icon as symbol if you place an element ( icon ) to a page?
Have you choosen that icon on Enfold Options – Social Profiles : at the end of that dropdown list your new entry?
next – i do not know it you can choose every string on that – because these settings will end in a class e.g. (social_bookmarks_tripadvisor and av-social-link-tripadvisor) if you got a space inside $icons[‘tripadvisor’] it might be broken. ( you can have Tripadvisor)
( the display_name is the Name that is shown on hovering that icon )try:
function avia_add_custom_icon($icons) { $icons['tripadvisor'] = array( 'font' =>'fontello', 'icon' => 'uf262', 'display_name' => 'Trip Advisor'); 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['tripadvisor'] = 'tripadvisor'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
September 10, 2025 at 6:00 am #1489115if you like to have that on Enfold – Blog Layout – to choose the icons for “share on …”
function avia_add_social_share_link_arguments($args){ $tripadvisor = array('tripadvisor' => array("encode" => true, "encode_urls" => false, "pattern" => "https://www.tripadvisor.com/", 'label' => __("Share on Trip Advisor", 'avia_framework'))); $args = array_merge($tripadvisor, $args); return $args; } add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
-
AuthorPosts
- You must be logged in to reply to this topic.