Hello,
I’m sorry to hear that you’re facing issues with the Table of Contents showing up on multiple pages, including your homepage. To disable the Table of Contents globally, you can add a code snippet to your theme’s functions.php file or the rank-math.php file. Here’s the code snippet you can use:
/**
* Filter to disable the table of contents test
*/
add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
unset(
$tests['contentHasTOC'],
);
return $tests;
}, 10, 2 );
Once you’ve added this code snippet, Rank Math will completely ignore the test for Table of Contents while analyzing your content.
If you need further assistance, please feel free to open a support ticket directly from here, and we’re always here to help.
Thank you for reaching out!
Sources:
Why Isn’t Rank Math Detecting the Table of Contents? » Rank Math
How to Add Rank Math’s Table of Contents Block » Rank Math
Rank Math General Settings
Score 100/100 With Rank Math Post Tests » Rank Math
I was able to turn it off in Elementor’s settings for single posts templates.
Hello,
We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.