[WordPress] 外掛分享: Basic Social Share Buttons

首頁外掛目錄 › Basic Social Share Buttons
WordPress 外掛 Basic Social Share Buttons 的封面圖片
10+
安裝啟用
尚無評分
914 天前
最後更新
問題解決
PHP 7.0+ v1.0.2 上架:2021-05-10

內容簡介

Basic Social Share Buttons 可以讓您的使用者分享文章至社交網路,且無需載入任何 Javascript。

設定

管理員選項在 WordPress 管理介面中的 Reading。

您可以在以下三種按鈕大小中進行選擇:
* 小型 - 只有圖示
* 中型 - 圖示 + 網站名稱
* 大型 - 圖示 + "分享至" + 網站名稱

您可以選擇是否包含 CSS(經由 wp_enqueue),或者您可以停用 Enqueue,此時 CSS 規則會在管理員介面中顯示,方便您將其插入主要樣式表中(減少一個 HTTP 請求)。

使用方式

在文章內使用短代碼 [basic-share-buttons]。

或在 PHP 模板中使用 <?php echo do_shortcode('[basic-share-buttons]'); ?>

標題與 URL 會從 WordPress 的 the_title() 與 the_permalink() 函式中呈現。

您也可以透過代碼參數覆寫標題和 URL。
[basic-share-buttons title='您的自訂頁面標題' url='http://customurl.com/page']

版權聲明

此外掛包含以下的程式碼:
* SortableJS https://github.com/SortableJS/Sortable - MIT License
* Sharing Buttons io https://github.com/mxstbr/sharingbuttons.io - MIT License

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Basic Social Share Buttons」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Basic Social Share Buttons allows your users to share posts to social networks without loading any javascript.
Configuration
Admin options are in the WordPress admin under Reading.
You can choose between three button sizes:
* Small – Icon only
* Medium – Icon + site name
* Large – Icon + “Share on ” + site name
You can choose to include the css (via wp_enqueue) or you can disable the enqueue and the css rules will be shown in admin for you to insert in your main stylesheet (for one less http request).
Usage
Use the short [basic-share-buttons] in your post content.
or in a php template its
The title and URL are taken from WordPress’s the_title() and the_permalink() functions.
You can override both as parameters to the shortcode.
[basic-share-buttons title=’Your custom page title’ url=’http://customurl.com/page’]
Copyright
This plugin includes code from:
* SortableJS https://github.com/SortableJS/Sortable – MIT License
* Sharing Buttons io https://github.com/mxstbr/sharingbuttons.io – MIT License

延伸相關外掛

文章
Filter
Mastodon