title: Conditional statements for custom template
body: <p>I have 2 template files , One template file is front-page.php and the other template is a custom one. Basically the code below is stating if it is front page then use this body class but if its anything else then use other body class. What I am trying to do is have my new template use the same body class as my front-page.php. I am having some issues making this occur. So basically,it needs to be "if front page or custom-template.php then use body class everything else "innerbody"</p>
  
  <pre><code>&lt;?php if(w3c()){ ?&gt;&lt;?php if(is_front_page() || is_page_template ('page-templates/front-page.php')){?&gt;&lt;body&gt; &lt;?php } else{ ?&gt;&lt;body id="innerbody"&gt;&lt;?php } ?&gt;
  </code></pre>