skip to Main Content

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 WPCode)
Back To Top