Disable Auto Meta Description

#9104
  • Resolved Hamza Sheikh
    Rank Math free

    Is it possible to disable the auto meta description generation or being used in the head?

    I am unable to find any option to achieve that.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    If you would like to disable the meta description on the frontend for your posts, you can add the following code to your theme’s functions.php file:

    /**
     * Allow changing the meta description sentence from within the theme.
     *
     * @param string $description The description sentence.
     */
    add_filter( 'rank_math/frontend/description', function( $description ) {
    	return false;
    });

    You can also customize this further to check the current page/post and return false for that post type.

    I hope this info helps. Thank you.

    ​​​​​​

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

The ticket ‘Disable Auto Meta Description’ is closed to new replies.