WordPress.org

Ready to get started?Download WordPress

Forums

Categories in the nav bar (1 post)

  1. frytec
    Member
    Posted 4 years ago #

    Hello,
    i am using devart theme.
    i want the nav bar shows the categories instead of pages.

    i had change the following code in header

    <li <?php if(!is_category()) echo 'class="current_page_item"'; ?>><a href="<?php echo get_option('home'); ?>/"><b>Home</b></a></li>
    <?php wp_list_categories('title_li='); ?>

    it shows the categories but it dont show the nav-tab for corrent category.

    can you help me?

    thank you

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags