title: How to Check for Class in body_class() in Wordpress
body: <p>Within Wordpress header.php, I have </p>
  
  <pre><code>&lt;body &lt;?php body_class($class); ?&gt;&gt;
  </code></pre>
  
  <p>How do check to see if a specific class exists, and then load markup as a result?
  For ex.</p>
  
  <pre><code>&lt;body class"home logged-in"&gt;
  
  &lt;?php if $class == 'home' ?&gt;
      &lt;div class="home"&gt;&lt;/div&gt;
  &lt;? else : ?&gt;
      &lt;div class="internal-page"&gt;&lt;/div&gt;
  &lt;? endif; ?&gt;
  </code></pre>
  
  <p>Thanks!</p>