table of content

#469173
  • Resolved An Baert
    Rank Math free

    I use table of contents on my post, but rank math doesn’t recognize it, so I get a less good score, I already cleared all cache, but it doesn’t work.
    I have also consulted the website to solve this problem, but it is quite technical and I can’t solve it?

Viewing 1 replies (of 1 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. If you’re adding a Table of Contents by any other method that does not involve the usage of a plugin, it won’t be detected by Rank Math, in this case, can completely disable the test for Table of Contents.

    To disable the test of the Table of Contents, add 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 );

    I hope this helps. Looking forward to helping 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 1 replies (of 1 total)

The ticket ‘table of content’ is closed to new replies.