in_category in index.php

The following code is working for me. I tied in a child theme of TwentyTwelve. Just copy and replace your index.php with the following and let me know (And don’t forget to change the category slug as per your database):

<?php if( have_posts() ) :
   while( have_posts() ) : the_post();
      if(in_category('aciform'))
        { echo '<h2>'.get_the_title().'</h2>'; }
      else if(in_category('blogroll'))
        { echo '<h2> K-'. get_the_title() .'</h2>'; }
      else
        { echo "<div>bla bla</div>"; }
   endwhile;
endif; ?>