table of content

#242372
  • Resolved Sewakram
    Rank Math free

    Respected Sir,
    first of all thank to sir because after using your plugin, My website’s some pages have been ranked to first page of google. Which is very awesome for my small metrimony website.
    But I have a question-
    My one post has scored 85 points out of 100. When I use table of content without using any pluging, my score remains unchaged by the rank math plugin. What is the reason ? I don’t want to use any plugin Now. Can you help me ?
    Again thanks to you for creating such plugin by which my website is going to rank at the first page of google.
    I am waiting your support
    From
    rishtekhojo.com

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

    Hello,

    Thank you for contacting Rank Math.

    Rank Math only detects the Table of Content if it is added with the compatible plugins. If you’re adding Table of Contents by any other method that does not involve the usage of a plugin, then you can completely disable the test for Table of Contents.

    To disable the test of 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.