Rankmath and the "Table of contents " recommendation

  • In the Content Readability section, users are recommended to install a Table of Contents plugin.

    Even when the average wordpress user will always prefer the plugin option, this can be achieved very easily without one:

    <h2>Table of Contents</h2>
    – Title1
    – Title2
    – Title3
    – Title4

    <h2>T1</h2>
    <h2>T2</h2>
    <h2>T3</h2>
    <h2>T4</h2>

    Complete explanation / guide here:

    How to create a table of contents in WordPress without using plugins

    But it doesn’t mean that i am not using a table of contents. Rankmath won´t detect this “workaround” or consider it as valid (good) SEO practice.

    So, the “You don’t seem to be using a Table of Contents plugin” should become a question with a checkbox instead?
    Are you using a table of contents plugin? and a checkbox.

    And congratulations on a job extremely well done with the plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi Sergio,

    Thanks for getting in touch.

    We are aware of this shortcoming but unfortunately, there is currently no way of detecting table of content inside the post’s content. Detecting a preset plugin list is the only way we are able to do it currently.

    Appreciate the tip on making a checkbox available to do that. We will see what we can do about that.

    For now, you can use a filter to remove the test you do not want to see: https://rankmath.com/kb/filters-hooks-api-developer/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    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.

    where to insert these filters ?
    /**
    * Filter to add plugins to the TOC list.
    *
    * @param array TOC plugins.
    */
    add_filter( ‘rank_math/researches/toc_plugins’, function( $toc_plugins ) {
    $toc_plugins[‘plugin-directory/plugin-filename.php’] = ‘Plugin Name’;
    return $toc_plugins;
    });

    Hello,

    Thank you for contacting Rank Math today.

    The code should be added to your functions.php file. Kindly test it out and let me know.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Does above code works as table of content plugin or do I need to add another table of content plugin together with it ?

    Hello,

    Thank you for contacting Rank Math and sorry for the delay.

    You need to customize this code further and add the name of your TOC plugin its directory and main PHP file name on this line:
    ‘plugin-directory/plugin-filename.php’] = ‘Plugin Name’;

    Looking forward to helping you. Thank you.

    ​​​​​​

    hi there, somehow I managed to add a toc plugin in the blogger platform. Can someone visit and tell me whether it is SEO friendly or not.
    Here is the link to my site. Gadgets360hub.

    Hello,

    Thank you for contacting Rank Math today.

    Your implementation is okay, I cannot spot any problems that would affect your SEO. With this in place, Google will hopefully reward you with jump-to links soon.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Elementor Pro just added a table of contents widget and should be added to the plugin list.

    Hello,

    Thank you for contacting Rank Math today.

    This is a good suggestion, I will pass it on to our dev team so that our content analysis can check for this.
    At the moment you can ignore this test.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    We are actually working on this especially after the huge update today making our plugin working hand-in-hand with the Elementor builder.

    An update will come very soon. In the meantime, you can add it yourself if you like:

    Rank Math SEO Filters and Hooks for Developers

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

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

The ticket ‘Rankmath and the "Table of contents " recommendation’ is closed to new replies.