title: if (is_archive()) not working wordpress
body: <p>I know a fair bit about HTML, CSS, jQuery but I haven't dabbled with PHP yet. I was given a code to help me apply a style to the webpage, only if it was a blog page:</p>
  
  <pre><code>&lt;?php if(is_archive()){ ?&gt;
  &lt;style type="text/css"&gt;
       .wrap {
           max-width: 1200px !important;
        }
  &lt;/style&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>This, inserted into the header file, has worked perfectly since. On my return to work after a short absence I find that this code is still in the same place it has always been but is no longer effective? As the code gives the archive pages a max-width, these now look dreadful without it because the margin: 0 auto doesn't work either.</p>
  
  <p>Take a look for yourself <a href="http://7connections.com/blog/" rel="nofollow">here</a>. I'm not sure if this code is written correctly because I recently found that hostgator's file browser editor had added code to files I'd edited when I was out of office. Any help is appreciated but please bear in mind that I know nothing about PHP, other than where to copy and paste it.</p>