The plugin does not see the table of contents

#376440
  • Resolved Alex Grey
    Rank Math free

    Noticed this problem. Now it appeared when setting the table of contents from the “stackable” constructor. I’m inserting a table of contents block into a page. The block is working. However, RM does not see him. He considers the lack of a table of contents to be a mistake. Previously, another constructor had a similar problem. There is no table of contents on the page. But its block is in the constructor. RM happily announces that I’m using the table of contents! You can insert a stackable table of contents block on a blank page and make the heading 123. It will appear in the table of contents. But RM won’t see him. This is bad.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Rank Math only detects the Table of Content if it is added with the compatible plugins.
    https://rankmath.com/kb/table-of-contents-not-detected/

    If the plugin you are using is not detected, you can disable this test by adding the following piece of code to your theme’s functions.php file:

    /**
     * Filter to disable the table of contents test
     */
    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
        unset(
            $tests['contentHasTOC'],
        );
        return $tests;
    }, 10, 2 );

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

    Thanks for the quick response. Strange picture, however. 1. Ultimate Blocks has 30K+ installs and Stackable has 60K+. 2. You are adapted with Blocksy and praise this theme a lot. And she is just actively working with Stackable now. 3. Previously used Ultimate Blocks. There was just a situation when the table of contents block was not physically installed on the site page. However, RM praises that I use the table of contents)))) It seems to me that it makes sense to think about more adaptation with Stackable. It’s probably not too difficult?

    Hello,

    Due to the sheer amount of TOC plugins and implementations, we cannot have the detection automatically for everyone.

    Having said that, you can always disable the test or include the plugin you are using manually.

    If in the future we decide to include more plugins into the compatibility we’ll update the KB article shared previously accordingly.

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

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘The plugin does not see the table of contents’ is closed to new replies.