Skip to content
WordPress.org

Wolof

  • Themes
  • Plugins
  • About
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

HTML Social Share Buttons

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

HTML Social Share Buttons

By Alimuzzaman Alim
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

HTML Social Share Buttons adds server-rendered HTML and CSS share buttons and
profile links to posts, pages, sidebars, and builder layouts. By default, the
plugin adds no frontend JavaScript. Bundled icons load from your own site, and
optional Google Social Analytics stays off unless you enable it.

Use the Social Share or Social Links block, automatic placement, the classic
widget, Elementor, WPBakery, a shortcode, or PHP. Choose from six bundled icon
sets and square or circle buttons.

Why this plugin:

  • HTML + CSS by default: Server-rendered share and profile links with no frontend plugin JavaScript unless optional analytics is enabled.
  • Private by default: Bundled icons load from your site; optional analytics stays disabled until you enable it.
  • Place anywhere: Automatic before/after and floating placement, two blocks, a widget, Elementor, WPBakery, shortcodes, and PHP.
  • Share and follow separately: Share actions open a composer for the current page; profile links open the configured profile or email destination.
  • Current destinations: Facebook, X, LinkedIn, Pinterest, Telegram, Bluesky, and email.
  • Choose the presentation: Legacy preserves the existing pack behavior; Minimal, Framed, and Soft shadow add modern frontend styles.

Other features:

  • Optional global profile/contact links with per-placement inherit or suppress controls.
  • Audience controls for the content author, other logged-in users, and logged-out visitors.
  • Bootstrap Solid as the default for new installations, plus Flat, Long Shadow, Prajin, and Tabler Outline.
  • Existing content configured with the historical Default pack keeps rendering it without migration.
  • Square buttons in every set; circle buttons in Flat, Long Shadow, Prajin, Bootstrap Solid, and Tabler Outline.
  • Responsive floating rails that become centered, wrapping rows at 600px and below.
  • Per-network URL templates and exclusions by post/page ID, slug, or searchable content.
  • Translation-ready admin and editor strings.

Shortcode examples:

[zm_sh_btn iconset="long-shadows" iconset_type="square" icons="facebook,x,linkedin,pinterest,mail" class="in_widget"]

[html-social-share-buttons iconset="tabler-outline" iconset_type="circle" profile_links_mode="inherit"]

The historical [zm_sh_btn] tag remains supported. Use class="in_widget"
for a horizontal row.

Credits

Original historical-design credit: Hakan Ertan, tonicons.com. Prajin remains
credited for the historical Prajin pack. Maintainer attestation (2026-08-12):
the Flat, Long Shadow, and Prajin PNG packs are used with authorization from
their respective rights holders. The repository does not archive the written
authorizations or license instruments, so this is a maintainer statement, not
independent legal verification.

The Default PNG pack is retained under the release owner’s accepted
compatibility exception. That decision is not an independent source, license,
redistribution, or clearance claim. Generated Bootstrap Icons and Tabler Icons
sources and their license notices are included with the plugin. See
resources/iconsets/ASSET-SOURCES.md in the source repository for the current
provenance record.

Screenshots

Inline share buttons and a responsive floating rail on a post.
Inline share buttons and a responsive floating rail on a post.
Appearance, placement, audience, and analytics controls in Settings.
Appearance, placement, audience, and analytics controls in Settings.
Social Share and Social Links blocks in the block editor.
Social Share and Social Links blocks in the block editor.
Separate profile-link destinations and viewer-audience controls.
Separate profile-link destinations and viewer-audience controls.

Blocks

This plugin provides 2 blocks.

  • Social Links Display links to your social profiles.
  • HTML Social Share Display share buttons for the current post or page.

Installation

  1. Install the plugin from the WordPress plugin directory, or upload the release ZIP.
  2. Activate HTML Social Share Buttons.
  3. Open Settings > HTML Social Share.
  4. Choose networks, icon set, button appearance, button shape, automatic placements, and viewer audiences.
  5. Optionally configure profile/contact links, share URL templates, exclusions, or analytics.
  6. Add a block, widget, builder element, shortcode, or generated PHP snippet where needed.

FAQ

Does the plugin track visitors?

No tracking is enabled by default. Optional Google Social Analytics support can
be enabled in Advanced settings.

What is the difference between a share button and a profile link?

A share button opens a network composer for the current page. A profile link
opens your configured social profile or email destination. Profile clicks are
not sent through the optional share-analytics handler.

Does it work with the block editor?

Yes. Use the dynamic HTML Social Share block for share actions and the
dynamic HTML Social Links block for profile/contact destinations. The share
block resolves the current post URL on the server.

Can I use it without the block editor?

Yes. Automatic placement, widgets, Elementor, WPBakery, shortcodes, and a PHP
code generator are supported. Both [html-social-share-buttons] and the
historical [zm_sh_btn] shortcode tags are available.

Can I control who sees the buttons?

Yes. Audience settings independently control the content author viewing their
own post, other logged-in users, and logged-out visitors. All three are enabled
by default for existing and new installations, and the settings apply to
automatic placement, blocks, widgets, builders, shortcodes, and PHP output.

Which button shapes are available?

The Default set supports square buttons. Flat, Long Shadow, Prajin, Bootstrap
Solid, and Tabler Outline support square and circle buttons.

Which button appearances are available?

Legacy keeps the selected icon set’s existing dimensions, spacing, and hover
behavior. Minimal uses consistent targets and spacing, Framed adds a subtle
shape-aware outline, and Soft shadow adds a quiet raised surface. Legacy is the
default so existing sites keep their current presentation.

Which icon set does a new installation use?

Bootstrap Solid. The historical Default pack is hidden from normal selectors
on a fresh installation. Existing settings and content that already select
Default keep that selection and continue using the retained local assets.

Are icons loaded from a third-party CDN?

No. Bundled icon assets are served from your WordPress site.

Is the WPBakery integration tested in the paid editor?

The integration follows WPBakery’s documented vc_map()/shortcode model and is
covered by mapping, persistence, compiled-bundle, and public-render contracts.
The current release-candidate evidence does not claim a live run in the paid
WPBakery editor.

Reviews

best Plugin for Social share

samowal1201 September 3, 2016
best Plugin for Social share – Nice design – Easy to use – And fast on-site

Loving this.

inkandfoil September 3, 2016
This is a great little social share plugin. It is so simple to use, does what it’s supposed to do, and it doesn’t add an advertisment to the share. Great work.

Great Plugin.

Chrissy September 3, 2016
This plugin does exactly what it promises. It looks great right out of the box and isn’t intrusive. Support is A+.

Great little plugin

Gorillo September 3, 2016
This is a great little plugin if you just need a way to display social share buttons on your site. While lots of other plugins generate a ton of javascript, this one just adds a small amount of html. Since you probably laready have a dozen other plugins generating a lot of javascript, you don´t need another one that overloads your site and could cause conflicts with other scripts. Very nice work and a very good idea! All the essential settings you need to make it do what it´s intended to do are there, even if I could wish for a couple of more. I can really recommend this plugin.
Read all 15 reviews

Contributors & Developers

“HTML Social Share Buttons” is open source software. The following people have contributed to this plugin.

Contributors
  • Alimuzzaman Alim

Translate “HTML Social Share Buttons” 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

  • FEATURE: Added a global Button appearance selector with Legacy, Minimal, Framed, and Soft shadow options.
  • FEATURE: Added modern CSS-only presentation styles with consistent targets, spacing, shape-aware framing, and restrained motion.
  • IMPROVEMENT: Kept Legacy as the default and fallback so existing sites retain their selected icon-set presentation.
  • IMPROVEMENT: Added appearance previews and applied the selected presentation consistently across automatic placement, blocks, widgets, shortcodes, PHP, and builder integrations.
  • FIX: Modern floating rails now reveal on hover and keyboard focus while remaining inside the viewport on mobile.
  • FIX: Modern profile separators no longer inherit historical pack margins.

See changelog.txt for the 3.0.0 and earlier release history.

Meta

  • Version 3.1.0
  • Last updated 2 hours ago
  • Active installations 40+
  • WordPress version 5.3 or higher
  • Tested up to 7.1
  • PHP version 7.0 or higher
  • Language
    English (US)
  • Tags
    Gutenberg blockshare iconssocial mediaSocial Share Buttonssocial sharing
  • Advanced View

Ratings

4.7 out of 5 stars.
  • 12 5-star reviews 5 stars 12
  • 2 4-star reviews 4 stars 2
  • 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

  • Alimuzzaman Alim

Support

Got something to say? Need help?

View support forum

  • 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

Wolof

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