[WordPress] 外掛分享: Widget Shortcode

首頁外掛目錄 › Widget Shortcode
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
80,000+
安裝啟用
★★★★
4.9/5 分(67 則評價)
2147 天前
最後更新
0%
問題解決
WordPress 3.0+ v0.3.5 上架:2011-12-22

內容簡介

這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:
[widget id=”text-1″ title=”New title”]
如果需要的話,你也可以完全隱藏小工具的標題:
[widget id=”text-1″ title=”0″]

其他參數:

container_tag:小工具容器使用的HTML標籤,預設:div
container_class:添加到小工具容器的CSS類名,預設:widget %2$s(注意:使用sprintf進行變數取代)
container_id:小工具容器的HTML ID屬性,預設:%1$s(注意:使用sprintf進行變數取代)
title_tag:小工具標題包裝使用的HTML標籤,預設:h2
title_class:小工具標題包裝的CSS類名,預設:widgettitle

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Widget Shortcode」→ 直接安裝(推薦)

原文外掛簡介

The shortcode requires the widget ID, but no need to guess, the plugin generates the code for you. To override the widget title for a widget you can use the “title” parameter:
[widget id=”text-1″ title=”New title”]
You can also hide the widget title entirely if desired:
[widget id=”text-1″ title=”0″]
Additional Parameters:

container_tag: the HTML tag to use for the widget container, default: div
container_class: CSS classname added to the widget container, default: widget %2$s (Note: uses sprintf for variable substitution)
container_id: HTML ID attribute for the widget container, default: %1$s (Note: uses sprintf for variable substitution)
title_tag: HTML tag to use for the widget title wrapper, default: h2
title_class: CSS classname for the widget title wrapper, default: widgettitle

延伸相關外掛

文章
Filter
Apply Filters
Mastodon