Hide Page Title on the Front Page WordPress

<?php if ( is_front_page() ) { ?><?php } else { ?> <h2><?php the_title(); ?></h2> <?php } ?>
Replace this code with your title in 'content-single.php' to hide page title from static home page only.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.