外掛說明
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 個可供 Gutenberg/區塊編輯器使用的區塊。
- Social Share Block A social sharing block with toggleable networks, inline SVG icons, and automatic canonical URL detection.
安裝方式
- Upload the plugin files to the
/wp-content/plugins/machete-share-blockdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Insert the “Social Share Block” from the block inserter in the editor.
常見問題集
-
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.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
0.1.0
- Initial release.