Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #634828

    Hi,

    I don’t manage to add a custom icon for social profiles.

    1) I have imported the icon without problem. I can use it in a custom separator for instance and in import/export section it shows “Font: tripadvisor”.

    2) I have added the following lines at the bottom of the functions.php file:
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘tripadvisoricon’] = array( ‘font’ =>’tripadvisor’, ‘icon’ => ‘0ue800’);
    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’] = ‘tripadvisoricon’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    But in Social Profiles i can’t find my “Tripadvisor” icon in the list when i click on the + sign.

    Any help greatly appreciated (i lost 3 hours checking the forums without finding the answer)

    Thanks in advance
    Guillaume

    #635207

    Hey guillaume14,

    If you are not using a child theme, please make sure to add the code right below following line in functions.php file

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    If that does not help, please create a temporary admin login and post it here privately.

    Best regards,
    Yigit

    #635270

    Hi Yigit,

    Thanks for your help: i now have the ability to add my custom icon in the social profiles tab :)

    But the icon doesnt appear in frontend next to my Facebook icon: do i need to add some CSS for the icon to be visible ?

    Thanks in advance
    Guillaume

    #635702

    Hi,

    Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #635817

    Hi,

    Here you go for the admin account.

    Thanks a lot
    Guillaume

    #635861

    Hi,

    You had a small typo in your code, i fixed it, please review your website now.

    Best regards,
    Yigit

    #635929

    Ooops sorry

    Thanks a lot
    Regards

    Guillaume

    #635932

    Hey!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Don't manage to add custom icon for social profiles’ is closed to new replies.