Snippets: 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;
} );

Snippet Type: PHP

Posted Under: Top Bar

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