WordPress.org

Support

Support » How-To and Troubleshooting » Remove page titles

Remove page titles

  • I would like to take the page names (titles) off the pages themselves – specifically in the Twenty Ten theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I don’t know the twenty ten theme but I think it’s safe to say you need to delete (or maybe comment out) <?php the_title(); ?> from the template you want to remove the page names from. At a guess you are looking for a file called page.php if it is just the pages that you want to remove the title from.

    remove this:

    <?php if ( is_front_page() ) { ?>
    						<h2 class="entry-title"><?php the_title(); ?></h2>
    					<?php } else { ?>
    						<h1 class="entry-title"><?php the_title(); ?></h1>
    					<?php } ?>

    from page.php of the TwentyTen theme

    Thanks – exactly what I needed! – takes it off all pages, which is fine in this case. If there are times I only want it taken off the ‘home’ page, is there a way to do that?

    that would be:

    <?php if ( is_front_page() ) { ?>
    
    <?php } else { ?>
    	<h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } ?>

    thanks!!

    Deleting the code below from page.php of the twentyten theme does not eliminate the redundant page titles .. what am I doing wrong?
    thanks!

    <?php if ( is_front_page() ) { ?>

    <?php } else { ?>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <?php } ?>

    I have the opposite question – I’d like to remove the page titles of every page except the home page. Which lines should I leave intact or remove? Thanks so much for any help!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove page titles’ is closed to new replies.
Skip to toolbar