issue

#868082
  • Resolved sandeep maheshwari
    Rank Math free

    <meta http-equiv="content-language" content="hi" />

    what is this and how to add in rank math

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

    We apologize for the issue you are facing. The “ tag is used to specify the language of the content on a webpage. In this case, it indicates that the content is in Hindi (language code "hi").

    Currently, Rank Math does not provide a direct option to add this specific meta tag through its settings. However, you can add it manually by inserting the code into your theme’s header.php file or using a custom function in your theme’s functions.php file. Here’s how you can do it:

    1. Edit your theme’s header.php file:

      • Go to your WordPress dashboard.
      • Navigate to Appearance > Theme Editor.
      • Open the header.php file.
      • Add the following line of code within the “ section:

      • Save the changes.
    2. Using a custom function in functions.php:

      • Go to Appearance > Theme Editor.
      • Open the functions.php file.
      • Add the following code snippet:
        add_action('wp_head', function() {
         echo '';
        });
      • Save the changes.

    Please ensure to back up your files before making any changes. If you have any further questions or need assistance, feel free to ask!

    Hello,

    To add that meta tag using Rank Math, please add this filter on your site:

    add_action( 'rank_math/head', function() {
      echo '<meta http-equiv="content-language" content="hi" />';
    }, 99 );

    And here’s how you can add a filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘issue’ is closed to new replies.