Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1279474

    I am having trouble importing my custom icon into the social icons. It imports to the theme fine but does not appear in the social icons menu.

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

    I have looked through other threads and no solutions are working so there must be something I’m missing. I have tried icon codes E801, UE801, 0xUE801

    #1279503

    Hey undervised,

    I do not see the code added to the functions.php. Did you remove it? And in this case, it’s better to have a child theme installed and activated.

    Here are the docs for you:

    Best regards,
    Victoria

    #1279515

    I’ve added it back in now sorry I was trying another way, thank you for your suggestion. I am worried about putting a child theme in as I dont want to lose all the current settings.

    It should still work on the main theme though right? It’s still not working for me now I’ve added it in, there’s no option in the social profiles dropdown.

    #1280275

    Hi undervised,

    It depends on where you add it and it will be overwritten with the next theme update if you keep it in the parent theme. I moved the code for you, please add the link and test the icon.

    Best regards,
    Victoria

    #1280485

    Hi I have added the icon and linked it however it is showing a blank space where it should appear.

    #1281413

    Hi undervised,

    Did you get the correct icon code? How did you get it?

    Best regards,
    Victoria

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