This plugin adds a unique ID attribute to healings in your page and post content, and then makes those anchors available in the linking pop-up.
此插件为页面的修复和帖子内容添加唯一的ID属性,然后使这些锚点在链接弹出窗口中可用。
This makes it very easy to add “jump” links to headings within the content.
这使得在内容内的标题上添加“跳转”链接非常容易。 p>
Using the Plugin
使用插件 h4>
This plugin doesn’t use any settings or require any setup, just activate it and it’s features are available.
此插件无需使用任何设置或需要任何设置,只需激活它即可使用它的功能。 p>
The plugin works by adding a unique “id” to the headings in your content.
该插件通过在内容的标题中添加唯一的“ id”来工作。
When you open your content for editing, the plugin adds unique ids to all the h2 and h3 headings.
当您打开内容进行编辑时,该插件会向所有h2和h3标题添加唯一的ID。
After saving the content, those headings become available as “anchors” which can be linked to.
保存内容后,这些标题将变为可链接的“锚”。 p>
To create an anchor link, add the desired link text, select it and click the “add link” icon.
要创建锚链接,请添加所需的链接文本,将其选中,然后单击“添加链接”图标。
If you begin typing the heading you want the link to jump to, the anchor link for that heading will appear in the search results.
如果您开始输入想要链接跳转到的标题,则该标题的锚定链接将出现在搜索结果中。
Choose that anchor to place your link.
选择该锚来放置您的链接。 p>
If you want a link from another page to jump to a heading, you can add the anchor link (begins with a “#”) to the regular page link and when that link is clicked on the user will be taken to that
如果您希望其他页面的链接跳至标题,则可以将锚链接(以“#”开头)添加到常规页面链接,并在用户单击该链接时将其带到该页面。
heading on the new page.
进入新页面。 p>
For example, let's say you have a page at https://xnau.com/content-anchor-links/
that explains how to make a link list, and on that page is a tutorial
例如,假设您在 https://xnau.com/content-anchor-links/ code>上有一个页面,该页面说明了如何创建链接列表,并且该页面上是一个教程with the heading “A Tutorial” If you look at the HTML for that page, you'll see that the heading has an “id”, like this: A Tutorial
带有标题“ A Tutorial”的标题如果您查看该页面的HTML,则会看到标题具有“ id”,例如: A Tutorial
h2>
You can create a link that goes directly to that heading with a URL like this: https://xnau.com/content-anchor-links/#a-tutorial
h2> code>您可以使用以下URL创建直接转到该标题的链接: https://xnau.com/content-anchor-links/#a-tutorial code> p>
>