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” […]
Filter: shared_counts_theme_locations
Summary: Specify which hooks/filters are used for the “Before Content” and “After Content” share buttons.
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 […]
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 […]