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

    (@rilwis)

    Hi @dgreene423 ,

    Please use this snippet, which is similar to the one in the docs:

    add_filter( 'document_title_parts', function( $parts ) {
        return is_front_page() ? $parts : array_filter( [
            'title' => $parts['title'],
            'page'  => $parts['page'] ?? '',
            'site'  => '',
        ] );
    } );
    
    // For preview in the admin.
    add_filter( 'slim_seo_title_parts', function( $parts, $type ) {
        return $type === 'home' ? $parts : [ 'title' ];
    }, 10, 2 );
    Thread Starter Dan Greene

    (@dgreene423)

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing Site Title from auto meta title’ is closed to new replies.