How to Add Separate Nav Menu for Categories in Thesis Theme

I would like to share with you guys on how to add separate nav menu for categories in Thesis theme on WordPress blog. It is very easy. This tutorial assume that you jave installed Thesis 1.8 for for wordpress theme on you blog.

Steps :
1. Login to your wordpress dashboard and Click thesis 1.8 theme.
2. Click Custom file Editor and select custom_functions.php, then click edit selected file.
3. Place this code in custom_functions.php:

    function cat_nav() { ?>
        <ul id="cat_tabs" class="menu">
            <?php wp_list_categories('title_li='); ?>
    <?php }

4. Then, place this code in custom.css:

    ul#cat_tabs li { float: right; }

5. (Optional) If you want to position the category Nav Menu to right instead of left, use the same code in custom_functions.php as above, but modify wp_list_categories to reverse the sort order:

    <?php wp_list_categories('title_li=&order=DESC'); ?>

Leave a Reply

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

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>