[WordPress] 外掛分享: WP Anchor Header

首頁外掛目錄 › WP Anchor Header
WordPress 外掛 WP Anchor Header 的封面圖片
400+
安裝啟用
★★★★
4.3/5 分(6 則評價)
2932 天前
最後更新
問題解決
WordPress 4.0+ v0.2.3 上架:2015-03-01

內容簡介

WP Anchor Header可以創建帶有錨點的標題(H1-H6),創建一個這樣的標題:

<h2 id="the-heading">
標題<a class="anchorlink dashicons-before" href="#the-heading"></a>
</h2>

這些鏈接使用以下CSS樣式:

/*顯示錨點的ID*/
h1[id]:hover a.anchorlink:before,
h2[id]:hover a.anchorlink:before,
h3[id]:hover a.anchorlink:before,
h4[id]:hover a.anchorlink:before,
h5[id]:hover a.anchorlink:before,
h6[id]:hover a.anchorlink:before {
content: "\f103"; /*dashicons-admin-links*/
color: #888;
font-size: smaller;
text-decoration: none;
vertical-align: baseline;
}
a.anchorlink {
text-decoration: none;
margin-left: 0.5em;
font-size: smaller;
}

致謝

本插件靈感來自Christian Weiske及其文章Usability: Clickable heading links。

外掛標籤

開發者團隊

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

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

原文外掛簡介

WP Anchor Header generates anchored headings (H1-H6), creating a heading like this:

The Heading

The links are styled using the following CSS:
/* show IDs for anchors */
h1[id]:hover a.anchorlink:before,
h2[id]:hover a.anchorlink:before,
h3[id]:hover a.anchorlink:before,
h4[id]:hover a.anchorlink:before,
h5[id]:hover a.anchorlink:before,
h6[id]:hover a.anchorlink:before {
content: "\f103"; /*dashicons-admin-links*/
color: #888;
font-size: smaller;
text-decoration: none;
vertical-align: baseline;
}
a.anchorlink {
text-decoration: none;
margin-left: 0.5em;
font-size: smaller;
}

Credits
The plugin is inspired by Christian Weiske and his article Usability: Clickable heading links.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon