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;
}

RajeebTheGreat

Startups Enthusiast. Loves to code (PHP, JS). Occasional Blogger, wannabe Entrepreneur & Amateur Philosopher

Leave a Reply

Close Menu