Keywords are not output in the page code

#80116
  • Resolved Comfur OOO
    Rank Math free

    When writing texts for a page, I fill in all the SEO fields: title, description, and keywords. Title and description are output in the page code, but keywords are not. WordPress 5.5–ru_RU, Elementor PRO. Help me customize the output of keywords!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Davis
    Rank Math pro

    Hello,

    Thanks for getting in touch with us. That is a good question and we get it all the time.

    Google does not honor Meta Keywords for quite a long now so we never added them to the plugin. You can read more about that here:
    https://webmasters.googleblog.com/2009/09/google-does-not-use-keywords-meta-tag.html

    The focus keywords we have in our pages are to do the SEO tests in the content you have in those pages but not added in the content.

    If you still wish to have the keyword(s) meta tag, you can use the following filter:

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

    Hope that helps. If you have any further question(s), please let us know. Thank you.

    Comfur OOO
    Rank Math free

    Where do I insert this code?

    Michael Davis
    Rank Math pro

    Hello,

    You should add the code to your theme functions.php

    On the issue with your set meta, please check if your title/description is properly set up in the page source: https://i.rankmath.com/HwXR1o . You can use this tool for the same as well: https://www.heymeta.com/

    If it matches your settings, then you must check if Google has seen the changes already or not. For that, please check when the Google cache was updated for that page:
    a.

    b.

    If the cache date is from before adding the new meta description, then you just have to wait for Google to re-crawl and re-index the page with the new info. If the date is after you made the changes,
    ​
    ​Do note that if everything’s fine and Google still decides to show a different meta title/description for your search keyword, there is nothing you can do as Google sometimes ignores the custom meta info altogether and show something from the page’s content that matches the search intent better.

    The best you can do is optimize your meta tags to try and match the intent of the search/keyword.

    You can read more about it here

    https://support.google.com/webmasters/answer/35624?hl=en

    This section sheds light on that:

    Why the search result title might differ from the page's <title> tag

    Hope that helps. If you have any further question(s), please let us know.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Keywords are not output in the page code’ is closed to new replies.