Native Social Share

বৰ্ণনা

Native Social Share adds a clean and simple share button to your posts — powered by the browser’s native Web Share API with graceful fallbacks for Twitter (X), Facebook, and LinkedIn.

  • Automatically adds share buttons below, above, or both positions in posts
  • Supports auto dark mode (via prefers-color-scheme)
  • No JavaScript dependencies (zero jQuery)
  • Lightweight (~5KB including CSS & JS)
  • Progressive enhancement: uses native share where available, fallbacks otherwise

This plugin focuses on simplicity, accessibility, and performance. Perfect for modern WordPress themes that prioritize speed and native UX.

License

This plugin is licensed under the GPLv2 or later.
You are free to modify and redistribute it under the same license.

Author

Developed by M Khoirul Huda
Website: https://mkhuda.com
GitHub: https://github.com/mkhuda/native-social-share-wp

স্ক্ৰীনশ্বট

  • Native Share button with fallback links (light mode)
  • Dark mode appearance (automatic)

ইনষ্টলেশ্যন

  1. Upload the plugin folder to /wp-content/plugins/native-social-share/
  2. Activate the plugin through Plugins Installed Plugins
  3. Go to Settings Native Social Share to configure:
    • Position: Above, Below, or Both
    • Enabled platforms (Twitter, Facebook, LinkedIn)
  4. Save changes and enjoy native sharing on your posts!

সঘনাই উত্থাপিত প্ৰশ্ন

Does it require jQuery or Font Awesome?

No, it’s written in pure PHP and vanilla JavaScript with inline SVG icons.

What happens on unsupported browsers?

When navigator.share isn’t available, the plugin shows fallback links for Twitter, Facebook, and LinkedIn.

Is there a shortcode or block?

Not yet — planned for a future update.

Does it support caching and CDNs?

Yes. All assets are static and safe for full-page caching/CDN optimization.

পৰ্য্যালোচনা

এই প্লাগিনৰ বাবে কোনো পৰ্য্যালোচনা নাই।

অৱদানকাৰী আৰু বিকাশকাৰীসকল

“Native Social Share” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।

অৱদানকাৰীসকল

আপোনাৰ ভাষাত “Native Social Share” অনুবাদ কৰক।

বিকাশৰ প্ৰতি আগ্ৰহী?

ক’ড ব্ৰাউজ কৰক, SVN ৰিপজিটৰী চাওক নাইবা RSS-দ্বাৰা বিকাশৰ পঞ্জী ছাবস্ক্ৰাইব কৰক।

সলনি-পঞ্জী

1.1.0 – 2025-10-27

  • Updated all function and option prefixes from nss to natssh (per WP.org guidelines)
  • Added PHP namespace Mkhuda\NativeSocialShare
  • Added “Both (Above & Below)” position option for more flexibility
  • Fixed license declaration mismatch between plugin header and readme
  • Improved option migration for smoother upgrade
  • Minor code cleanup and standard compliance (PHPCS/WPCS)

1.0.0 – 2025-10-15

  • Initial public release
  • Native Web Share + fallback links
  • Auto Dark Mode support
  • Configurable social buttons