• Question from a newbie here. I’ve read a thread that shows how to stop the page title from displaying on the home page, by editing the page.php file with this:

    .home.entry-header {
    display: none;
    }

    I’ve tried it an made a mess, but fortunately copied the original code as a backup and am back where I started. Can someone help me with WHERE this code goes in the page.php file?

    Site is dev.aaronspurlock.com

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • This may vary by what theme you’re using, but testing with the default twentytwelve theme, I had to update content-page.php.

    I changed:

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

    to:

    <?php if ( !is_front_page() ) : ?>
        <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php endif; ?>

    If you don’t know what file to edit, install the What The File plugin and it should tell you exactly which template to edit. It may be under “Template Parts.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Keep page title from displaying on static home page’ is closed to new replies.