OceanWP: Change Page Title on Homepage

OceanWP shows a page header that shows site description when you choose your homepage to display the latest posts. You can change that with the below code snippet:

add_filter( 'ocean_title', 'owp_child_page_title' );

function owp_child_page_title($title){
	if ( is_front_page() && ! is_singular( 'page' ) ) {
		return esc_html__('Home', 'oceanwp');
	return $title;

Leave a Reply

Your email address will not be published. Required fields are marked *