Question about keywords

  • I have set the keywords and details on the website through your plugin, but I have not found the meta keyword on the source code through the browser.Maybe this problem may be caused by me, but I don’t know if it is set up successfully. Can you check it for me? (Only check the home page.)
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math today.

    Rank Math does not add the keyword meta by default, you can however modify this behavior by adding the following code to your theme’s functions.php file:

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

    Looking forward to helping you. Thank you.

    ​​​​​​

    Is there any other way? I don’t want to modify the theme file because my theme file will have an official update.

    Hi Aiden,

    Thanks for the question.

    This is the recommended method to modify the plugin logic.
    I can suggest that you create a child theme and enter this code to ensure that future theme updates do not affect your custom code.

    I hope this info helps. Thank you.

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

You must be logged in to reply to this ticket.