[WordPress] 外掛分享: Webshare

首頁外掛目錄 › Webshare
WordPress 外掛 Webshare 的封面圖片
30+
安裝啟用
★★★★★
5/5 分(3 則評價)
3969 天前
最後更新
問題解決
WordPress 3.9+ v1.2.7 上架:2014-03-07

內容簡介

Webshare 是另一個社交分享外掛程式,但它僅使用 Genericon 字體顯示共享連結,因此非常輕巧。

外掛使用方法

啟用外掛後,社交分享會出現在文章後。您可以在「設定」>>「Webshare」下拖放社交圖示以不同的順序顯示。

您可以選擇在哪些文章類型中顯示社交圖示,或者禁用其中一些圖示。

如果您想在在 Twitter 上分享時顯示您的 Twitter 帳號,請在您的個人資料頁面中添加您的 Twitter 帳號名稱(稱為 Twitter 使用者名稱)。

主題支援

如果您想設置社交分享出現的位置,載入 Genericons 並在您的佈景主題中處理 CSS,請在您的佈景主題的 functions.php 中添加此代碼。

/* Webshare 外掛支援。這意味著佈景主題已經處理了 Webshare 的 CSS 和位置。 */
add_theme_support( 'webshare', array( 'styles' => true ) );

然後在您的佈景主題的模板檔中加入此代碼,以顯示 Webshare。

<?php
if ( function_exists( 'webshare' ) ) {
webshare(); // 分享圖示。
}
?>

演示

您可以在 Mina olen 演示站點 上看到演示。您可以在此處 下載 Mina olen 主題。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Webshare is another social sharing plugin but it only displays sharing links with Genericon fonts. So it’s lightweight.
Plugin usage
When you activate the plugin social sharing appears after singular post. You can drag and drop social icons in
different order under Settings >> Webshare.

There you can choose under which post types you want social icons to appear or do you want to disable some of them.
Add Twitter username in your profile page (called Twitter Username) if you want to show it when sharing to twitter.
Theme support
If you want to set location where social sharing appears, load Genericons and handle the CSS in your theme, add this code in your themes functions.php.
/* Webshare plugin support. This means that theme handles the CSS and location of websharing already. */
add_theme_support( 'webshare', array( 'styles' => true ) );

Then add this code in your themes template file where you want webshare to appear.

Demo
You can see the demo in Mina olen demosite. You can
get Mina olen theme from here.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon