Viewing 7 replies - 1 through 7 (of 7 total)
  • I would like to know how too..

    Could hardcode the Category archive link in the template that houses your navigation.

    Resources:
    Stepping Into Templates
    Template Hierarchy

    just create a page called “category 1”

    use a plugin called page links to to set the page to the category url.

    you should be all set

    It’s a great mod!
    but…

    the class of the menuitem that represents the categoy will not change to ‘active’ or ‘current-page-item’. My visitor cannot see wha page he is on.

    Any thoughts on how to solve that?

    Thanks

    if (get_option('show_on_front') != 'page') {
                        $class = '';
                        if (is_home() || is_archive() || is_single() || is_paged() || is_search()) {
                            $class = 'current_page_item';
                        }
                ?>
                    <li class="<?php echo $class; ?>"><a href="<?php echo get_option('home'); ?>">Home</a></li>
                    <?php } ?>
                    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

    May be the cause of eh above problem? I don’t understand it.

    its a great plugin because i dont have to edit header.php (or any other) so if i change themes the navigation stays there (as long as i add appropriate css to the new theme)

    also i dont have du uncomment the standard list_pages navi

    but as kimmeehh pointed out the current_item highlight isnt working.

    if anyone finds a fix please share!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Category as Nav Button’ is closed to new replies.