Hello,
Thank you for your query, and we are so sorry about the trouble this must have caused.
First step : Do not activate Content analysis
https://gyazo.com/c28065a0a745a12e65ab0430a51e1d30
The box appears on post edit.
https://gyazo.com/0b0a6f055e94e1bc89e22e228408c222
As per your screenshots above, this module is for the purpose of enabling/diabling SEO Analyzer and not Content Analysis.
This is the reason why Content Analysis remains appearing even when you disable SEO Analyzer.
However you can check that if you disable SEO Analyzer from there the SEO Analyzer option disappears from the Rank Math Menu.
Second step : use the filters as defined here https://rankmath.com/kb/disable-seo-content-tests/
Nothing changes
Please make sure you are using all the codes combined like the given example here to disable all the tests.
An example of the combined code is given here “Disable Multiple Tests” :
https://rankmath.com/kb/disable-seo-content-tests/#multiple-tests
In the same way I have merged the code to disable all the 24 tests as given in that code reference.
Please use the below code :
/**
* Filter to disable multiple SEO Contest tests
*/
add_filter('rank_math/researches/tests', function ($tests, $type) {
unset(
$tests['titleHasNumber'],
$tests['contentHasTOC'],
$tests['contentHasShortParagraphs'],
$tests['contentHasAssets'],
$tests['keywordInTitle'],
$tests['keywordInMetaDescription'],
$tests['keywordInPermalink'],
$tests['keywordIn10Percent'],
$tests['keywordInContent'],
$tests['keywordInSubheadings'],
$tests['keywordInImageAlt'],
$tests['keywordDensity'],
$tests['keywordNotUsed'],
$tests['lengthContent'],
$tests['lengthPermalink'],
$tests['linksHasInternal'],
$tests['linksHasExternals'],
$tests['linksNotAllExternals'],
$tests['titleStartWithKeyword'],
$tests['titleSentiment'],
$tests['titleHasPowerWords'],
$tests['hasContentAI'],
$tests['isReviewEnabled'],
$tests['hasProductSchema']
);
return $tests;
}, 10, 2);
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
However please understand that using this code to disable the test does not hide the Content Analysis section. It just displays green checks “All Good” for the tests like below in the post editor page.
Third step : activate the content analysis
The tests looked like they are “ok”, but I still have the Focus keyword and I do not want any of this information
https://gyazo.com/a29e3954b512957ac4eb78e694a5bc40
Once again it has nothing to do with SEO Analyzer Module as this is Part of Content Analysis. Like I said in the above a lines that it will show “All Good” because of the code but still remain to show the Content Analysis Section and not hide it completely.
Fourth step : ask your support
and use the hook they gave me :
add_filter(‘rank_math/snippet/rich_snippet_article_entity’, function( $entity ) {
unset( $entity[‘keywords’] );
return $entity;
});
Nothing changes
The hook is to unset and remove Schema Data from Posts so it will not have any effect on the Content Analysis section of the Post Editor Page.
Fifth step : try through the role manager
Unchecking “page analysis” hides totally the tests, but I still have the focus keyword
https://gyazo.com/67c4fa97d05b21c9330acb0e0e60f32f
Yes its true that if you disable the “On-Page Analysis from Role Manager it will hide the tests but the remaining section will remain there. This is the intended behaviour of that Role Manager feature.
So is there anyway to remove it without using bad css workarounds (like “hidden”) ?
(I want to get rid of the Focus Keyword, the suggestion to use the pro version and the corner content checkbox)
Here you go, please add the below php filter/hook code to your site:
function hide_specific_divs_in_editor() {
$screen = get_current_screen();
if ($screen->base == 'post') { // This targets the post editor. Change to 'page' for the page editor.
echo '<style>
.rank-math-focus-keyword {
display: none !important;
}
</style>';
}
}
add_action('admin_head', 'hide_specific_divs_in_editor');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
The above code will do the needful and it will look like this :
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.