• 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)
  • The topic ‘Disable Auto Meta Description in specific page’ is closed to new replies.