Support » Fixing WordPress » Display Page Title on all except Homepage!

  • Hi I hope somebody can help,

    I have a theme for 2.5.1 and everything’s working great. I don’t want the Page Title to appear on my set homepage. A simple If statement doesn’t seem to be working. The code that outputs the title is below:

    <h1><?php the_title(); ?></h1>

    I’ve tried putting if(the_title() == “Home”) {//do nothing} else {//display title}

    Can anybody assist? Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Page Title on all except Homepage!’ is closed to new replies.