Popular Categories

How to disable Yoast Meta Description?

Sometimes you might not want to use Yoast SEO meta tag(s), especially in case if the plugin generates a wrong one. You can do it by customizing Yoast plugin filter hooks, filter hooks available for almost all meta tags, thanks to Yoast for available hooks.

For example, if we want to disable the meta description tag from about page. We can do this by simply using the filter hook as shown by the snippet below:

function remove_yoast_meta_desc_specific_page ( $myfilter ) {
    if ( is_page ( 'about' ) ) {
        return false;
    return $myfilter;
add_filter( 'wpseo_metadesc', 'remove_yoast_meta_desc_specific_page' );

Note: Just copy the above snippet code and place it at the end of function.php

Do note, you can use a similar approach to disable multiple meta tags from the same page as well. Below is the snippet of code to achieve it:

function remove_yoast_meta_desc_specific_page ( $myfilter ) {
    if ( is_page ( 'about' ) ) {
        return false;
    return $myfilter;
add_filter( 'wpseo_canonical', 'remove_yoast_meta_tags_from_about_page' );
add_filter( 'wpseo_metadesc', 'remove_yoast_meta_tags_from_about_page' );

Here is the list of available tags and their respective filters which can be used to remove them.

wpseo_title: <title>#</title>**
wpseo_robots: <meta name=”robots” “#”=””>
wpseo_canonical: <link rel=”canonical” “#”=””>
wpseo_metadesc: <meta name=”description” “#”=””>
wpseo_metakeywords: <meta name=”keywords” “#”=””>
wpseo_locale: <meta property=”og:locale” “#”=””>
wpseo_opengraph_title: <meta property=”og:title” “#”=””>
wpseo_opengraph_desc: <meta property=”og:description” “#”=””>
wpseo_opengraph_url: <meta property=”og:url” “#”=””>
wpseo_opengraph_type: <meta property=”og:type” “website”=””>
wpseo_opengraph_site_name: <meta property=”og:site_name” “#”=””>
wpseo_opengraph_admin: <meta property=”fb:admins” “#”=””>
wpseo_opengraph_author_facebook: <meta property=”article:author” “#”=””>
wpseo_opengraph_show_publish_date: <meta property=”article:published_time” “#”=””>
wpseo_twitter_title: <meta name=”twitter:title” “#”=””>
wpseo_twitter_description: <meta name=”twitter:description” “#”=””>
wpseo_twitter_card_type: <meta name=”twitter:card” “#”=””>
wpseo_twitter_site: <meta name=”twitter:site” “#”=””>
wpseo_twitter_image: <meta name=”twitter:image” “#”=””>
wpseo_twitter_creator_account: <meta name=”twitter:creator” “#”=””>
wpseo_json_ld_output: <script type=”application/ld+json”>#</script>

Was this helpful? Did I missed something? Do you have a question? Get in touch.