Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
  • Swag ↗︎
  • 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, place them manually with a shortcode, or use an optional floating share bar.

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

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
  • Screen-width breakpoint
  • Optional mobile hiding
  • Automatic hide/reveal while scrolling
  • Always-visible, hover, or icon-only labels
  • Independent network selection from inline buttons

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.

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.

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.

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.

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.

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.1.0

  • Expanded support from 11 to 44 sharing networks and actions.
  • Added Threads, Bluesky, Tumblr, LINE, VK, Snapchat, Mastodon, Print, Viber, SMS, Hacker News, Weibo, OK.ru, Mail.ru, QQ Zone, Douban, Kakao, Instapaper, Flipboard, Buffer, Xing, Digg, Meneame, Blogger, and LiveJournal.
  • Added AI assistant sharing for ChatGPT, Gemini, Claude, Perplexity, Copilot, DeepSeek, Grok, and Meta AI.
  • Added independent AI assistant selection and ordering.
  • Added Outline, Official Buttons, Round Text, Accent Border, and Icons Only button styles.
  • Expanded button sizes to Small, Medium, Large, and Extra Large.
  • Added left, centered, and right inline icon alignment.
  • Added Bottom and Bottom Sticky floating-bar positions.
  • Added Print, Viber, and SMS sharing actions.
  • Added Open Graph and Twitter Card metadata support.
  • Added automatic detection of supported SEO plugins to avoid duplicate social metadata.
  • Added featured-image, first-content-image, and fallback-image handling for social metadata.
  • Added UTM tracking for share links with configurable medium and campaign values.
  • Added custom CSS support.
  • Added larger touch-target accessibility support.
  • Expanded advanced sharing, performance, accessibility, and data-control settings.
  • Expanded the settings screen and live preview to cover the additional options.
  • Refactored the plugin into a namespaced, autoloaded architecture.

3.0.1

  • Sanitized the post meta nonce before verification.
  • Fixed the floating share bar so a per-post “On” override works even when the global setting is off.
  • Fixed the native Share button so it only shows on devices that support it.
  • Enqueued share button assets when the shortcode is used in a widget or template, not just in post content.
  • Confirmed compatibility with WordPress 7.1.

3.0.0

  • Rebranded the plugin display name to ShareToSocial – Social Share Buttons. The existing plugin slug, social-media-share-buttons, remains unchanged.
  • Complete rebuild with a new STSocial_ / stsocial_ code structure.
  • Replaced the bundled icon font with original inline SVG icons.
  • Added developer filters for customizing individual share SVG icons and the final share buttons output.
  • Added Messenger, Telegram, Reddit, Copy Link, and native device Share sheet support.
  • Added a floating share bar with independent network selection, ordering, left/right positioning, top offset, and responsive visibility controls.
  • Added before, after, both, and disabled automatic content placement options.
  • Added the [sharetosocial] shortcode for manually placing share buttons with attributes heading, URL, title, and network selection.
  • Added support for selecting public post types.
  • Added Rounded, Square, and Pill button styles.
  • Added three button sizes, adjustable spacing, and brand, custom, and monochrome color modes.
  • Added exclusion controls for specific posts/pages, the front page, archives, and the blog index.
  • Added per-post controls to override inline share buttons and the floating share bar individually.
  • Added popup window and new-tab share link behavior.
  • Added optional rel="nofollow", larger touch targets, and screen-reader text.
  • Redesigned the settings screen with tabs, drag-and-drop network ordering, and an instant live preview.
  • Added one-click reset to default settings.

2.0.1

  • Minor fixes and stability improvements.

2.0

  • Redesigned the share button styles.
  • Reduced the bundled Font Awesome icon set to reduce file size.
  • Set sensible defaults for the floating share bar.
  • 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.1.0
  • Last updated 6 days ago
  • Active installations 100+
  • WordPress version 5.8 or higher
  • Tested up to 7.1
  • 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
  • Documentation
  • 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
Code is Poetry
The WordPress® trademark is the intellectual property of the WordPress Foundation.