Why should I add a WordPress directory?
![图片[1]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-183.png)
A table of contents helps readers jump to the relevant part of a WordPress post, which can improve its readability - especially for long content.
Adding a table of contents may also enhance search engine optimization. For example, it may reduce a site's bounce rate because users can easily navigate to sections that fulfill their search intent.
In addition, TOC can help your pages look more attractive on search engine results pages (SERPs). Providing a Table of Contents helps Google automatically generate jump links to different parts of a post.
How to Manually Create a Directory in WordPress
In this section, we'll cover how to create a catalog using WordPress' Gutenberg block editor.
The procedure is as follows:
1. Log in to your WordPress dashboard and open the post or page you want to add a table of contents to.
2. Add headings for each section to be included in the catalog. You can determine if you have added a title block by looking at the different font sizes between the title and the body.
![图片[2]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-241.png)
3. Then, place the cursor on the title and the"AdvancedWrite an HTML anchor for it under "Settings". Please note that anchor text should not contain spaces.
4. In the section of the page where you want to insert the table of contents add thelistingsBlock. Then, insert all catalog headings consecutively.
5. Use the cursor to highlight the entry in the list, then click the toolbar's "Link" icon.
![图片[3]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-242.png)
6. Use the Theme tab to enter in the pop-up boxtarget HTML anchor for the header, and then press EnterThe
7. Repeat steps 5 and 6 for all entries in the list so that they each link to the target section.
![图片[4]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-243.png)
How to Add a Directory to WordPress Using a Plugin
For long posts that contain many headlines, manually creating a table of contents can be very time-consuming. But WordPress plugins can help simplify the process.
For example, we can create a catalog by using the Easy Table of Contents plugin, here's how to do it:
1. Install and activate the plug-in.
2. log in to your WordPress dashboard and go to "set up"->"catalogs".
3. In "conventional (weapons)"Under the "Automatic Insertion" section of the tab, select the type of article you want the plugin to automatically add to the table of contents. For example, you can select "Articles".
4. Under the same section, you can also configure the location of the catalog, the title label, and the number of titles to display.
![图片[5]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-244.png)
5. Then, in theexterior conditionPartially customize the width and alignment of the table of contents. It is also possible to change the font size, table theme and color of the catalog.
![图片[6]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-246.png)
6. Navigate tohigh levelConfigure settings to define the conditions for how the catalog is displayed. For example, selecting only H1, H2, and H3 headings will exclude H4 and below headings from the catalog.
7. ClickSave Changesbutton. This free tool automatically generates the catalog at the time of publishing, and we recommend previewing the catalog before publishing to make sure there are no configuration errors.
Add the first 4 plugins of the WordPress directory
Many WordPress SEO plugins already include a catalog creation tool. However, if you prefer to use a dedicated WordPress TOC plugin, here are our four suggestions.
1. Easy Table of Contents
![图片[7]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-178-1024x573.png)
This plugin is suitable for more complex sites that contain multi-page WordPress posts.
![图片[8]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-179-1024x581.png)
For Gutenberg users, please consider using this plugin to create a catalog. It provides Gutenberg's native styling options directly from the sidebar widget settings.
![图片[9]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-180-1024x708.png)
LuckyWP is compatible with several WordPress page builder plugins. Users can customize the appearance of the table of contents by adjusting the width, hover color, and font size. It even has the option to float the TOC.
![图片[10]-添加 WordPress 目录的2 种简单方法-光子波动网 | 专业WordPress修复服务,全球范围,快速响应](https://www.361sale.com/wp-content/uploads/2024/04/image-181-1024x538.png)
Ultimate Blocks is a versatile plugin that provides 47 types of blocks for WordPress' Gutenberg editor, includingdirectory blockThe
If you have lengthy website posts containing various content types, then this plugin is a handy option.
summarize
Adding a directory is a great way to reduce bounce rates and improve the overall SEO of your WordPress site, so it's necessary for your website.
Link to this article:https://www.361sale.com/en/7272The article is copyrighted and must be reproduced with attribution.
No comments