You can use [shared_counts]
shortcode to display share buttons anywhere in your page’s content.
Here are the optional attributes you can add to customize the display:
- location: adds a CSS class to the shared-counts-wrap so you can apply location-specific styling. By default it automatically has the location of “shortcode”
- style: specify a button style for this location, overriding the site-wide default style
Example:
[[shared_counts location="home-content" style="icon"]]
Code language: JSON / JSON with Comments (json)