Skip to content
Shared Counts

Shared Counts

Social sharing buttons that look great and load fast.

  • Home
  • Tutorials
  • Documentation
    • Documentation
    • Filters
    • Add-Ons
  • More
    • Back

Filter: shared_counts_theme_locations

Summary: Specify which hooks/filters are used for the “Before Content” and “After Content” share buttons.

Use different button styles before and after content

In Settings > Shared Counts you can select a button style and whether they appear above and/or below the post content. But what if you want to use different button styles in those locations? You can use the shared_counts_theme_locations filter to customize the settings for each location. Let’s say you want to use the “Classic” […]

Posted byBill EricksonMarch 27, 2019March 27, 2019Posted inTutorial

Disable share buttons on certain categories

Shared Counts lets you specify where in a post the share buttons appear (before and/or after content). You can also exclude them on a specific post using the metabox when editing that post. For even more control, you can use the locations filter to move or remove the share buttons programmatically. The code below removes […]

Posted byBill EricksonMarch 27, 2019March 27, 2019Posted inTutorial

Change the theme location for share buttons

You can set Shared Counts to automatically insert the buttons before and/or after the content of your page. The hook or filter used will depend upon your theme (see the code here): If you are using a Genesis theme: “Before” uses the genesis_entry_header hook with a priority of 13 “After” uses the genesis_entry_footer hook with […]

Posted byBill EricksonMarch 27, 2019March 27, 2019Posted inTutorial
Shared Counts by Bill Erickson and Jared Atchison. Sponsored by CultivateWP