Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1294844
    eduardo
    Guest

    custom social media icons

    Hello, good morning, I have tried to change the icons imported by Fontello, the icons appear but in the icons section when we add an icon but my icon does not appear in the social networks section, I already used the codes that come in the documentation. I have put them in the theme. child as in the parent theme and it marks an error I do not know what else to do I am using this code:

    // Register new icon as a theme icon

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

    #1295337

    Hi,

    Thanks for contacting us!

    I added following code to functions.php file of your parent theme

    // Register new icon as a theme icon
    function avia_add_custom_tiktok_icon($icons) {
    $icons['tiktok'] = array( 'font' =>'tiktok', 'icon' => 'ue801');
    return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_tiktok_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_tiktok_social_icon($icons) {
    $icons['TikTok'] = 'tiktok';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_tiktok_social_icon', 10, 1);

    Please review your website.

    If you have any other questions or issues, please register to our support forum – https://kriesi.at/support/register/ using your purchase code and start new threads under Enfold sub forum :)

    Regards,
    Yigit

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