Alter Blog Title Heading

This is a Developer Level doc.

If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

If you want to alter the "Blog" title on your single posts, category and tag archives, and replace it with your own title (for example, Insights), use the following PHP snippet:

// Alter Blog Title
function my_alter_page_header_title( $title ) {

// Change the posts title to their actual title
if ( is_singular( 'post') || is_category() || is_tag() ) {
$title = 'My Blog Title';
}

// Return the title
return $title;

}
add_filter( 'ocean_title', 'my_alter_page_header_title', 20 );

Alter My Blog Title per your need.

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.