Snippets: Override the Page Header Title with a Custom Template

You can use the wpex_{location}_template_id filter to override any theme location Below is an example showing how you could override the page_header location with your custom template ID.

// Override the page header with a custom template.
add_filter( 'wpex_page_header_template_id', function( $id ) {
} );

// Remove page header section from the customizer to prevent confusion.
add_filter( 'wpex_customizer_sections', function( $sections ) {
    unset( $sections['wpex_page_header'] );
    return $sections;
} );

Version Required:5.1.1+

Snippet Type: PHP

Posted Under: Page Title

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)