Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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 help

    #1489113

    So 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);
    #1489115

    if 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);
    #1489135

    That 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 : )

    #1489136

    where 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:

    #1489137

    I 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

    #1489148

    Hi,

    Thank you for the update.

    We modified the avf_social_icons_options filter a bit and moved it around line 64 of the functions.php file. We also added the social icon in the Enfold > Social Profiles panel. Please make sure to purge the cache before checking the page.

    Screenshot-2025-09-11-at-10-31-50-AM
    image host
    Best regards,
    Ismael

    #1489161

    Thank you, I am grateful for your help : )

    #1489178

    Hi,

    You’re quite welcome! Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Add Trip Advisor to Social Profiles’ is closed to new replies.