plugin-icon

WP Anchor Header

作者:Per Søderlind·
WP Anchor Header generates anchored headings.
评级
4.3/5
版本
0.2.3
活跃安装
400
最后更新
Mar 9, 2018
WP Anchor Header

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

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

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.

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 4.9.28
这个插件是可用的下载,适用于您的站点。