badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Double title tag in the home page

#59990
Alberto
Participant

I solved it so, in the file functions.php child I put this code that reverses the sequence: now it shows the motto and then the title of the blog, this is important for SEO

add_filter( 'pre_get_document_title', function( $title ) {

    if ( is_home() || is_front_page() ) {

        $title = get_bloginfo( 'description' ) .' | '.get_bloginfo( 'name' );
    }
     return $title;
}
);