prevent RM to generate meta descriptions

#368361
  • Resolved Roger Marquez
    Rank Math free

    I think the title is pretty self-explanatory.

    I would like for RM to NOT auto-generated meta descriptions for any of the pages or posts on the site.

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

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

    You can use this filter to disable Rank Math’s meta description on all of your posts/pages:

    add_filter( 'rank_math/frontend/description','__return_false');

    The filter should be added to your active theme’s functions.php file. Here’s another way to apply the filter using the rankmath.php file:
    https://rankmath.com/kb/filters-hooks-api-developer/#adding-filters-and-hooks-in-rank-math-php

    Please note that the filter runs when a page is opened/loaded in the browser. You can view the page’s source code or use https://heymeta.com to verify the changes.

    I hope that helps.

    Thank you.

    Thanks a lot for the in-depth response!

    Now, I would also want to prevent RankMath from automatically generating SEO page titles.

    Prabhat
    Rank Math agency

    Hello,

    You can add this filter to the website to disable Rank Math’s title tag:
    add_filter( 'rank_math/frontend/title','__return_false');

    However, even after disabling the title tags of Rank Math, you might see a title tag, but that would be coming from the default theme/settings of the website.

    Hope this helps.

    Thank you.

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

You must be logged in to reply to this ticket.