-
Hello,
I have a very long page that is super slow to open in the WP editor. I believe it is related to the Rank Math Page Score feature.
Is there any way to disable this on a specific page? Or if not, possibly disable auto checking all together?
I got an AI response, but it looked like that would disable the other Rank Math thing from working.
Thanks!
Eric
-
Hello Eric,
I’m sorry to hear that you’re experiencing issues with the Rank Math Page Score feature. I understand that it’s causing your page to load slowly in the WP editor.
To disable the SEO score on a specific page, you can use the following code snippet in your theme’s functions.php file or rank-math.php file:
function rankmath_disable_features() { global $post; if ( $post->ID == 'YOUR_PAGE_ID' ) { remove_all_actions( 'rank_math/head' ); } } add_action( 'wp_head', 'rankmath_disable_features', 1 );
Replace
YOUR_PAGE_ID
with the actual ID of the page where you want to disable the SEO score. After adding this code, remember to click the Update File button to save the changes.If you want to disable auto-checking altogether, you can use the available filters to disable specific Rank Math tests. You can find more information about this in this knowledgebase article.
I hope this helps! If you have any further questions or need assistance with anything else, feel free to ask.
Best regards.
Sources:
How to Disable All Rank Math Generated SEO Tags » Rank Math
How to Hide SEO Score From the Frontend » Rank Math
How to Use the Role Manager Feature of Rank Math SEO Plugin
How to Disable Rank Math SEO Content Tests » Rank MathDoes this answer just remove the scoring from that page, or does it also remove all Rank Math SEO tags from the page too?
Hello,
Thank you for contacting Rank Math support and we apologize for the inconvenience.
The code the bot shared is not correct for your use case. But generally, increasing your site’s memory should work fine, you can reach out to your host and have the increase the following:
PHP Memory Limit: 512M Max input time: 150 PHP time limit: 120 PHP max input variables: 1000
However, if you still want to disable the tests, you can use this code:
/** * Filter to disable multiple SEO Contest tests */ add_filter('rank_math/researches/tests', function ($tests, $type) { // Get the current post object global $post; // Check if the current post ID is 123 if ( $post->ID == 123 ) { // Disable the tests unset( $tests['titleHasNumber'], $tests['contentHasTOC'], $tests['titleSentiment'], $tests['titleHasPowerWords'] ); } // Return the modified tests array return $tests; }, 10, 2);
This code would disable only the following tests:
$tests['titleHasNumber'], $tests['contentHasTOC'], $tests['titleSentiment'], $tests['titleHasPowerWords']
To disable more (or all) tests, you can find all the tests here: https://rankmath.com/kb/disable-seo-content-tests/. To disable the tests for multiple post IDs you can use an array of post IDs instead, like this:
/** * Filter to disable multiple SEO Contest tests */ add_filter('rank_math/researches/tests', function ($tests, $type) { // Get the current post object global $post; // Define an array of post IDs $post_ids = array( 123, 456, 789 ); // Check if the current post ID is in the array if ( in_array( $post->ID, $post_ids ) ) { // Disable the tests unset( $tests['titleHasNumber'], $tests['contentHasTOC'], $tests['titleSentiment'], $tests['titleHasPowerWords'] ); } // Return the modified tests array return $tests; }, 10, 2);
We hope this helps you resolve the issue. If you have any other questions or concerns regarding Rank Math, please feel free to contact us again. We are always happy to help.
Thank you for choosing Rank Math!
Thank you so much Great! Super helpful!
Hello,
We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
The ticket ‘Disable SEO Scoring’ is closed to new replies.