Skip to content

Snippet: Disable The “Page Header” For Portfolio Items

// Disable The "Page Header" For Portfolio Items
add_filter( 'totaltheme/page/header/is_enabled', function( $return ) {
	if ( is_singular( 'portfolio' ) ) {
		return false;
	}
	return $return;
}, 20 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top