Skip to content
WordPress.org

भारतम्

  • Themes
  • Plugins
  • News
  • About
  • सम्पर्कं कुरु
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

ShareToSocial – Social Media Share Buttons & Sharing Icons

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

ShareToSocial – Social Media Share Buttons & Sharing Icons

By Jumedeen khan
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

ShareToSocial is a simple, lightweight social sharing plugin for WordPress. Add share buttons before or after your content, display them in both places, or place them anywhere you like with a Gutenberg block, a widget, or the [sharetosocial] shortcode. An optional floating share bar is also available.

The plugin includes 40+ sharing networks and actions, including popular social networks, messaging services, bookmarking sites, developer communities, AI assistants, and built-in sharing tools.

All social media icons are included as inline SVG icons, and the plugin does not load icon fonts, external libraries, tracking scripts, or third-party assets.

Built with privacy in mind — ShareToSocial does not track visitors or set cookies. Third-party sharing services are contacted only when a visitor chooses to use a share button.

Share networks

ShareToSocial currently supports 44 sharing networks and actions:

  • Social networks: Facebook, X (Twitter), LinkedIn, Pinterest, WhatsApp, Messenger, Telegram, Reddit, Threads, Bluesky, Tumblr, LINE, VK, Snapchat, Mastodon, Weibo, OK.ru, Mail.ru, QQ Zone, Douban, Kakao.

  • Sharing and bookmarking: Hacker News, Instapaper, Flipboard, Buffer, Xing, Digg, Meneame, Blogger, LiveJournal.

  • Messaging and device actions: Email, Copy Link, Native Share, Print, Viber, SMS.

  • AI assistants: ChatGPT, Gemini, Claude, Perplexity, Copilot, DeepSeek, Grok, Meta AI.

You can choose which networks are shown, remove the ones you do not need, and drag them into your preferred order.

Inline share buttons

Choose where inline share buttons appear:

  • Before your content
  • After your content
  • Before and after your content
  • Disabled for automatic placement

You can also control:

  • Left, centered, or right icon alignment
  • Share title and title text
  • Which networks show their names
  • Which public post types display buttons
  • Front page, blog index, and archive visibility
  • Exclude categories whose posts should not show buttons

Floating share bar

Enable an optional floating share bar with its own independent network selection and ordering.

Choose:

  • Left side
  • Right side
  • Bottom
  • Bottom sticky

Additional controls include:

  • Top offset
  • Hide on mobile toggle, default off
  • Custom screen-width breakpoint
  • Automatic hide/reveal while scrolling
  • Always-visible, hover, or icon-only labels
  • Independent network selection from inline buttons

When mobile hiding is enabled, you can choose the screen width below which the floating bar is hidden.

AI assistant sharing

Add AI assistant buttons that open supported AI services with a prompt asking the assistant to summarize the current page URL.

Supported AI assistants include:

  • ChatGPT
  • Gemini
  • Claude
  • Perplexity
  • Copilot
  • DeepSeek
  • Grok
  • Meta AI

AI assistant links use the URL formats currently supported by their respective services. Because these are third-party services, their URL-based prompt behavior may change independently of the plugin.

Design controls

Customize the appearance of both inline buttons and the floating bar.

Button styles:

  • Rounded
  • Square
  • Pill
  • Outline
  • Official Buttons
  • Round Text
  • Accent Border
  • Icons Only

Button sizes:

  • Small
  • Medium
  • Large
  • Extra Large

You can also control:

  • Spacing between buttons
  • Brand colors
  • One custom color for all buttons
  • Monochrome styling

Advanced controls

ShareToSocial includes additional controls for sharing behavior, performance, accessibility, metadata, tracking, custom CSS, and data management.

Share link behavior

Choose between:

  • Popup window
  • New tab/window

Performance

Optionally defer the plugin’s frontend script until the page has finished parsing.

Accessibility

  • Larger touch targets with a minimum 44×44px target
  • Screen-reader labels for icon-only buttons

Open Graph & Twitter Card tags

ShareToSocial can add Open Graph and Twitter Card metadata for supported singular content.

It can use:

  • The post title
  • A generated description
  • The featured image
  • The first image found in the content
  • A site-wide fallback image

If a supported SEO plugin is already generating the metadata, ShareToSocial skips its own tags to avoid duplicate Open Graph data.

UTM tracking

Optionally append UTM parameters to share URLs for analytics tracking.

utm_source is automatically set to the network name, while `utm_medium` and `utm_campaign` can be customized.

Custom CSS

Add your own CSS to fine-tune the appearance beyond the built-in design options.

Data control

Choose whether plugin settings and per-post overrides should be removed when the plugin is deleted.

A factory reset option is also available to restore all plugin settings to their defaults.

Per-post controls

Each supported post or page can have its own ShareToSocial settings.

From the ShareToSocial panel in the editor, you can independently set:

  • Inline Share Buttons: Default, On, or Off
  • Floating Share Bar: Default, On, or Off

This lets you override global settings for individual content without changing the site-wide configuration.

Gutenberg block

Add a ShareToSocial Share Buttons block anywhere in your content with the block editor.

Works just like the built-in Social Icons block:

  • Add networks with the + button, which opens WordPress’s standard block inserter.
  • Remove a network by selecting it and using the normal block controls.
  • Change any network’s platform from its Network panel in the sidebar.
  • When a block is first added, it shows the networks enabled in the plugin’s General settings.

Design controls (style, size, color, and gap) are available in the block’s sidebar and apply to every button in that block. Each block keeps its own design, independent of the plugin defaults.

The block renders the full share row on the frontend from its inner network blocks.

Widget

A ShareToSocial – Share Buttons classic widget is available to place share buttons in any widget area (sidebar, footer, and so on). The widget renders the inline share buttons and includes an optional title.

Shortcode

Use the [sharetosocial] shortcode to manually place inline share buttons anywhere shortcodes are supported.

Basic usage:

[sharetosocial]

You can also override the heading, networks, URL, and title:

[sharetosocial heading="Share this post" networks="facebook,linkedin,whatsapp" url="https://example.com/" title="My Page Title"]

Shortcode attributes:

  • heading — custom heading text
  • networks — comma-separated network keys
  • url — custom URL
  • title — custom share title

Style, size, gap, and color are controlled by the plugin settings and are not shortcode attributes.

The shortcode works independently of automatic content placement and can also be used in widgets or templates with do_shortcode().

Developer-friendly

ShareToSocial provides filters for developers who want to customize the generated output.

Customize a share SVG icon

Use the stsocial_share_svg_icon filter to modify or replace an individual share icon.

Example:

add_filter( 'stsocial_share_svg_icon', function( $icon, $network ) {
    if ( 'facebook' === $network ) {
        $icon = '<svg>...</svg>';
    }

    return $icon;
}, 10, 2 );

Customize the share buttons output

Use the stsocial_share_buttons_output filter to modify the final generated share buttons HTML.

Example:

add_filter( 'stsocial_share_buttons_output', function( $output, $args ) {
    return '<div class="my-share-buttons">' . $output . '</div>';
}, 10, 2 );

Privacy and performance

ShareToSocial is designed to keep the frontend lightweight and privacy-friendly.

  • No tracking scripts
  • No cookies set by the plugin
  • No icon fonts
  • No external frontend libraries
  • No third-party assets required for the button interface
  • Local versioned CSS and JavaScript files
  • Minified production assets
  • Third-party sharing services are opened only after the visitor chooses to share

Screenshots

General Settings — choose inline networks, ordering, placement, labels, and post types.
General Settings — choose inline networks, ordering, placement, labels, and post types.
Floating Bar — configure position, behavior, responsive visibility, labels, and networks.
Floating Bar — configure position, behavior, responsive visibility, labels, and networks.
Design — choose button styles, sizes, spacing, and color modes.
Design — choose button styles, sizes, spacing, and color modes.
Advanced — configure link behavior, performance, accessibility, Open Graph, UTM tracking, custom CSS, and data control.
Advanced — configure link behavior, performance, accessibility, Open Graph, UTM tracking, custom CSS, and data control.
ShareToSocial panel in the post/page editor for per-post overrides.
ShareToSocial panel in the post/page editor for per-post overrides.
Inline and floating share buttons displayed on the frontend.
Inline and floating share buttons displayed on the frontend.
Share button styles and designs displayed on the frontend.
Share button styles and designs displayed on the frontend.
40+ social networks supported by the plugin.
40+ social networks supported by the plugin.

Blocks

This plugin provides 2 blocks.

  • ShareToSocial Share Buttons Add social share buttons anywhere in the content. Use the + button to add networks and remove them like any other block; the plugin settings provide the default set.
  • Share Network Button A single share button for one network, added inside the ShareToSocial share block.

Installation

  • Install ShareToSocial from the WordPress Plugins screen, or upload the plugin files to /wp-content/plugins/social-media-share-buttons.
  • Activate the plugin.
  • Go to Settings → ShareToSocial.
  • Select the networks you want to display and configure placement, floating bar, design, and advanced options.
  • Save your settings.
  • To place buttons in your content, insert the ShareToSocial Share Buttons block in the block editor, or use the [sharetosocial] shortcode. To place them in a sidebar, use the ShareToSocial – Share Buttons widget.

FAQ

What sharing networks does ShareToSocial support?

ShareToSocial supports 40+ networks and sharing actions, including Facebook, X, LinkedIn, WhatsApp, Messenger, Telegram, Reddit, Threads, Bluesky, Mastodon, email, copy link, native device sharing, Print, Viber, SMS, bookmarking services, and AI assistants such as ChatGPT, Gemini, Claude, Perplexity, Copilot, DeepSeek, Grok, and Meta AI.

Can inline buttons and the floating bar use different networks?

Yes. Inline buttons and the floating share bar have independent network selection and drag-and-drop ordering.

Can I control the share buttons for an individual post or page?

Yes. The ShareToSocial panel in the editor allows you to set inline buttons and the floating share bar independently to Default, On, or Off for individual content.

Can I manually place share buttons?

Yes. Use the [sharetosocial] shortcode anywhere shortcodes are supported, insert the ShareToSocial Share Buttons Gutenberg block in the block editor, or add the ShareToSocial – Share Buttons widget to a widget area.

Is there a Gutenberg block?

Yes. The ShareToSocial Share Buttons block lets you add share buttons anywhere in your content. Networks are added with the built-in + button (just like the core Social Icons block) and can be removed individually; design controls live in the block’s sidebar.

Is there a widget?

Yes. The ShareToSocial – Share Buttons classic widget places the share buttons in any widget area, with an optional title.

Can I exclude specific categories?

Yes. In the General settings you can choose categories whose posts should not show the automatic inline share buttons. A per-post override set to On still forces buttons on for that individual post.

Can I use the shortcode when automatic share buttons are disabled?

Yes. The shortcode works independently of automatic content placement.

Can I customize the URL and title used by the shortcode?

Yes. The url and title attributes can override the current page URL and title.

Can I customize the button appearance?

Yes. You can choose from eight button styles, four sizes, adjustable spacing, brand colors, a custom color, or monochrome styling.

Can I add Open Graph and Twitter Card tags?

Yes. ShareToSocial can generate Open Graph and Twitter Card metadata for supported singular content. If a supported SEO plugin already provides these tags, ShareToSocial skips its own output to avoid duplicates.

Can I add UTM parameters to share links?

Yes. Enable UTM tracking in Advanced settings and choose the utm_medium and utm_campaign values. The network name is automatically used as utm_source.

Does ShareToSocial require an external library or icon font?

No. The plugin includes its icons as local inline SVGs and does not require icon fonts or frontend libraries.

Does ShareToSocial track visitors?

No. The plugin does not track visitors or set cookies. A third-party sharing service is contacted only when a visitor chooses to use its share button.

Does the plugin work with SEO plugins?

ShareToSocial detects several supported SEO plugins and skips its own Open Graph/Twitter Card metadata when another plugin is already handling those tags.

Will ShareToSocial work with my theme?

Yes. The plugin uses its own markup and styles and does not depend on theme-specific share-button classes.

Can I open share links in a popup or a new tab?

Yes. Advanced settings let you choose between a centered popup window and a normal new tab/window.

Does the plugin support accessibility features?

Yes. You can enable larger touch targets and hidden screen-reader labels for icon-only buttons.

What happens to my settings when I uninstall the plugin?

By default, plugin settings are preserved so they can be restored if you reinstall the plugin later.

You can enable the data deletion option in Advanced settings to remove plugin settings and per-post overrides when the plugin is deleted.

Can I hide the floating share bar on smaller screens?

Yes. Enable mobile hiding and choose the screen-width breakpoint at which the floating bar should be hidden.

Reviews

Perfect Share button

Mr Manish October 27, 2020
Really amazing This plugins

Very light! Loads Fontawesome

grantdb January 27, 2020
3 stars for not mentioning the Fontawesome loading and unable to remove from pages. Otherwise it's great!

Awesome Plugin Jumedin Khan Ji Good Work

Deepak November 14, 2019
Your plugin is worth a compliment, you have done a great job.

Best social share plugin

nshakya February 13, 2019
Best plugin and Great support by jumedeen sir and supportmeindia.com

awesome plugin

mk555 February 12, 2019 1 reply
It's true, this plugin have not used any JavaScript. I like it, thanks
Read all 5 reviews

Contributors & Developers

“ShareToSocial – Social Media Share Buttons & Sharing Icons” is open source software. The following people have contributed to this plugin.

Contributors
  • Jumedeen khan
  • Mozedia

“ShareToSocial – Social Media Share Buttons & Sharing Icons” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “ShareToSocial – Social Media Share Buttons & Sharing Icons” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

3.2.0

  • Added a Gutenberg block with built-in + network picking and per-block design controls.
  • Added a sidebar widget with an optional title.
  • Added exclude-by-category for automatic buttons.
  • Modular, re-runnable ShareToSocial.init() for page-builder/AJAX content.
  • Copy Link fallback when Clipboard API fails.
  • Fixed duplicate per-post override logic.
  • Native share works on dynamically added buttons.
  • target="_blank" only on real web URLs.
  • One mobile-hide toggle with custom width breakpoint (default off).

3.1.0

  • Added support for 40+ sharing networks and actions.
  • Added AI assistant sharing for ChatGPT, Gemini, Claude, Perplexity, Copilot, DeepSeek, Grok, and Meta AI.
  • Added new button styles, sizes, and icon alignment options.
  • Added new floating-bar positions.
  • Added Open Graph and Twitter Card metadata support.
  • Added SEO plugin detection to help avoid duplicate metadata.
  • Added featured image, first content image, and fallback image handling.
  • Added UTM tracking for share links.
  • Added custom CSS support and accessibility improvements.
  • Expanded sharing, performance, and data-control settings.
  • Updated the settings screen and live preview.
  • Refactored the plugin with a namespaced, autoloaded code structure.

3.0.1

  • Sanitized post meta nonce before verification.
  • Fixed per-post floating share bar overrides.
  • Fixed native Share button visibility on unsupported devices.
  • Improved asset loading for shortcode, widget, and template usage.
  • Confirmed compatibility with WordPress 7.1.

3.0.0

  • Rebranded the plugin as ShareToSocial – Social Share Buttons.
  • Rebuilt the plugin with a new STSocial_ / stsocial_ code structure.
  • Replaced the icon font with inline SVG icons.
  • Added new sharing networks, Copy Link, Messenger, Telegram, Reddit, and native device sharing.
  • Added the floating share bar with network selection, ordering, positioning, and responsive controls.
  • Added the [sharetosocial] shortcode.
  • Added post type selection, button styles, sizes, colors, and spacing options.
  • Added content exclusions and per-post overrides.
  • Added popup and new-tab sharing options.
  • Added accessibility options and developer filters.
  • Redesigned the settings screen with tabs, drag-and-drop ordering, and live preview.
  • Added one-click reset to default settings.

2.0.1

  • Minor fixes and stability improvements.

2.0

  • Redesigned share button styles.
  • Reduced the bundled Font Awesome icons.
  • Improved floating share bar defaults.
  • Confirmed compatibility with WordPress 5.4.

1.0.5

  • Removed the discontinued Google+ share button.

1.0.4

  • General PHP code improvements.

1.0.3

  • Renamed the plugin.

1.0.2

  • Improved the Pinterest share button.

1.0.1

  • General code improvements.

1.0

  • Initial release.

Meta

  • Version 3.2.0
  • Last updated 3 days ago
  • Active installations 100+
  • WordPress version 5.8 or higher
  • Tested up to 7.1.2
  • PHP version 7.4 or higher
  • Languages

    English (US) and Spanish (Spain).

    Translate into your language

  • Tags
    share buttonsshare iconssocial mediasocial sharesocial sharing
  • Advanced View

Ratings

4.6 out of 5 stars.
  • 4 5-star reviews 5 stars 4
  • 0 4-star reviews 4 stars 0
  • 1 3-star review 3 stars 1
  • 0 2-star reviews 2 stars 0
  • 0 1-star reviews 1 star 0

Your review

See all reviews

Contributors

  • Jumedeen khan
  • Mozedia

Support

Issues resolved in last two months:

0 out of 1

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

भारतम्

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
विधिलेखः काव्यम् अस्ति ॥
The WordPress® trademark is the intellectual property of the WordPress Foundation.