• Resolved principioattivo

    (@principioattivo)


    Hi,
    is it possible to completely remove the meta title and meta description from a post or page?
    If I delete them, SEO Framework takes them from the title of the page (or article).

    For an SEO test I would need to leave them completely blank, without turning off the plugin because I need Opengraph and other functions.

    THANK YOU

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    The snippet below will work, but it is for testing purposes only and shouldn’t be used on any site in production.

    Just change 69 to the number of your post ID you wish to test this with:

    function my_remove_title_and_desc_output() {
    	if ( 69 === get_the_id() ) {
    		remove_action( 'wp_head', '_wp_render_title_tag', 1 );
    		add_filter( 'the_seo_framework_description_output', '__return_empty_string' );
    	}
    }
    add_action( 'wp_head', 'my_remove_title_and_desc_output', 0 );

    Please note that filter the_seo_framework_description_output will be deprecated in the next major release and exchanged with the new the_seo_framework_meta_render_data filter.

    (Where do I place filters?)

    Thread Starter principioattivo

    (@principioattivo)

    THANKS!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove title’ is closed to new replies.