
In order to achieve clear and reliable headlines, the “Page (No Sidebar)” template has been updated to hide the page title in the Home page, allowing the H1 to be added via the WordPress editor.
In addition, the page title is now rendered correctly in the Blog page and every other page that uses the “Page (No Sidebar)” template. This has been achieved via a conditional statement in the page_nosidebar.php theme file. The statement is made possible by using concatenation in the echo parameters to build the <h1> component.
The full conditional statement is below.
<?php if ( is_home() || is_front_page() ) : echo ''; else : echo '<h1>', apply_filters( 'the_title', get_post_field( 'post_title', $page_id ) ), '</h1>'; endif; ?>