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

  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.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
1.1.0 12 کیلوبایت -
دانلود
×
بدون امتیاز

قیمت:

رایگان

نگارش

1.1.0

آخرین انتشار

18 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 6.0+

تست شده از نسخه

وردپرس 6.8.5

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه