HTML Social Share Buttons
Lightweight HTML & CSS share buttons and profile links for blocks, Elementor & WPBakery.
Install in
HTML Social Share Buttons adds lightweight, server-rendered HTML and CSS share buttons and social profile links to WordPress posts, pages, sidebars, and builder layouts. Because the default setup ships zero frontend JavaScript, zero third-party SDKs, and zero external requests, your pages stay fast for Core Web Vitals and privacy-friendly without tracking cookies or external beacons.
Use the HTML Social Share or HTML 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 performance: Server-rendered share and profile links with zero frontend JavaScript by default for strong Core Web Vitals.
- Private by design: Local SVG and PNG icons load from your own site with no tracking scripts, external CDNs, or cookies.
- Place anywhere: Automatic before/after and floating placement, two dynamic Gutenberg blocks, a widget, Elementor, WPBakery, shortcodes, and PHP.
- Share and follow separately: Share actions open a composer for the current page; profile links open your configured profile or
mailto:destination. - Current destinations: Facebook, X, LinkedIn, Pinterest, Telegram, Bluesky, WhatsApp, Reddit, email, plus optional Copy link and Native share actions.
- Choose the presentation: Legacy keeps pack styling; Minimal, Framed, and Soft shadow add modern CSS-only styles.
Other features:
- Global social profile links with per-placement inherit or suppress controls.
- Independent audience controls for the post author, logged-in users, and visitors.
- Bootstrap Solid default for new sites, plus Flat, Long Shadow, Prajin, Tabler Outline, and retained Legacy Default.
- Responsive floating rails that collapse into centered wrapping rows at
600pxand below. - Per-network URL templates with advisory preview diagnostics, plus exclusions by ID, slug, or title.
- Translation-ready admin UI and support via the WordPress.org support forum.
Shortcode examples:
[zm_sh_btn iconset="long-shadows" iconset_type="square" icons="facebook,x,linkedin,pinterest,mail"]
[html-social-share-buttons iconset="tabler-outline" iconset_type="circle" profile_links_mode="inherit"]
Both [html-social-share-buttons] and [zm_sh_btn] render horizontally by default across all six icon sets.
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.
Written by Joobi from the project's own listing. See the source page
3.5.1 – 2026-11-25
- FIX: Render horizontal
inline-blocklayouts 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_contentautomatic 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"frommailto:share buttons. - SECURITY: Harden Settings API
$_POSTparsing, AJAXis_string()payload checks, and metabox POST type checks; remove dead externaltonicons.comlink from admin footer. - IMPROVEMENT: Harden frontend browser-URL, native-share, and clipboard scripts (
MutationObserverelement 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 withoutctype) and expand automated PHP 7.0–8.5 anddisable_functionstest 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.
Follow this listing's changes (Atom feed)