skip to Main Content

Conditionally Alter Topbar Content

add_filter( 'wpex_top_bar_content', function( $content ) {
	if ( is_page( 'about' ) ) {
		$content = 'Custom Content'; // Return custom content for the about page
	}
	return $content;
} );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)
Back To Top