How remove share button on a posts

  • Posted in : Readme
  • rubens17
    Participant

    How remove share button on a posts ? I can’t.

    Igor
    Participant

    I apologize for my English. I use a translator Google. I have a question: how to fully disable (remove) all share-scripts? The fact is that when I come to your site from your IP-address (Russia) – the page is loaded for a long time, and until the end and will not boot. This interferes with the work of other scripts (eg Adsense).

    In the custom styles, I added:

    .share.sharer-0 {
    display: none! important;
    }

    Also refused Header Social Icon. But still does not help. Something and can not boot to the end.

    I would also like to disable pop-up form “Share” (Twitter and Email) when you select text. How can I do that?

    PS: when I go to the site via the VPN, all these problems are observed. I understand that the problem is probably on my side, but as a temporary solution would be desirable to completely remove unwanted scripts now.

    Thanks a lot for the help!

    Your theme is very cool!

    ahmetsali
    Keymaster

    @rubens17

    try this custom css code;

    .share.sharer-0 {
        display: none! important;
    }
    

    @Knyazev

    sorry it is not possible to remove scripts completely by default however you can hide text selection share feature using this custom css code;

    div.selectionSharer {
        display: none !important;
    }
    
    Igor
    Participant
    Collin
    Participant

    Adding the custom css worked for me to remove the share button, however can you tell me what code I need to remove to prevent the call to “sharebutton.co” altogether. I am optimizing for performance, and I don’t want that extra DNS lookup and http requests for something that is hidden. Thanks.

    Mehmet S.
    Keymaster

    Hi, do a global search in the theme php files for the following line and remove it.

    <div class="share"></div>
    

    Thanks

    Collin
    Participant

    That worked. Thanks!

    Mehmet S.
    Keymaster

    You are welcome.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register