title: Change default style based on title
body: <p>I am trying to change the default style based on title of the page.I found that as the easiest way to accomplish needs. </p>
  
  <p>I load the default styling option in header.php file:</p>
  
  <pre><code>&lt;link rel="stylesheet" data-them="" href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" type="text/css" media="all" /&gt; 
  </code></pre>
  
  <p>I suppose <code>&lt;?php bloginfo('stylesheet_url'); ?&gt;</code> loads style.css which is on same path as header.php </p>
  
  <p>I commented out this the line    <code>&lt;link rel="stylesheet" data-them="" href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" type="text/css" media="all" /&gt;</code> and tried to check title with php, based on that condition I wanted to load different style.css file.</p>
  
  <pre><code>&lt;?php 
      $title = get_the_title();
  
      if($title === "Title1"){
          ?&gt;&lt;link rel="stylesheet" data-them="" href="style.css" type="text/css" media="all" /&gt;&lt;?php
      }
      elseif($title === "Title2"){
            ?&gt;&lt;link rel="stylesheet" data-them="" href="style2.css" type="text/css" media="all" /&gt;&lt;?php
      }
      else{
           ?&gt;&lt;link rel="stylesheet" data-them="" href="style3.css" type="text/css" media="all" /&gt;&lt;?php
      } 
  ?&gt; 
  </code></pre>
  
  <p>This code does not work for me and not sure why.. Styling is messed up</p>