RankMath doesn’t recognize Table of Content Plugin

#27479
  • Resolved Fiona
    Rank Math free

    Hi, since the last update RankMath doesn’t recognize the Plugin Easy Table of Contents. What’s going wrong?

    • This topic was modified 4 years, 11 months ago by Fiona.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Fiona
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math today.

    Since version 1.0.37, we removed TOC test support for CM Table Of Contents, Easy Table of Contents, f(x) TOC, HM Content TOC, Shortcodes Ultimate, Simple TOC, Table of content, Table of Contents Plus, Thrive Architect, Fixed TOC. These and other plugins can add the support for the Rank Math plugin by using this filter:

    /**
     * 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;
    });

    Please get in touch with the author of this plugin so that they can add this support.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Fiona
    Rank Math free

    Hello,
    thank your for your reply. Sorry, but I don’t know, what to do or where to fill in the code.

    Todd
    Rank Math free

    Hi Fiona,

    We only detect Table of Contents if you are using one of these plugins to add a table of contents section.

    ​https://rankmath.com/kb/score-100-in-tests/#table-of-contents
    ​
    ​Unfortunately, there is no other way to look for a Table of Contents section other than to look for pre-installed ToC plugins like the ones listed above. You also use the filter provided in the above link to manually add your plugin to the compatibility list (or ask your ToC plugin provided to add it to their plugin)
    ​
    You can also use this code in your theme’s functions.php file to manually tell Rank Math that you are already using a Table of Contents and to pass that test.
    ​
    https://pastebin.com/HWg6na7c
    ​
    ​Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Fiona
    Rank Math free

    Okay, thank you, I installed another Plugin

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘RankMath doesn’t recognize Table of Content Plugin’ is closed to new replies.