title: Wordpress PHP: don't want menu on front page, trying 'if (!is_front_page())'
body: <p>My question is about how to use 'if' when I don't want to see header on front page? Or do you have any other solution?</p>
  
  <pre><code>   &lt;body &lt;?php body_class(); ?&gt;&gt;
      &lt;div id="page" class="site"&gt;
       &lt;a class="skip-link screen-reader-text" href="#content"&gt;&lt;?php esc_html_e( 'Skip to content', 'shapely' ); ?&gt;&lt;/a&gt;
     **&lt;?php if (!is_front_page()) : ?&gt;**
     &lt;header id="masthead" class="site-header" role="banner"&gt;
      &lt;div class="nav-container"&gt;
          &lt;nav id="site-navigation" class="main-navigation" role="navigation"&gt;
      //lines of code
          &lt;/nav&gt;&lt;!-- #site-navigation --&gt;
      &lt;/div&gt;
      &lt;/header&gt;&lt;!-- #masthead --&gt;
      **&lt;?php endif; ?&gt;**
      &lt;div id="content" class="main-container"&gt;
      &lt;?php ( is_page_template('template-home.php') ) ? '' : shapely_top_callout(); ?&gt;
      &lt;section class="content-area &lt;?php echo ( get_theme_mod('top_callout', true ) ) ? '' : ' pt0 ' ?&gt;"&gt;
        &lt;div id="main" class="&lt;?php echo ( !is_page_template( 'template-home.php' )) ? 'container': ''; ?&gt;" role="main"&gt;
              &lt;div class="row"&gt;
  </code></pre>