Snippet: Disable Page Header for Blog Posts
Important: You can now do this via Appearance > Customize > General Theme Settings > Blog > Single Post > Page Header Title
add_filter( 'totaltheme/page/header/is_enabled', function( $return ) {
if ( is_singular( 'post' ) ) {
$return = false;
}
return $return;
} );
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)
We recommend Code Snippets (100% Free) or WPCode (sponsored)