Okay
  Public Ticket #2934084
Hide specific social share icons
Closed

Comments

  •  10
    alleganps started the conversation

    How can I hide specific social share icons (for example, Viber and WhatsApp)?

    Thank you for your help!

  •  894
    Zhivko replied

    Hi,

    Open your theme or child-theme functions.php file and insert following filter:

    add_filter('stec-share-links', function($share_links) {
        $remove = [
            'viber',
            'whatsapp'
        ];
        
        foreach($remove as $icon) {
            if (isset($share_links[$icon])) {
                unset($share_links[$icon]);
            }
        }     return $share_links;
    });



    Stachethemes Developer

  •  10
    alleganps replied

    Worked perfectly. Thank you!