Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1310142

    Hi, I am having an issue adding custom icons to social profiles

    I have followed the article. I see the icon registered in social profiles, However, when I select it, It does not display the icon I uploaded via fontello, it displays the incorrect icon. The icon in question is a pencil, it is supposed to be a tik tok logo.

    #1310207

    Hi dvalansi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1310327

    Hi, it was done.

    #1310356

    Hi dvalansi,

    Thanks for giving us admin access.
    It seems to be fixed already, see screenshot in private content.
    Please try to clear your browser cache.

    Also, I would suggest replacing the code you have with (so it doesn’t display as Icon Label but Tiktok):

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
        $icons['tiktok'] = array( 'font' =>'fontello', '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['Tiktok'] = 'tiktok';
        return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Best regards,
    Nikko

    #1310424

    Ive added the new code in, but cleared all cache and tried on a private browser and still shows a pencil icon, very strange as I see your screenshot and it looks good

    #1310442

    Hi dvalansi,

    Can you try another browser and check? or if you have Google Chrome, please try to use Incognito mode and check.
    I tried different browsers on my end and device and it’s consistently showing TikTok icon.

    Best regards,
    Nikko

    #1322075
    This reply has been marked as private.
    #1322086

    Hi Jeepkid99,

    I tried to login with the credentials with you gave however I’m getting:

    Error: The password you entered for the username is incorrect. 

    Best regards,
    Nikko

    #1322227
    This reply has been marked as private.
    #1322363

    Hi Jeepkid99,

    Thanks, I was able to login.
    Please use a child theme, you can download and find instructions on how to use it here: https://kriesi.at/documentation/enfold/child-theme/
    You’ll need it for two reasons, first is that the code above does not work when added on functions.php on the parent theme but it does on the child theme (I just tested to verify this one) and the second one is that when there’s an update, everything modified in the parent theme will be removed, so you’ll need to add them again, but with a child theme, the modification is preserved.

    Best regards,
    Nikko

    #1323190

    This fixed it. Thank you Nikko! I’ve been using Enfold for years and never knew about adding the child theme. Appreciate the response and help.

    #1323204

    Hi Jeepkid99,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Adding custom icons to social profiles’ is closed to new replies.