• Resolved lilacsun

    (@lilacsun)


    Hello,

    I am using the ‘Text only’ version of the social sharing buttons (which I love.. thank you for including this option.)

    I know I could hide the share count with this:

    .sd-button span.share-count {
    display: none;
    }

    However, I am wondering how to remove the share count (not hide it), as well as the ‘WPCOM_sharing_counts’ javascript from the footer. Thanks!

    https://www.ads-software.com/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You could remove the share counts and the Javascript file by adding the following filter to a functionality plugin or to your theme’s functions.php file:

    add_filter( 'sharing_js', '__return_false' );

    However, I would only recommend it if you don’t use the “Email” sharing button: the Javascript library indeed includes functions that are used by the Email sharing button.

    If you do use the Email sharing button, you’ll want to copy the Email button code and enqueue it with your own custom javascript file.

    Thread Starter lilacsun

    (@lilacsun)

    This worked perfectly.
    Really appreciate your assistance. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove share count from sharing buttons?’ is closed to new replies.