Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
This test usually checks for presence of a ToC plugin on your site before checking it’s usage on your post. This test will automatically pass if you are using the ToC plugins listed here: https://rankmath.com/kb/score-100-in-tests/#table-of-contents
In your case, since you are adding this manually, you will have to disable this test by adding the following filter to your theme functions.php file”
/**
* 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 );
But please stay advised that these tests are just guidelines and one does not need to follow them religiously.
At the end of the day, the content needs to be written for the readers and not for the search engines.
Scoring higher points in Rank Math’s tests won’t guarantee higher rankings.
Hope that helps.
Alright. But why can’t you now also account for the presence of a Summary block on the page?
Hello,
We are aware of this shortcoming, but unfortunately, there is currently no way of detecting the custom table of content inside the post’s content. Detecting a preset plugin in the list below is the only way to pass this test:
https://rankmath.com/kb/score-100-in-tests/#table-of-contents
Please note that these tests are only there for your reference to help you optimise your pages/post content. If you feel any of them doesn’t apply to your page, please feel free to ignore them.
I hope that helps. Thank you, and please don’t hesitate to contact us if you need further assistance.
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.