MGA
MGA

Reputation: 1668

Customizing a WordPress Template to Remove *One* Page Title

I'm using WordPress to build a simple personal website. I know (basic) HTML and CSS but no PHP, so I'm having a little trouble with a particular customization.

My theme inserts the title of the page at the top of the page. I would like to stop it from doing this on one page only (the home page).

enter image description here

Thanks for any help. The site is here: http://www.melvingauci.com/

Upvotes: 0

Views: 78

Answers (1)

henrywright
henrywright

Reputation: 10240

Try going into your page.php template and remove <?php the_title(); ?>. Then add this:

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

Note: This assumes your home page uses the page.php template. If another template is used, then the same approach will work.

Upvotes: 1

Related Questions