WordPress.org

Ready to get started?Download WordPress

Forums

Change Navbar from Categories to Pages (3 posts)

  1. davebar
    Member
    Posted 4 years ago #

    Hey gang,

    How can I go about changing the Navbar to display Page links, instead of Category links? I didn't notice that as a theme option, so I suspect i have to jump into the header code to adjust.

    thanks
    -David

  2. davebar
    Member
    Posted 4 years ago #

    Followup, I suspect it lies in this code. I'm not good at PHP (yet), but it looks like in the If statement.. there's a line of code that says "If TopNav_Display = Pages"

    That sounds as if there would be a spot to select the topnav menu type in the admin, but I don;t see it.

    Any advice?

    <?php
    if (arras_get_option('topnav_display') == 'pages') {
    wp_list_pages('sort_column=menu_order&title_li=');
    } else if (arras_get_option('topnav_display') == 'linkcat') {
    wp_list_bookmarks('category='.arras_get_option('topnav_linkcat').'&hierarchical=0&show_private=1&hide_invisible=0&title_li=&categorize=0&orderby=id');
    } else {
    wp_list_categories('hierarchical=1&orderby=id&hide_empty=1&title_li=');
    }
    ?>

  3. davebar
    Member
    Posted 4 years ago #

    Another update...

    I'm using wordpress 3.
    I deleted all the custom menu's as an experiment, and when doing so, the nav bar was empty.

    I created a custom menu of pages, an then that custom menu automatically appeared in the nav bar.

    I then created a custom menu of categories, and then that gained priority and appeared in the nav bar instead of my pages menu.

    Is this an incompatibility with wordpress 3?
    is it just showing the last custom menu made?

    I love this theme, but simple menu control is starting to drive me nuts :>

Topic Closed

This topic has been closed to new replies.

About this Topic