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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full 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

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.