Wordpress - change post title in page header

Asked

Viewed 394 times

0

1 answer

1

You can use the "wp_title" filter. In your functions.php file you can insert something like:

function trocar_titulo($title){
    if(is_single()){
        return "Notícias";
    }
    return $title;
}
add_filter( 'wp_title', 'trocar_titulo', 10, 2 );

Ref: https://developer.wordpress.org/reference/hooks/wp_title/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.