Creating a Category page in Kubrick
-
Morning everyone!
I’m using the Kubrick/Default template in my blog and want to be able to make my different categories have different ‘styles’ – ie, a different header, color scheme, etc.From what I can figure out (from previous posts), I think I first need to have a category page. So, my first question: How do I use the default ‘index.php’, save it as a ‘category.php’ file, and change the php in it to be a ‘category’ page?
Here is the code from that part of the index.php file:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post”>
<div class=”small”>Posted in <?php the_category(‘&’);?> <?php the_time(‘d M Y h:i a’); ?> <!– by <?php the_author() ?> –></div>
<h2 id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h2><div class=”entrytext”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div><p class=”postmetadata”><?php edit_post_link(‘Edit’,”,’|‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
<!– <?php trackback_rdf(); ?> –>
</div><?php endwhile; ?>
I’m VERY new to php. Can someone tell me what I need to change here to create a category page?
Any and all help greatly appreciated.
Thanks!
- The topic ‘Creating a Category page in Kubrick’ is closed to new replies.