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

#129867
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: https://rankmath.com/compatibility/

    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: https://support.rankmath.com/ticket/table-of-content-toc-problem/?view=all

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

    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 Contents – How to make RankMath notice the TOC?’ is closed to new replies.