Table of Contents – How to make RankMath notice the TOC?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch with us.

    We usually autodetect plugins that are compatible by default as listed here:

    Since you have created your Table of Content manually, you may have to tell Rank math analysis to ignore this test by adding the following filter to your theme functions.php

     * Allow developers to modify the test or score.
     * @param array  $tests Array of tests with score
     * @param string $type  Object type. Can be post, user or term.
    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
     unset( $tests['contentHasTOC'] );
     return $tests;
    }, 10, 2 );

    If you are using a plugin to add this, you ca use the filter suggested in this thread to make it recognized by Rank math:

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

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.