Disable Automatic Meta Descriptions by RankMath

#935951
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting us and bringing your concern to our attention.

    If you want to remove the meta description tag completely from your website, you can use the following filter on your website:

    add_filter( 'rank_math/frontend/description', function( $description ) {
    	return false;
    });
    

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

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Andy
    Rank Math free

    Hi Rakibuzzaman,

    Thank you for your response and the filter to remove the meta description tag.

    To clarify, I don’t want to remove the tag itself, but rather, I want to prevent RankMath from generating a meta description when the field is blank. Is there a way to ensure that no description is added automatically unless explicitly defined?

    Looking forward to your advice!

    Best regards,

    Andy

    Hello,

    When you leave the meta description field blank in the Rank Math SEO Meta box, it will automatically use the description you’ve set in Rank Math > Titles & Meta > Posts/Pages.

    Since meta description is an important factor for SEO, you can’t leave the field blank in the Titles & Meta settings.

    However, there is a trick you can use like using a variable in Titles & Meta > Posts/Pages > Single Post Description which will not return any value:

    In such a case, when you leave the meta description field blank in the Rank Math SEO Meta box, it will not be able to use the default settings to generate any meta description.

    But it will be applied to all of your posts/pages. If you want to use any custom meta description, you’ll have to edit the SEO Meta box every time.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Andy
    Rank Math free

    Hi Rakibuzzaman,

    The %search_query% solution worked—thanks for that! However, I’d like to point out that leaving the meta description field blank can be beneficial. When left blank, Google dynamically generates descriptions based on the searcher’s query and the page content, often resulting in a higher CTR. Here’s an interesting case study on the topic: https://www.searchpilot.com/resources/case-studies/removing-meta-descriptions.

    Best regards,

    Andy

    Hello,

    We are glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Disable Automatic Meta Descriptions by RankMath’ is closed to new replies.