Table of Contents Detection

#358408
  • Resolved Rich B.
    Rank Math free

    Hello,

    I read your help files about table of contents detection if not using a plugin, and the workaround is to at some code into the functions.php file or rank-math.php file.

    But quite frankly, I just don’t understand what’s so complicated about your tool being able to detect a Table of Contents that was created without a plugin. Because with the advent of Gutenberg Blocks, it’s widely known that many WordPress users now simply create a table of contents using anchor text/jump links that are real easy to create now in the block editor.

    Furthermore, every one of these types of table of contents that I’ve seen always has the words “Table of Contents” right there big in a title tag over the series of anchor links, so you can’t miss it. So I don’t see why your tool can’t be smart enough to detect a heading appearing at (or near) the top of a page, followed by a series of anchor links. Hmmm, what else could that be??? Oh, a table of contents!

    This is just my opinion. This just made your tool/technology seem a bit dated to me in this area. Perhaps it’s time for an update – because Gutenberg is really eliminating the need for things like a Table of Contents plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    Thanks for your valuable suggestion. Currently, our plugin can only detect the table of content if it is coming from a plugin. I have shared your suggestion with our devs for further discussion.

    If you are manually adding a table of content then you can disable the test using the following filter in your theme’s functions.php file: https://rankmath.com/kb/disable-seo-content-tests/#toc-test

    Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks for the info Jaideep. Is it possible to add the code using a Code Snippets plugin? If so, please provide specific details. I do limit the number of plugins I use as much as possible, but one that I feel is very useful is the Code Snippets plugin – https://wordpress.org/plugins/code-snippets/ to keep the functions better organized and easier to edit. What are your thoughts on this?

    Anas
    Rank Math business

    Hello,

    Yes, you can add the filter using the Code Snippets plugin.

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#code-snippets-plugin

    Hope that helps.

    Don’t hesitate to get in touch if you have any other questions.​​​​​​

    Ok thanks, what’s the recommended run settings (section 1.4)??

    Hello,

    Since the Content Analysis is only happening on the backend. You can go ahead and enable the code to run only in the administration area.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Table of Contents Detection’ is closed to new replies.