Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1318153

    I’ve added a custom icon as per the documentation: https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options

    The icon and link are working ok. But when I hovel over it it says: Icon_name instead ot Tiktok.

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

    The same issue is referenced here: https://kriesi.at/support/topic/tiktok-in-social-media/#post-1305097 and it was fixed for someone but the solution wasn’t posted.

    #1318160

    Resolved by:

    // 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['Tik Tok    '] = 'tiktok';
        return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    Had tried that before but then needed to remove and select the icon again.

    #1318293

    Hi mmc501,

    We’re glad that you were able to find the solution.
    Just let us know if you still need further assistance.

    Best regards,
    Nikko

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