WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello attempting to remove the title from static front page using the following code is (not working) in my functions.php

    function remove_page_title() { if (is_front_page() )
      add_filter( 'the_title', '__return_false' );

IS there something missing? Thanks in advance

PS I know I can hard code it in to my page template with

<?php if(!is_front_page()) { ?><h2><?php the_title(); ?></h2><?php } ?>

but I'd rather not change the template

share|improve this question

How about hiding the title with CSS?

.entry-title {
  display: none;
share|improve this answer
a good fallback solution thank you but am really after a php solution to learn. Thanks again though – James Dec 16 '11 at 21:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.