Add a Contents – also called contents – at the beginning of your blog articles may prove to be a "real plus", both at the level of SEO optimization from your blog that improvement of User experience (UX) of your readers.
In the past, we had to have some HTML knowledge to be able to insert a table of contents into your articles.
Here you will see that there are several solutions and we will review them all...
- 1 – Why insert a summary at the beginning of blog article?
- 2 - Insert table of contents with free extension
- 3 – Insert a summary manually with Gutenberg
- 4 - Insert a table of contents manually with the Divi Builder
- 5 - Insert a summary manually with the classic WordPress editor
- 6 - In conclusion: manual or automated table of contents?
1 – Why insert a summary at the beginning of blog article?
Add a summary at the beginning of your blog articles You may seem insignificant, but it is the opposite!
When I started blogging, I would never insert a table of contents That if it was worth it. In other words, if the article was really very long or a bit complex.
Over time, I realized that this "small plus" was actually indispensable for many reasons:
- Since my articles are becoming less and less succinct and more and more developed, a summary makes content more digested.
- This helps Divi tips readers to better navigate and understand the chapters of my articles. Thus, they can quickly go to the part that interests them most.
- Read the article summary can also sharpen readers' curiosity who would not have bothered to go further than the introduction.
- This is indispensable for Google who also needs quickly know the content of your article and to better understand it through adequate HTML semantics.
- The table of contents allows indexing robots to propose enriched results (Richs Snippets) directly in its search results, with links that point to some of your chapters.
Adding a summary to your articles is an optimization not to be underestimated and can allow you improve your positions in search results as explained in this article full of tips for quickly reach the first page of Google.
So, with a table of contents at the beginning of your articlesYou make one stone, two strokes!
Besides, when I have a little time, I try to update my old articles for optimize and update content and I always take advantage of it add a summaryIf not already... It's a big project, but it's worth it!
2 - Insert table of contents with free extension
If you're planning to do this, you too, I suggest you discover a simple way to get there.
Free extension named LuckyWP Table of Contents is very easy to configure and gives a more than satisfactory result, let's see how to do it...
2.1 – Installation of LuckyWP Table of Contents
Simply go to the tab Extensions > Add, available directly from the administration part of your site.
Search Table of content : Install and activate the plugin LuckyWP.
You will find the plugin settings under the tab Settings > Table of Contents.
2.2 – LuckyWP Configuration
Setting this plugin is very easy and its options are available in ENG/FR. Simply navigate through the various tabs to check/uncheck the options available to you.
2.2.1 – General Tab
It is from this tab that you can make the main settings such as:
- The minimum number of titles that triggers the creation of a table of contents.
- The ability to display the summary according to the hierarchy of your titles (H1 – H2 – H3 etc.).
- The type of numbering to be used: numbers, Roman numerals, no numbering etc.
- The numbering suffix: none, a parenthesis or a point.
- The title to be displayed above the table of contents.
- Enable the user filter to display or hide the summary. You can even change the labels.
- Add an automatic margin before anchoring point and activate fluid scrolling (scroll).
Once your settings are done, remember to save your changes.
2.2.2 - Tab Appearance
The Appearance tab allows you to customize the display of your summary.
You can specify the font, the fat and especially the colors to use.
The options are rather complete and allow you to fully customize your table of contents deciding on the color of the background, the color of the links, the links to the fly-over and the links visited.
In short, everything is done to ensure that your summary is based on the graphic charter of your site/blog!
2.2.3. Auto Insert Tab
The LuckyWP plugin allows automatic insertion of a table of contents within your publications.
It's a good option that could save you crazy time, but fortunately it's only one option.
If you do not check it, the summary will not add automatically and it will leave you more freedom on where you want to insert (manual method).
2.2.4 – Tab Table of Contents settings
From this tab, you will simply decide what types of publication can host a table of contents.
2.2.5 – Miscellaneous tab
Other tab offers interesting options, especially at SEO level...
- Select the titles to exclude from your summary. For example, you could decide that only titles H1 – H2 and H3 are included and that others must be hidden.
- Decide the format of your URLs. A link is created automatically internally: an anchor is placed at the end of the URL of your articles. With this option, you can decide how it looks.
- With regard to these anchors added to the URL, you can convert your titles to lower case and replace the underscores (the bottom dashes _ ) with dashes.
- Two SEO options are also possible:
"noindex"
(it tells Google not to index these URLs) and add a"nofollow"
to your summary links (it tells Google not to follow these URLs). It's up to you to choose what you think is best... - Other settings are also possible such as deciding whether to HTML tag where your table of contents (UL or DIV) will appear.
2.3 – Inserting LuckyWP in your blog articles
Here, with the settings made, you can enjoy this new feature.
If you have decided automatically insert summary, normally, everything is already in place. You'll have nothing more to do than check appearance in your articles.
If, however, you have decided manually insert LuckyWP's table of contents into your articlesHere's what you'll have to do:
When writing your articles with the new WordPress editor (Gutenberg), you can easily insert a "Table of Contents" block – available in "Common Blocks" – where you want it.
This block will retrieve all the titles identified in your articles and list them as a clickable summary.
You have nothing else to do...
Discover more plugins compatible with Divi...and who really want you to be good
3 – Insert a summary manually with Gutenberg
If you are a reluctant type and don't like to add plugins to gogo unnecessarily, then you should follow this second solution: manually add a table of contents using Gutenberg.
Ideally, you would need some HTML knowledge, but nothing very complicated if you follow these steps:
When your writing is complete or when your article plan is complete, you will need to add a IDENTIFIANT for each of your paragraphs.
Gutenberg's TITLE blocks are then ideal for this.
- Select the title block to change: click on the context menu (the 3 small points) and choose "Edit HTML".
- You will see the HTML version of your title. It is placed in H2, H3 H4 tags etc. In this tag, you must add a unique identifier you will create for each title. The tag
<h2>
must look like this<h2 id="mon-identifiant-1">
. You will renew this action for each title by taking care of never use the same ID and without using special spaces or characters. - You can then close the HTML edition by selecting "Visually Modify".
Once all your securities hold an ID, you can insert a List Block for list items in your table of contents.
For each element, simply insert a link such as #mon-identifiant-1, #mon-identifiant-2, #mon-identifiant-3
etc.
This allows create an internal link to the article which will lead the Internet user to the desired place.
It's time to test Divi for free to see what he's capable of... This way!
4 - Insert a table of contents manually with the Divi Builder
For create a table of contents in a page/article using the Divi BuilderIt's pretty much the same with Gutenberg:
First, you will need to insert as many line (row) or section as you need a paragraph. Learn more about how the Divi Builder works.
When your paragraphs are well separated in different rows and sections, you can add an ID ( CSS ID) that will be used to create your table of contents.
- Edit row settings
- Go to the Advanced tab
- In the " CSS ID" field, enter your unique identifier. For example:
sommaire-1
. Do not use special characters or spaces. - Save your changes.
You will need to renew this step for each of your paragraphs.
Then you can create the summary using a Text module in which you will add a smart list (or numbered list if you prefer).
- Open the settings of Divi Text module
- Highlight one of the summary items (chip or numbered list)
- Click on the link insertion icon
- Add CSS identifier of the paragraph with a "hashtag" as a prefix. For example:
#sommaire-1
- Validate by clicking OK
- Repeat these actions for each paragraph: the identifiers must be unique, remember.
- Save your changes.
There, you get a functional table of contents for your publication using the Divi Builder !
5 - Insert a summary manually with the classic WordPress editor
If you still use the old WordPress editor to write your blog articles, you can also add a table of contents easily.
Just write your articles since VISUAL editor (left screen on the screenshot above) then switch to TEXT version (right screen on the screenshot above), to insert CSS (ID) identifiers into the H2, H3, H4 tags etc.
Finally, you can add these CSS IDs as a link address within your summary, as we have seen previously with Gutenberg or Divi Builder.
Discover many other tips and resources directly on the blog ofElegantthemes.
6 - In conclusion: manual or automated table of contents?
Methods manual are effective and gives you more freedom, however, it takes much more time that with the help of a plugin. Especially if your summary has to display nested lists!
If you want to be tempted by the plugin method, know that it does not exist only LuckyWP, other free extensions or freemiums are also available:
50 Remarks