Rankmath and the "Table of contents " recommendation

#1291
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.

    Rank Math Bot
    Rank Math free

    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.

    Chitra B Gurung
    Rank Math pro
    Content AI Creator

    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.

    ​​​​​​

    Chitra B Gurung
    Rank Math pro
    Content AI Creator

    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.

    ​​​​​​

    Todd
    Rank Math free

    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:
    https://rankmath.com/kb/filters-hooks-api-developer/#add-toc-plugin

    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.