1. Home
  2. Knowledge Base
  3. SEO Suite
  4. How to Show Keywords Meta Tag on a Website

How to Show Keywords Meta Tag on a Website

The keywords meta tag is one of the different meta tags available to add to your page’s HTML source code. The content attribute of this meta tag includes the keywords your page is targeting, and if your page targets multiple keywords, they are separated by a comma. It goes by the example,

<meta name="keywords" content="keyword1, keyword2" />

Rank Math, by default, does not include keywords meta tag on your website. But, if you wish to add them, you can follow the exact steps shown in this knowledgebase tutorial to include them on your website using Rank Math.

Why Doesn’t Rank Math Include the Keywords Meta Tag?

Google has dropped its support for keywords meta tag long back as websites overkilled its usage to manipulate search engines and drive more organic traffic. What it means is that Google does not consider the keywords meta tag as a web page ranking signal, and their usage will not influence your search engine rankings.

Since meta keywords are not used by search engines anymore, and it doesn’t hold any value in your organic rankings, Rank Math by default does not include the keywords meta tag. Although Rank Math asks you to enter the focus keyword for each post, they are only for running analysis on your content.

With that said, if you wish to include the keywords meta tag for any reason, you can always use our filter to include the keywords meta tag to your website.

Include Keywords Meta Tag Using Filter

To allow Rank Math to display the keywords meta tag on your website, you’ll need to use the following filter to your theme’s functions.php or rank-math.php file. We’d suggest using the rank-math.php file for a wide range of reasons.

If you haven’t already created a rank-math.php file, you can follow this tutorial to create the rank-math.php file using FTP or cPanel File Manager in the path /wp-content/themes/theme-name/rank-math.php.

Once you’ve created the rank-math.php file, navigate to Appearance > Theme File Editor (for Classic Theme) or Tools > Theme File Editor (for Block Theme) inside your WordPress admin area.

Theme File Editor under Appearance section

From the list of files being shown on the right side of the screen, choose rank-math.php and add the following code snippet to the code editor.

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

Click the Update File button for the changes to reflect.

Adding filter to display keyword meta tag

Now, you can check the source code of your posts to see if the meta tag has been added as shown below.

keywords meta tag added by Rank Math

Note: Although Rank Math lets you add any number of keywords to your post, adding too many keywords to the keywords meta tag can do more harm than good. Hence we’d recommend using this meta tag cautiously.

And, that’s it! If you have absolutely any questions on using Rank Math, feel free to reach our support team, as we’re always here to help.

Was this article helpful?

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?


Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles