Skip to content

Snippet: Conditionally Disable Main Page Header Title

add_filter( 'totaltheme/page/header/is_enabled', function( $return ) {
    if ( is_singular( 'product' ) ) {
        $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)
Back To Top