Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1443751

    Looking to add a TikTok icon button using the “Social Buttons” module but it is not allowing us to add this.

    Below is the code we are trying:

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

    add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
    function avia_add_social_share_link_arguments($args){
    $tiktok = array(‘tiktok’ => array(“encode”=>true, “encode_urls”=>false, “pattern” => https://www.tiktok.com/, ‘label’ => __(“Share on TikTok”,’avia_framework’)));
    $args = array_merge($tiktok, $args);
    return $args;
    }

    #1443808

    Hey Ryan,

    Thank you for the inquiry.

    Did you add the code in the functions.php file? Please provide the login details in the private field so that we can check the modification. Make sure that the Appearance > Theme File Editor is accessible.

    Best regards,
    Ismael

    #1444140

    Actually went back and looked and had inadvertently added to incorrect file. With a few tweaks got the added TikTok icon to show. Thank you for the quick reply!

    #1444301

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

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