• Resolved ricdam

    (@ricdam)


    Hi there,

    Under Customise > Blog > Single Post > Page Head Title, there are two options: “Blog” and “Post title”.

    I would like the title to be my blog’s name, but that’s not an option as there are only the two options above. I tried to change it manually through the Editor but couldn’t find it.

    Is anyone able to advise where can I change the Blog Page Title to be my blog’s name?

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, try this code in the functions.php file of your child theme:

    function my_alter_page_header_title( $title ) {
     
        // Change the posts title to their actual title
        if ( is_singular( 'post') ) {
            $title = 'Your Blog Name';
        }
     
        // Return the title
        return $title;
        
    }
    add_filter( 'ocean_title', 'my_alter_page_header_title', 20 );
    Thread Starter ricdam

    (@ricdam)

    Thanks @oceanwp

    Is it possible to have the blog name not only in posts, but also categories and tags?

    For example, currently if I click in one of my Categories, the categorie name will be the title.

    Thanks,

    Theme Author oceanwp

    (@oceanwp)

    Try this:

    function my_alter_page_header_title( $title ) {
     
        // Change the posts title to their actual title
        if ( is_singular( 'post') || is_category() || is_tag() ) {
            $title = 'Your Blog Name';
        }
     
        // Return the title
        return $title;
        
    }
    add_filter( 'ocean_title', 'my_alter_page_header_title', 20 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Blog title’ is closed to new replies.