• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2966

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Subscriptions
  • Access
  • Log in

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;
}

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Code written by Brad Dalton specialist for Genesis & WooCommerce.

Advertise · WPEngine · Genesis · Log in

  • Account
  • Consulting
  • Post Tags
  • Contact
  • Terms
  • Monthly Membership
  • Yearly Subscriptions
  • Log in
 

Loading Comments...