skip to Main Content

Disable Page Header for Blog Posts

unction myprefix_disable_post_page_header( $return ) {
    if ( is_singular( 'post' ) ) {
        $return = false;
    }
    return $return;
}
add_filter( 'wpex_display_page_header', 'myprefix_disable_post_page_header' );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)
Back To Top