EDITS.WS

Tag: table of contents

  • How to Create a Table of Contents in WordPress

    A Table of Contents in WordPress can be an effective addition to your website pages or posts. They are great for boosting user experience and for navigating long-form copy. Plus, they provide a slight advantage in SEO.

    In this article, we’ll show you step-by-step how to add a table of contents to your WordPress site easily with a plugin. And, we’ll show you the simple steps needed to create one from scratch. So, if you’re here for a table of contents for WordPress, this post has what you need.

    Here’s what we’ll cover:

    What is a Table of Contents in WordPress?

    A WordPress table of contents is basically a list of the main headings or topics covered throughout the content of a page or post. They are great for giving users an overview of what’s to come. Typically, they are placed at the top of a page, just after the title or introductory paragraph.

    Examples

    Usually, a table of contents consists of a list of anchor links (or jump links) to the corresponding headings on the page. When clicked, anchor links jump or scroll down to the corresponding heading where the content will be found. This makes it easy for visitors to navigate the page.

    The Benefits of Creating a Table of Contents in WordPress?

    If you’re a business owner or blogger using WordPress, user experience and search engine optimization(SEO) are always going to be important. Using a WordPress table of contents on your site can help with both.

    User Experience

    A table of contents can be extremely beneficial to user experience. It allows visitors to quickly and easily orient themselves to the information available in the content.

    Plus, because they contain anchor links, visitors can easily jump to the information they are looking for without so much scrolling. This can save a lot of time when there is a lot of content. We even use them on our Elegant Themes Blog for long guides such as ultimate guide to Divi Speed Optimization.

    SEO Value

    Having a table of contents can give your page a boost on SERPs by giving you an enriched search result. This can include additional links to your most popular page sections featured directly on your search result.

    Google Search Result

    Plus, they help search engines understand the crawling context of your page which can lead to improved indexing or featured snippets. By creating well-organized content with a table of contents, you give Google and other search engines a clear understanding of your content.

    How to Automatically Add a Table of Contents in WordPress Using a Plugin

    Creating a table of contents in WordPress using a plugin is by far the easiest way to go. And there are no shortage of plugins in the WordPress repository that help create an site-wide Table of Contents for your posts and pages and generate anchor links automatically.

    Automatic TOC WordPress Plugins

    For this post, we’ll be using Easy Table of Contents WordPress plugin to create a our table of contents.

    1. Install and Activate the Plugin

    To get started, go to your WordPress dashboard and navigate to Plugin > Add New. Search for the Easy Table of Contents plugin and click to install and activate it.

    install easy table of contents plugin

    2. Check a Post to See It Working

    Once you install and activate the plugin, Easy Table of Contents immediately creates a table of contents section on your posts. As soon as it is activated on your site, you can navigate to the front end and see the table it created on your posts.

    Live Post Example

    3. Customize Your Table of Contents Site-Wide Settings

    After seeing what the plugin does out of the box, you can visit the plugin’s settings and tailor them to your needs. To go to the settings, navigate to Settings > Table of Contents.

    Site-wide settings

    For most people, enabling the table of contents to show up on posts is probably all you’ll need. Pages are a different story. If you have landing pages that are specifically designed as top-level pages, you should uncheck showing a table of contents on your pages (keep posts checked).

    Easy Table of Contents Settings

    Further, you’ll see that Easy TOC recognizes all your custom post types and various templates which you can toggle on/off for.

    There are also a host of other options for you to try out, but that is all dependent on your website and needs. Most websites will only need to use H2, H3, or H4 headings in their table of contents. Too many items in a table of contents will clutter up your content and be less helpful than not having a table of contents at all.

    4. Override Site-Wide Settings for Individual Posts

    Aside from the site-wide settings, Easy Table of Contents gives you post-by-post control over the table of contents. However, to enable Easy Table of Contents individual post settings in the Block Editor, you have to enable Custom Fields in the block editor’s preferences section.

    To do this click on the Gear Icon in the top right to see Page Settings. Of those settings, click on “Preferences”.

    This will open up a modal in the center of your screen. Click on the “Panels” tab. Then, Toggle on the “Custom Fields” option. This will allow any plugin or theme setting that adds custom fields to your pages/posts to display those settings underneath the block editor.

    enable custom fields

    You can disable the table of contents from showing up on the posts page and adjust other settings that only affect that one page. This is perfect for special use cases that differ from your site-wide settings.

    To disable the Table of Contents section from a particular post/page, scroll down to the plugin settings (after you’ve enabled custom fields).

    Checkmark the box for “Disable the automatic insertion of the table of contents.”

    This removes the table of contents that would automatically be inserted via plugin settings.

    Disable TOC on Page or Post

    That’s it!

    Other Table of Contents Plugins for WordPress

    Aside from Easy Table of Contents, there are plenty of other Table of Contents plugins that could serve you well. There are some great free plugins like LuckyWP Table of Contents that work great with WordPress blocks and page builders like Divi. And there are premium plugins like Fixed TOC that have all the advanced features one would need. Do your research and test a few out to get the best features that fit your needs.

    In general, look for the ones that are easy to use out of the box, have built-in support for schema markup, and have decent styling options. Here are the best Table of Contents plugins for WordPress that we recommend.

    How to Create a Table of Contents in WordPress Manually

    Creating a table of contents from scratch using the WordPress Editor can be useful for users who only need one for a few posts or pages and don’t need the site-wide functionality of a plugin. And creating one is fairly simple (and kinda fun) once you understand the concept.

    A table of contents is basically a list of anchor links that jump to specified sections or headings of a page. So, if you’ve created an anchor link on a page or in a navigation menu before, you are already familiar with the basics of creating a table of contents. If your not familiar with anchor links (or jump links), we have a complete guide on how to create anchor links in WordPress.

    Here’s how to create a table of contents from scratch on a WordPress post:

    1. Create Your List of Headings for Your Table of Contents

    At the top of your page or post, create a list of all the headings for your table of contents using a paragraph block (or list block). To do this, create a new paragraph block (or list block) and add the heading text that corresponds to the headings on your page content below. Make sure there is a line break after each heading text.

    Create Table of Contents - Block Editor - Create Paragraph Block

    Once done, make sure to check that the heading text in the table of contents matches the heading text in the content for a better user experience.

    2. Add a Unique HTML Anchor ID to Each Heading on Your Page or Post

    Next, go through the content on your page (heading by heading) and assign each heading a unique HTML anchor ID.

    To do this, go to a heading block and click on its settings.

    Create Table of Contents - Block Editor - Steps 2-4

    After that, in the heading block settings (in the “Advanced” tab of the heading block), add an HTML Anchor ID to the field. For this example, the anchor HTML anchor is “heading-one”. This anchor ID will be used as the anchor link target.

    Create Table of Contents - Block Editor - Steps 5-6

    3. Convert Each Heading in Your Table of Contents Into an Anchor Link

    Once the ID for the heading element is set, we can go back up to our paragraph or list block that contains our table of contents. One by one, highlight each line and click the “Link” icon to add a link.

    Create Table of Contents - Block Editor - Steps 7-8

    Instead of a web address, add a pound sign or hashtag (#) plus our anchor ID. Press enter and the link will apply to that text.

    Create Table of Contents - Block Editor - Step 9

    For our example, we added “#heading-one” for our anchor link. Your anchor link text should be descriptive but concise. But it should also accurately summarize the content that is within that section so search engines can read it.

    Most importantly, your anchor link needs to be unique and not used elsewhere on the page. This is because using the same HTML Anchor ID will confuse the browser and not work as intended.

    Once you are done, save your changes and preview your page. Test your new Table of Contents by clicking the anchor links to make sure they are all jumping to the right places. If those links aren’t working, you may have left out or misplaced the “#” or your Anchor IDs and Anchor Link URLs aren’t an exact match.

    Creating a Table of Contents in Divi

    Divi Theme Builder is one of the most robust and easy-to-use tools for WordPress websites. It allows website creators, business owners, and marketers to create stunning websites that are feature rich.

    Using the default WordPress editor to create a table of contents is pretty limiting, especially when it comes to design. Divi makes it so much easier to create unique table of contents designs and add smooth scrolling anchor links to any element on the page or post without having to know HTML or CSS.

    Create a Table of Contents in Divi Theme Builder

    We have a full write-up for how to build out a Table of Contents section for your blog. Not only can you find the how-to steps, but there is also a free layout download for you. The layout is for you if you’re looking for a faster solution with the Divi Theme.

    The Best Divi Table of Contents Plugin

    If you are looking for a way to create a table of contents in Divi, check the Divi Table of Contents Maker plugin.

    divi table of contents maker plugin

    This plugin includes a unique Table of Contents Module for Divi that automatically generates your lists, anchor links, and all the functionality you need in a few clicks. You can use the module on a theme builder template to add table of contents automatically for all your blog posts! Plus the module has hundreds of customization settings and style options.

    Learn more about Divi Table of Contents Maker.

    Other Table of Contents Solutions to Consider

    If you are interested in other solutions for adding a table of contents in WordPress, here are some others that you may not be aware of that are worth considering.

    Wait for a Built-In Table of Contents Block in WordPress Core

    If you have time to wait for a table of Contents solution, it seems a Table of Contents WordPress block is in the works. And, there is a lot of recent traction on the project that you can view on the Github Pull and in an issues dialogue. It looks like a promising block that will bring table of contents natively into WordPress’ block editor.

    However, there are bumps in the roadmap so it is a toss-up whether or not it will make WordPress 6.1 or be in a later release.

    Check for a Table of Contents Feature in Plugins You May Already Use

    With all the robust plugins out there. Who knows? There is a decent chance that maybe you’re using a plugin currently that has a table of contents feature hidden in the details. Here are a couple of popular plugins you may already use that offer the ability to create a table of contents in WordPress.

    SEO Yoast Premium

    If you’re using the Yoast SEO plugin for WordPress, you may be wondering what the Table of Contents block is and how it can help you. The Table of Contents block is a premium feature that allows you to dynamically create a table of contents for your post or page. The best part is that if you already use Yoast SEO Premium, you have an easy TOC solution.

    Spectra

    Another plugin many people use is Spectra. Spectra has been gaining popularity as an enhancement of the built-in block editor for WordPress.

    One of the blocks included in Spectra is an easy to use Table of Contents block. The block has full design customizability and is deployable with no additional coding. As you can see, add the block to your post and adjust the settings. You’ll have a table of contents in a few seconds. Spectra does come in a free and premium version.

    Conclusion

    In conclusion, creating a table of contents in WordPress is easy and can be done in a few steps. By using a plugin, you can automatically generate a table of contents for your pages and post. Or, you can manually create a table of contents in the default WordPress editor or in a page builder like Divi for more design settings. Either way, you have the power to customize your website to afford your site visitors a better user experience and be seen better in search results.

    Do you use a table of contents on your WordPress site? Do you have a favorite plugin you use? Let us know in the comments!

    Featured Image via IconArt / shutterstock.com

    The post How to Create a Table of Contents in WordPress appeared first on Elegant Themes Blog.

  • 5 Best WordPress Table of Contents Plugins in 2023

    Readability and User Experience (UX) are essential to keeping users engaged with your content. Most visitors are likely to feel turned off by huge walls of text or very long pages and consequently leave your site. However, with a table of contents plugin, you can enable readers to quickly jump between different sections of your content.

    Today’s guide will explore five of the best WordPress table of contents plugins. Let’s get started!

    What Is a WordPress Table of Contents Plugin?

    You’ve likely seen tables of contents before in physical books. They list the main chapters within the book so you can more efficiently locate specific content without having to randomly flip through all the pages. Therefore, you can save time and effort while finding the necessary information.

    A table of contents serves a similar purpose on a WordPress website. However, unlike a physical book, a WordPress table of contents will be more dynamic and interactive. They contain a list of your post’s headings and subheadings with clickable anchor links (or jump links) that take readers to those specific sections.

    The table of contents anchor links allows users to jump to the sections they’re most interested in. Therefore, since visitors won’t have to scroll down manually, this layout increases the UX of your post or page. Plus, it can enhance readability by clearly showing users what content to expect.

    The anchor links within a table of contents can also give you a slight boost in SEO. Using SEO links like this will allow search engines to display those links in SERPs.

    By using a WordPress table of contents plugin, you can insert this feature into your posts and pages without adding custom code. Therefore, this type of plugin can be a user-friendly and time-saving tool for your business.

    5 Best WordPress Table of Contents Plugins

    Now, let’s take a look at some of the best WordPress table of contents plugins. We’ve chosen tools with user-friendly interfaces, customizable settings, good reviews, and also frequent updates.

    1. Divi Table Of Contents Maker

    Divi Table of Contents Maker plugin

    First up, Divi Table of Contents Maker is a great plugin to increase the readability and navigation of your Divi site.

    Divi table of contents maker demo

    It works by creating a custom module within Divi that can be styled any way you like. You can apply a custom title text, a collapsible table, sticky settings, and several marker prefixes including icons, numbers, and letters.

    Key Features for Divi Table Of Contents Maker:

    • Endless design possibilities with Divi
    • Collapsible and sticky table options
    • Custom icon markers
    • Link styling and hover effects
    • Keyword highlight search bar
    • Divi Theme Builder support

    Additional settings include link styling, hover effects, a keyword highlight search bar, word wrap options, and Divi Theme Builder support for creating a table of content module dynamically. To boost your site’s SEO, Divi Table of Contents Maker integrates seamlessly with Rank Math, which provides SEO content analysis on the fly.

    Divi Table Of Contents Maker is for you if…

    • You want ultimate design control.
    • You need a plugin that integrates with Divi

    Divi Table Of Contents Maker Pricing: $15

    Get Divi Table of Contents Maker

    2. Easy Table of Contents

    Easy table of content plugin

    Next, Easy Table of Contents is one of the most time-saving tables of contents plugins. You simply need to configure which types of posts and pages you want to include this element in. Then, the plugin will automatically insert the tables into your content.

    Key Features for Easy Table of Contents:

    • Auto-insert tables into posts, pages, custom post types, templates, navigation menus, and more.
    • Choose from built-in themes to customize your tables’ appearance.
    • Select color, background, and link options for your tables.
    • Enable users to hide tables.
    • Select each table’s position and label.
    • Exclude specific headings from your tables.

    Easy Table of Contents settings

    Overall, Easy Table of Contents is a straightforward plugin. However, it could be just what you need if you’re not worried about advanced design settings.

    Easy Table of Contents is for you if…

    • You’re looking for an automated and user-friendly solution.
    • You’d like to use a free plugin.
    • Simplicity is important to you.

    Easy Table of Contents Pricing: Free, with a premium version starting at $49 per year

    Get Easy Table of Contents

    3. SimpleTOC

    SimpleTOC plugin

    If you’re looking for a straightforward table of contents block, SimpleTOC is an excellent option. The element it provides creates a nested list displaying all of your post or page headings. Plus, you can add this block to your widget areas, such as your header or footer.

    Key Features for SimpleTOC:

    • Insert the SimpleTOC block anywhere with the Block Editor.
    • Choose which headings appear in your table.
    • Select your desired background and text colors.
    • Display the block in full or wide width, adjust its indent, and control the heading depth.
    • Use the block in various languages, including English, Spanish, and French.

    SimpleTOC settings

    Since it doesn’t use any CSS or JavaScript, SimpleTOC is a lightweight plugin that shouldn’t affect your site loading speeds. Additionally, it automatically inherits your WordPress theme’s styling to match your branding.

    SimpleTOC is for you if…

    • You want to add a table of contents with a block.
    • You’re looking for a streamlined and lightweight plugin.
    • Your website’s content is displayed in different languages.

    SimpleTOC Pricing: Free

    Get SimpleTOC

    4. Fixed TOC

    Fixed TOC plugin

    Next up, Fixed TOC is a premium WordPress table of contents plugin with more advanced styling options. You can set up the plugin to create tables automatically, or insert them manually with a shortcode. Additionally, you can configure Fixed TOC’s tables and change the color of their links, backgrounds, hover effects, and more.

    Key Features for Fixed TOC:

    • Automate your tables of contents according to page or post type.
    • Create fixed (or floating) TOCs that are mobile-responsive.
    • Customize your tables’ appearance to match your theme.
    • Enable smooth scrolling and collapsible headings.
    • Choose from a selection of animated effects.
    • Use the plugin with Google AMP.

    FixedTOC settings

    With FixedTOC, the table of contents will be located in your sidebar. This lets visitors skip ahead to other sections easily at any point. You can also opt to let users hide the table for better UX.

    Fixed TOC is for you if…

    • You’re looking for advanced styling and customization options.
    • Mobile responsiveness is a high priority.
    • You’d like to add animations to your tables of contents.

    FixedTOC Pricing: Licenses start at $20 with six months of support

    Get Fixed TOC

    5. Ultimate Blocks

    Ultimate Blocks plugin

    Finally, Ultimate Blocks could be the best WordPress table of contents plugin if you want to add several new elements to your site. It also enables you to insert customer star ratings, tabbed content, image sliders, and more.

    Key Features for Ultimate Blocks:

    • Choose from 47 new blocks, including a table of contents.
    • Automatically generate a table of contents from the headings on your page.
    • Include/exclude specific heading types.
    • Make your tables collapsible.
    • Create tables with multiple columns.
    • Choose from three different list styles.
    • Customize table colors.

    Ultimate Blocks settings

    Ultimate Blocks’ table of contents is fairly simple, with a few design options for columns, colors, and list formats. Additionally, you can make your tables collapsible, so users can opt in or out of the feature (including on mobile devices).

    Ultimate Blocks is for you if…

    • You need multiple blogging and marketing blocks.
    • You’d like to use a free plugin.
    • You’re looking for a simple and also user-friendly solution.

    Ultimate Blocks Pricing: Free

    Get Divi Table of Contents Maker

    Which WordPress Table of Contents Plugin is The Winner?

    First, let’s recap all of the plugins we covered in this post. We ranked them in order of our favorites, with the top three table of contents plugins at the top of the list. Of course, you might also want to consider the price associated with each. The price has been added to the following table for easy comparison. 👇

    Plugin Price Free Option
    🥇 Divi Table of Contents Maker $15 ❌ Visit
    🥈 Easy Table of Contents $49 ✔️ Visit
    🥉 SimpleTOC / ✔️ Visit
    4 Fixed TOC $20 ❌ Visit
    5 Ultimate Blocks / ✔️ Visit

    A table of contents can help users jump ahead to the content that most interests them. Therefore, this feature can make your website much more user-friendly, and improve its readability.

    Divi Table of Contents Maker is an excellent option for a premium table of contents plugin. It includes advanced styling options, including animations. With seamless integration with Divi as well as Rank Math, you’ll give your users (and potential ones) an easy way to navigate content on your site.

    The post 5 Best WordPress Table of Contents Plugins in 2023 appeared first on Elegant Themes Blog.