How to Add Separate Nav Menu for Categories in Thesis Theme

Share this Article :

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='); ?>
        </ul>
    <?php }
    
    add_action('thesis_hook_after_header','cat_nav');
    

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