title: PHP - different header text on homepage and interior pages
body: <p>I need to make the pagetitle in the header of the homepage different from that of the interior pages. It seems like a simple php fix but it is over my head. This seemed to be the solution but implementing it gave an error code : <a href="https://stackoverflow.com/questions/9523140/php-if-url-equals-this-then-perform-action">PHP if URL equals this then perform action</a></p>
  
  <p>This is the code I have: </p>
  
  <pre><code>&lt;?php
  /**
   * The Header for our theme.
   */
  ?&gt;&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
      &lt;link href='http://fonts.googleapis.com/css?family=GFS+Didot'
            rel='stylesheet' type='text/css'&gt;
      &lt;title&gt;&lt;?php wp_title('|', true, 'right'); ?&gt;&lt;/title&gt;
      &lt;?php wp_head(); ?&gt;
  &lt;/head&gt;
  
  &lt;body &lt;?php body_class(); ?&gt;&gt;
  &lt;div&gt;
      &lt;header class="pagetitle"&gt;
          &lt;h1&gt;
              &lt;a href="&lt;?php echo esc_url(home_url('/')); ?&gt;"&gt;
                  &lt;?php bloginfo('name'); ?&gt;
              &lt;/a&gt;
          &lt;/h1&gt;
          &lt;nav&gt;
              &lt;?php wp_nav_menu(array('theme_location' =&gt; 'primary')); ?&gt;
          &lt;/nav&gt;
      &lt;/header&gt;
  </code></pre>
  
  <p>Can someone tell me the if/else statement that will give me one  on the homepage and a different on all other pages? </p>