Linking within a page is a simple task that can be done easily with WordPress. By linking you easily navigate or jump to a specific part of a page among the various sections of the page and reduce the time of scrolling. This is mostly done for posts or articles with lots of heading and subheadings to make the reading simpler. It involves some code that is not very complex to understand and implement on your site. If you are not clued up on how to link a section or anything with a page then read this complete article and make your blog/site look rich and professional.
Methods to Anchor Link in WordPress
There are two ways to Anchor links within a page in WordPress and both are simple to implement in your post just by following the guide with complete awareness. Those two methods are
- Without plugin
- With Plugin
Link within a page involves some simple line of code to note down and execute. Also, this process does not require any kind of knowledge about coding or whatsoever.
 Compose the post on your WordPress site or blog.
 Write an Introduction or Synopsis in the beginning by including all the headings and subheadings or you can link anywhere in your post.
 Select the text you need to link within.
 Click on the Link icon or Press Ctrl + K on your keyboard.
 Type the link name with “#” followed by the name (example: #jetpackforms)
 Click on Submit icon to link.
 Now head to the paragraph section where you have the content of the linked heading.
 Choose More option from the block toolbar.
 Select Edit as HTML and this will convert the heading to HTML code (like <h2> JetPack Forms </h2>)
 Add the following inside the opening tag of your heading (<h1>) or paragraph (<p>) as follows
Type “id” followed by the link name given before. In this case it is <h2 id=”jetpackforms”> JetPack Forms </h2>
 Then you change the view to Edit Visually mode or just leave it as it is.
 Now save and view the page, the Anchor link will be done successfully.
Here’s how the linking works.
With a Plugin, the task gets even simpler and effortless. Some of the plugins used for the Anchor links are
- WP Anchor Header
- Advanced Editor Tool (previously called TinyMCE Advanced)
- Easy Table of Contents
- Gutenberg Editor
WP Anchor Header
WP Anchor Header is the simple anchor plugin that creates anchor names for all the available headers on the page automatically. This is indicated with a tiny anchor link icon near each header that is anchored by the plugin. Using this you can easily link any section from your document to ease the navigation.
Advanced Editor Tool
Advanced Editor Tool is another plugin for quick linking. It is nothing but an improvisation of the manual method. All you need to do is install and activate the plugin. Then follow the steps below.
- Add a link name to the text with “#”.
- After that, go to the place where the text should direct.
- Insert Anchor from the block (available only if the plugin is activated).
- Now add the link name given in the ID box.
Easy Table of Contents
Easy table of content is a popular and simple plugin for linking within a page. Firstly, you need to install and activate the plugin from your WordPress Dashboard. Now proceed with the steps below.
 Go to Settings from the dashboard and choose Table of Contents (only seen if the plugin is activated).
 Set the Enable Support, Auto Insert, position, and Show When from the settings.
 Now to insert a table of content, open any post on your site.
 Insert the following line of code [ez-toc] where you want the table of content to show up.
 That’s it, the table of content will be created automatically with the number of headers available in your post.
Gutenberg editor is the WordPress Editor plugin that comes with default Anchor linking. To link follow the steps below.
- Select the header that you need to link.
- Click on Advanced under the Block section, add the link text in the HTML Anchor field.
- Now you can link it to the text by pressing Ctrl + K and type the HTML Anchor name after an “#”.
You can also link inside a page using the Chrome plugin name Anchor Links. This plugin works only on WordPress and Medium sites. All you need to do is select the header you wish to link and click on the Chrome extension icon. This will create an Anchor ID like #example. Now move on to the text to add the link and hit paste (Ctrl + V). This adds an anchor link instantly to your post.
These are some of the possible ways to link within a page in your WordPress. As much as the advantage it holds, there are also some disadvantages to adding Anchor link like minimizing the visitor hold time on your site, impact on ad revenue because of some possible skipping of ads, etc. So use it wisely on any of your WordPress sites. Hope you are now aware of what is an Anchor link and ways to add it. If not then click here to start again.
For more WordPress guides, explore our blog.