Remove “Home” label only on homepage of WordPress theme

This is code to remove the “Home” label at the top of the page (typically just below the navigation menu) only on the homepage but leaving the page names on all of the other pages.

Find the file in your theme that calls the entry header. For the Twenty-Twelve theme, this will be in your content-page.php. (I also recommend creating a child theme instead of editing the existing Twenty-Twelve theme but we’ll save that for another time and focus on the code snippet for now.)

Replace:

<header class="entry-header">
	<h1 class="entry-title"><?php the_title(); ?></h1>
</header>

 

With:

<!--conditional use header - no home on homepage-->
	<?php if( ! is_front_page() ) :?>
		<header class="entry-header">
			<h1 class="entry-title"><?php the_title(); ?></h1>
		</header>
	<?php endif; ?>
<!--conditional use header - no home on homepage-->