
Html share button. It show lite share button only with html. It's not using any javascript whats anothers do. It's load only extra 10-11 kb
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
the plugin adds no tracking scripts.
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: Server-rendered share and profile links with no frontend plugin JavaScript.
- Private by default: Bundled icons load from your site; the plugin adds no tracking scripts.
- 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, WhatsApp, Reddit, email, and optional Copy link and Native share actions.
- 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.
- Sample share-template previews with helpful diagnostics, without saving or opening a share service.
- 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.
What does Native share do?
Native share is off by default. When enabled, a local script opens the device sharing menu in supported secure browsers. Other browsers offer Copy link; without JavaScript a page link remains available. Cancelling the share menu does not copy anything. Enabling both Native share and Copy link keeps only one Copy link fallback.
Screenshots

Inline share buttons and a responsive floating rail on a post.

Appearance, placement, and audience controls in Settings.

Social Share and Social Links blocks in the block editor.

Separate profile-link destinations and viewer-audience controls.
FAQ
Does the plugin track visitors?
No. Bundled icons are served from your site with no tracking scripts, external requests, or third-party SDKs. Legacy Google Social Analytics has been retired.
What is the difference between a share button and a profile link?
A share button opens a sharing composer for the current page. A profile link opens your configured social profile or email destination.
What does Native share do?
Native share is off by default. When enabled, a small local script opens the browser/device share sheet in supported secure contexts, offers Copy link in unsupported browsers, and falls back to a plain link without JavaScript. Cancelling the share menu does not copy anything. Enabling both Native share and Copy link renders only one Copy link fallback.
Does a template preview save settings or contact a share service?
No. Preview sample uses fixed sample data and outputs the resolved URL as text without saving settings or contacting external services.
Does it work with the block editor and page builders?
Yes. It provides dynamic HTML Social Share and HTML Social Links blocks (API v3 on WP 6.3+, v1 fallback on WP 5.3-6.2), Elementor widget, WPBakery element, classic widget, [html-social-share-buttons] / [zm_sh_btn] shortcodes, and PHP integration.
Can I control who sees the buttons?
Yes. Audience controls independently toggle buttons for the post author, other logged-in users, and logged-out visitors across every placement and integration.
Which icon sets, shapes, and appearances are available?
Bootstrap Solid is the default for new installs alongside Tabler Outline, Flat, Long Shadow, Prajin (square and circle), and retained Legacy Default (square). Legacy preserves original spacing, while Minimal, Framed, and Soft shadow provide CSS-only styling.
Need help or want to report a bug?
Visit the WordPress.org support forum with your WordPress version, PHP version, and active icon set or placement details.
Is the WPBakery integration tested in the paid editor?
The integration follows WPBakery’s vc_map() and shortcode contract and is covered by mapping, persistence, bundle, and render tests without claiming a live run in the paid editor.
ChangeLog
3.5.1 – 2026-11-25
- FIX: Render horizontal
inline-block layouts consistently across all legacy icon sets inside Block, Elementor, Shortcode (long-shadows), and PHP function wrappers, and enforce [hidden] CSS specificity for paired Native + Copy buttons.
- FIX: Guard
the_content automatic placement strictly to main loop singular/front content (skipping RSS feeds, embeds, and secondary queries) and avoid writing empty metabox post meta when unchecked or on post revisions.
- FIX: Resolve accurate document titles without stray post featured images for page-level floating bars, and omit
target="_blank" from mailto: share buttons.
- SECURITY: Harden Settings API
$_POST parsing, AJAX is_string() payload checks, and metabox POST type checks; remove dead external tonicons.com link from admin footer.
- IMPROVEMENT: Harden frontend browser-URL, native-share, and clipboard scripts (
MutationObserver element scoping, <button> skip, timer cleanup, shared DOM status nodes), remove unused legacy images (~480 KB), and update widget/listing metadata.
- COMPATIBILITY: Guard optional/host-restricted PHP functions (
filemtime, file_get_contents, json_decode, json_encode, and regex ID parsing without ctype) and expand automated PHP 7.0–8.5 and disable_functions test coverage.
3.5.0 – 2026-11-12
- FEATURE: Added optional Native share, opening the device sharing menu with a Copy link fallback. It is off by default.
- IMPROVEMENT: Native share loads local JavaScript and styles only on pages that render it, preserves custom and post-specific URLs, and handles cancellation without copying.
- COMPATIBILITY: Expanded WordPress runtime checks to PHP 8.4 and 8.5 while retaining PHP 7.0 and WordPress 5.3 minimums.
- TEST: Added native sharing, fallback, URL provenance, Pinterest image-query and runtime diagnostic coverage.
3.4.0 – 2026-10-09
- FEATURE: Added WhatsApp and Reddit share buttons. Both are off by default.
- FEATURE: Added an optional Copy link button. It copies the shared URL to the clipboard and announces the result to screen readers. Without JavaScript it stays a plain link to the page.
- IMPROVEMENT: Frontend scripts now load per feature. Copy link and browser-URL sharing each load only on pages that render them.
- IMPROVEMENT: Added WhatsApp, Reddit, and Copy link icons to all six bundled icon sets.
- TEST: Added Copy link smoke coverage and contracts for the new share templates and icons.
See changelog.txt for 3.3.0 and earlier release history.