Support » Plugin: Slim SEO - Fast & Automated WordPress SEO Plugin » Disable Auto Meta Description in specific page

  • Resolved Tyke79

    (@tyke79)


    Hello,

    Is it possible to disable the automatic generation meta descriptions on specific products or pages?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @tyke79 ,

    For those pages, you can enter manual meta description in the SEO meta box. In case you want to disable the meta description completly, please use the following snippet:

    add_filter( 'slim_seo_meta_description', function( $description ) {
        if ( is_page( 123' ) || ( is_singular() && get_the_ID() === 123 ) ) {
            return '';
        }
        return $description;
    } );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.