
-
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);
September 10, 2025 at 4:46 pm #1489135That didnt work.
I downloaded the TripAdvisor icon via Fontello website and added to my website as instructed.
Yes, I have tried to add the icon: Enfold > Social Profiles … Nothing is showing
Thank you for your help : )September 10, 2025 at 5:09 pm #1489136where did you insert those snippets above? (child-theme functions.php ?)
what about my question: Can you insert the icon as symbol if you place an element ( icon ) to a page?
if this is not possible – then the upload or the creation on fontello is not well done.What font-name do you see on Font-Manager (red underlined names) for that uploaded font:
September 10, 2025 at 5:46 pm #1489137I tried adding it to the page but it doesnt show the icon, just the name.
I have added the snippet to the bottom of my functions.php file
Here is what’s showing:
https://machinegunsvegas.com/wp-content/uploads/2025/09/Screenshot-2025-09-10-at-17.45.03.png -
AuthorPosts
- You must be logged in to reply to this topic.