Select Page

Use this code to stop the title of the page such as ‘Home’ from being displayed as the H1 on the homepage.

<?php if (!is_page('Home')) { ?>
      <h1><?php the_title(); ?></h1>
<?php } ?>