Snippets: Alter Main Page Title

// Example showing how to alter the page title, adjust accordingly to match your needs
function my_alter_page_header_title( $title ) {
 
    // Change the products title to their actual title
    if ( function_exists( 'is_product' ) && is_product() ) {
        $title = get_the_title();
    }
 
    // Return the title
    return $title;
    
}
add_filter( 'wpex_title', 'my_alter_page_header_title', 20 );
All PHP snippets should be added via a child theme's functions.php file.