WordPress.org

Ready to get started?Download WordPress

Forums

Remove page titles (8 posts)

  1. adi339
    Member
    Posted 3 years ago #

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

  2. nathan12343
    Member
    Posted 3 years ago #

    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.

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    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

  4. adi339
    Member
    Posted 3 years ago #

    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?

  5. nathan12343
    Member
    Posted 3 years ago #

    that would be:

    <?php if ( is_front_page() ) { ?>
    
    <?php } else { ?>
    	<h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } ?>
  6. adi339
    Member
    Posted 3 years ago #

    thanks!!

  7. macdicker
    Member
    Posted 3 years ago #

    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 } ?>

  8. daoustam
    Member
    Posted 3 years ago #

    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!!

Topic Closed

This topic has been closed to new replies.

About this Topic