Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1158273

    Hi,

    I’ve tried following the steps here:
    https://kriesi.at/support/topic/add-new-or-custom-social-icon/

    but still can not get my Tripadvisor icon to show in social profiles. It only appears as a pencil icon.

    I’ve added this code to my functions.php file:

    function avia_add_custom_icon($icons) {
    $icons[‘icon_name’] = 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[‘Tripadvisor’] = ‘Tripadvisor’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    I also uploaded the font using the Iconfont Manager.
    Login info below. Thanks for all of your help!

    #1158587

    Hey Lee,

    I adjusted the code for you. Please check.

    Best regards,
    Victoria

    #1158592

    Perfect! Would you be able to explain what I was doing wrong? I was troubleshooting this for so long and couldn’t figure it out.

    Thank you for all of your help!

    #1159415

    Hi Lee,

    Yes, there were errors in the name of the key for the array in the first function and also I deleted and readded the icon.

    Glad we could help :)

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.