In this guide we will see how to create a function that in my opinion is very useful and convenient, especially for readers of your articles or pages: an internal menu with a WordPress plugin.
Obviously this guide is oriented to WordPress as it is the most used CMS for Blog, however following the instructions without plugins, you can put it into practice with any type of website.
What is an internal menu with WordPress
Have you ever read an article or a page that at has a list of items at the beginning of the text and clicking on them it takes you to a specific section of that same article?
Well, that’s an internal menu.
The main utility of the internal menu is to facilitate the user who wants to read your articles.
Shortly, those interested only in certain information of your article can go directly to the dedicated section and read what interests them.
But isn't it counterproductive?
No. Users are mainly of two types: those who want to be informed well and those who are in a hurry and, before wasting time, want to be sure that the article is actually what they are looking for.
Then regardless whether or not they read the whole article, they would have found what they are looking for, fulfilling the purpose of your article (Google notices and appreciates it).
In addition to this advantage, there is also the possibility of one reading a long article to go directly to the section where he was arrived, without having to scroll through your site until he finds it.
Why create an internal menu with WordPress
As mentioned above, the internal menu serves to facilitate a user regardless of his intentions. Facilitating this experience, the user will find pleasant (premise the quality of your content) browsing on your website and will almost certainly return.
The more satisfied users are, the more users return to your site, the more users return to your site, the more Google realizes that your content is valuable and therefore you gain in positions on search engines.
Obviously this is not enough to make your website be positioned on search engines (read more information on our SEO positioning page by clicking here), but it is only a best practice to make your article more qualitative.
How to create an internal menu with WordPress
Let’s get straight to the point!
How to create an internal menu with WordPress!
We will see it both with a wordpress plugin, and directly with code for the more adventurous :-).
How to create an internal menu on WordPress with the Table Of Contents Plus plugin
For those who love simplicity, I have what you need: the plugin is called Table of Contents Plus and is made by Michael Tran, click here to go to the wordpress page or click here to download it directly.
Once installed, just go to the administration panel of the Table of Contents Plus to choose at first how the plugin should behave, for example if the menu must contain only h2 or also other types of title and if you want to use it only for articles, only for pages, both or in other places.
Don’t worry, just look at the screenshots below to better understand what I mean.
Once this is done, to use your inter-page menu, just paste the shortcode [TOC] in the position you prefer, as if by magic, the menu will appear inside your article or page.
How to create an internal code menu in WordPress
Bravo, you like challenges! Seriously it is a very simple thing and it is not worth it to install a plugin for such a simple function …
First position yourself in the text box of your article and click on the Text Tab (top right), in this way you will see the HTML code of your text.
So go on your titles, you will distinguish them because they will be inside the tags < h2 > < / h2 >, < h3 > < /h3 >, etc. keep in mind that h1 is the main title if for some reason you have it in the text of your article.
Now just add an ID to the title element, such as
< h2 id = “IDdelmiotitolo”> My H2 Title < /h2 >,
if you want to subdivide only the main subtitles you will only need to do it on h2, otherwise also on the lower ones (3, 4, 5 or 6).
I recommend that each id must be different from the others.
Now you can return to Editor mode by clicking on the visual tab (always at the top right).
So position yourself where you want to put your internal menu on the page and activate a bulleted or numbered list, as you like, to write your titles, after which you select a title and add a link, on the link you will put #IDdelmiotitolo. To be used for each title.
Now you know how to create an internal menu with WordPress, it seems complex but it is easier to do than to say, let me know anyway with a comment if you have succeeded!