How to Add Keywords In WordPress Using RankMath Plugin

When using the RankMath plugin for your SEO, you can add focus keywords, but those keywords will not appear on the source code, meaning search engines will not detect them. RankMath follows Google’s statement that they will no longer use meta keywords because of abuse, so they didn’t show it by default.

However, if you believe that showing meta keywords in the post is still useful, you can add the following command on the rank-math.php file.

/**
 * Add <meta name="keywords" content="focus keywords">.
 */
add_filter( 'rank_math/frontend/show_keywords', '__return_true');

Follow these steps:

1. Open the plugin file editor

add keywords1

2. Select Rank Math SEO

add keywords2

3. At the bottom of the file add the command above.

add keywords3

Check the source code of the post, now you should see the meta keywords as below.

add keywords4

Pro tips:

You better create a child theme and copy the file rank-math.php under the child’s theme folder. This is to avoid losing the setting above when you update the Rank Math plugin.

Share Article:

A passionate writer and blogger with a knack for crafting compelling narratives that inspire and connect. His love for marketing and technology shines through in his work, as he seamlessly blends innovation and creativity into every project. Thomas thrives on building meaningful relationships, fostering harmony, and sparking engaging discussions that leave a lasting impact. A dynamic storyteller at heart, he finds joy in discovering new ideas and sharing them with enthusiasm, creating content that bridges the gap between people, ideas, and technology.

Leave a Reply

Your email address will not be published. Required fields are marked *

Edit Template

© 2024