-
Hi,
I’ve searched everywhere for a way to disable or hide the focus keyword option. Your docs and your articles don;t seem to mention it.
https://rankmath.com/?q=disable+focus+keyword&ht-kb-search=1&lang=#gsc.tab=0&gsc.q=disable%20focus%20keyword&gsc.page=1
How do I make it go away?
Thanks!
Kerry
-
Hello,
We apologize for the issue you are facing regarding the focus keyword option. Unfortunately, the context provided does not include specific instructions on how to disable or hide the focus keyword feature in Rank Math.
We recommend replying to your ticket, and a human agent from the Rank Math Support team will be able to assist you further with this request. Thank you for raising this concern!
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hi
Hello,
To remove/disable the focus keyword section, you may need to use this filter on 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/Hope that helps.
Thanks Reinelle. It’s surprising that with RankMath’s 100+ settings options there is none to disable the focus keyword, which can be a bit distracting (and untrustworthy). The code you gave me…is it PHP? I can add it as a snippet.
Hello,
The focus keyword field is vital as it is used to analyze your content.
Its major purpose is to create content around it and get it ranked in Google or Bing for that keyword.
However, yes, you should add it as a PHP snippet on your site.
Looking forward to helping you.
Hi Reinelle. It is vital only if it works well and its results are trustworthy. I’ve used it for years and concluded it is not. Reducing the focus keyword to a single word usually shoots the score up, but I know that the reality is otherwise. The power should be in the user’s hands and should not require a search for how to disable it, nor a ticket, nor code. I will add the PHP, as much as I’d prefer to not have to.
Thanks for helping, and please forward my message to the developers.
Hello,
We appreciate your feedback and will share this with our developers.
We’re just following up to know if you have any other concerns that we can assist you with. If your issue has been resolved, please let us know so we can mark this ticket as closed.
Don’t hesitate to get in touch if you require any further assistance.
Thank you!
The code works for hiding the focus keyword creation area but it fails to hide the score:
Can you suggest a code snippet that does both?
Thanks!Hello,
Can you please confirm if you want to completely remove the Rank Math SEO Meta box from your editor? If so, you can disable the Add SEO Controls option from WordPress Dashboard > Rank Math > Titles & Meta > [Post Type]:
However, if you only want to remove the score, you can add the following part in the filter code:
.score-text { display: none !important; }
Hope that helps and please don’t hesitate to let us know if you have any other questions.
Thank you.Hi Rakibuzzaman.
The PHP code as is succeeds in getting rid of the focus keyword area from the Rank Math right sidebar. That’s good.Next, I want to improve this large SEO box at the top right that says 16/100:
Without a focus keyword it will always display red and show a low number…distracting.
As such, I would like to make it just say RankMath or SEO or something other than the score. Or really, even better would be to make it disappear entirely, as I can access the RankMath SEO title and description settings by clicking the three dots at the top right of the post/page and choosing RankMath.
The problem is that when one disables Add SEO Controls from WordPress Dashboard > Rank Math > Titles & Meta > [Post Type], it not only gets rid of the big 16/100 button, it also gets rid of the controls altogether:
So my request is now how to get rid of the big 16/100 button while retaining the RankMath option in the dropdown of the three dots at the top right of posts/pages.
Thank you!
KerryHello,
Please add this styling to your existing filter code:
button[aria-controls="rank-math:seo-by-rank-math-sidebar"]{ display: none !important; }
Let us know how that goes. Looking forward to helping you.
Hi,
I added the following code but it completely removed Rank Math as an option in the sidebar
function hide_rank_math_elements_in_editor() {
$screen = get_current_screen();
if ($screen && $screen->base === ‘post’) { // Targets the post editor. Change ‘post’ to ‘page’ if needed.
echo ‘<style>
.rank-math-focus-keyword,
button[aria-controls=”rank-math:seo-by-rank-math-sidebar”] {
display: none !important;
}
</style>’;
}
}
add_action(‘admin_head’, ‘hide_rank_math_elements_in_editor’);I need RankMath accessible in that sidebar. What do you suggest?
Thank you!
You must be logged in to reply to this ticket.