How to add custom Meta Tags in Rank Math?

#721882
Viewing 1 replies (of 1 total)
  • Hello, I’m sorry to hear about the issue you’re facing with the wrong logo being displayed in Google search results. To add custom meta tags in Rank Math, you can follow these steps:

    1. Install and activate the Rank Math plugin on your WordPress site. If you haven’t installed it yet, you can find step-by-step instructions in the Rank Math setup guide.

    2. Once Rank Math is activated, you can include the custom meta tags by using a filter in your theme’s functions.php or rank-math.php file.

    3. Open your theme’s functions.php or rank-math.php file and add the necessary code snippet for the custom meta tag you want to include.

    For example, to add the “ tag, you can use the following code snippet:

    /**
     * Add custom meta tag for thumbnail.
     */
    add_filter( 'rank_math/frontend/show_thumbnail', '__return_true');
    1. Save the changes to your file.

    By adding this filter, Rank Math will display the custom meta tag on your website.

    If you have any further questions or need assistance, feel free to ask.

    I hope this helps!

    Sources:
    How to Setup Rank Math SEO Plugin Properly
    How to Verify Your Site Using Custom HTML Meta Tags » Rank Math
    General Tab in Meta Box of Rank Math SEO Plugin
    Open Graph Meta Tags » Rank Math

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.