4 Ways To Hide The Share Count or Remove Sharing Count Function From Jetpack

This post gives you 4 different ways to choose from if you want to remove the number displayed next to each social button when using Jetpacks sharing module.

With Count

share-buttons

Without Count

no-count

Here’s the 4 solutions:

The first 2 methods involve PHP code you can add to your child themes functions file using a code editor and the second 2 solutions solutions use CSS you can add to your child themes style sheet.

1. This method forces the function which generates the sharing count to return false.

add_filter( 'jetpack_sharing_counts', '__return_false' );

2. This method disables the Javascript which outputs the count:

add_filter( 'sharing_js', '__return_false' );

3. This method hides the count using CSS:

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

4. This method also hides the count using CSS:

.share-count {
    display: none!important;
}

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.