Remove Meta tag description

#187424
  • Resolved Ross
    Rank Math free

    Hello,

    I want to remove the meta description of all my site. I want to let google show it.
    I used to do it in yoast, there is a function to disable meta description. Do you have something similar?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math.

    To remove the meta description set by Rank Math, please add this code to the theme’s function.php.

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

    I hope this helps. Looking forward to helping you.

    Ross
    Rank Math free

    Thank you for answering so fast!

    Brian
    Rank Math free

    Hello,

    Glad that helped.

    Meanwhile, if you have any other query, please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘Remove Meta tag description’ is closed to new replies.