Minimatica WordPress Theme: Hacking the category.php file

I wanted to put the category list in the sidebar, so here’s my hack.

 

<?php
/**
* Template for category archives
*
* @package WordPress
* @subpackage Minimatica
* @since Minimatica 1.0
*/

get_header(); ?>
<?php if( ( ‘gallery’ == minimatica_get_option( ‘category_view’ ) ) && ( get_query_var( ‘cat’ ) != minimatica_get_option( ‘blog_category’ ) ) ) : ?>
<div id=”slider”>
<?php get_template_part( ‘loop’, ‘slider’ ); ?>
</div><!– #slider –>
<?php else : ?>
<div>
<h1><?php single_cat_title(); ?></h1>
</div><!– .title-container –>
<div id=”container”>
<?php get_template_part( ‘loop’, ‘category’ ); ?>
<?php
echo “Galleries”;
wp_list_categories(‘title_li=’); ?>
<?php get_sidebar(); ?>
<div></div>
</div><!– #container –>
<?php endif; ?>
<?php get_footer(); ?>

<*> Because it’s in the sidebar the list shows with bullets.  To remove the bullets, I added   list-style: none; to the #container part of the style.css file.

#container {
width:940px;
margin:0 auto;
margin-bottom:20px;
border-bottom:#CCC 1px solid;
list-style: none;
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Shares