Machete Social Share Block

描述

Social Share Block adds a customizable row of social sharing buttons to any post, page, or site editor template. Each button links directly to the corresponding network’s share dialog using the canonical URL of the current page.

Features:

  • Toggle each social network on or off: Facebook, X (Twitter), LinkedIn, WhatsApp, and Pinterest.
  • Inline SVG icons for crisp rendering at any size — no external icon fonts required.
  • Adjustable icon size (16–64 px) and button spacing (0–40 px) via the block inspector.
  • Automatic canonical URL detection: uses Yoast SEO or Rank Math canonical meta when available, falling back to the WordPress permalink.
  • All share links open in a new window with rel="nofollow noopener noreferrer" for security.
  • Works everywhere: posts, pages, and Full Site Editor templates or template parts.
  • Live preview in the editor so you see exactly what visitors will see.

区块

该插件提供了 1 个区块.

  • Social Share Block A social sharing block with toggleable networks, inline SVG icons, and automatic canonical URL detection.

安装

  1. Upload the plugin files to the /wp-content/plugins/machete-share-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Insert the “Social Share Block” from the block inserter in the editor.

常见问题

How does the block determine the share URL?

It first checks for a canonical URL set by Yoast SEO or Rank Math. If neither is available it falls back to the standard WordPress permalink of the current post or page.

Can I use this in the Site Editor?

Yes. The block works in posts, pages, and any Full Site Editor template or template part.

Does it load external scripts or stylesheets?

No. All icons are inline SVGs and all styles are bundled with the block. There are no third-party requests.

评价

此插件暂无评价。

贡献者及开发者

「Machete Social Share Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Machete Social Share Block」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Machete Social Share Block」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.1.0

  • Initial release.