Having two navigation bars on wp site? One for pages, and another for categories...how to?

2 replies
  • WEB DESIGN
  • |
I've noticed most free wp themes offer just one navigation bar and its for pages. I'd like to have 2 horizontal navigation bars on my page. One for pages (at the top), and another for categories (below header), as I think it's easier to navigate rather than having a category widget. How do I go about adding this 2nd navigation bar for my categories? Or is there a good free theme out there that already has two navigation bars.

Website is being developed, so no need to worry about messing anything up. Also the blog is on alternative energy, if that affects anyones input.

Thanks
Michael
#bars #categorieshow #navigation #pages #site #wordpress
  • Profile picture of the author Istvan Horvath
    It's very much a theme-specific question.

    It can be done if you know a little CSS and HTML: duplicate the "design" of the existing menubar copying it to the location you want it... and then use the wp_list_categories template tag, instead of wp_list_pages (look for them in the Codex)
    Signature

    {{ DiscussionBoard.errors[3744510].message }}
  • Profile picture of the author dassad
    Please show me your WP installation and i tell you what where to add and modify to get the second menu to. Since this way i know what is the base code for your PAGES navigation bar but i don't know the implementation of it. I mean teh design, placement, aligment and all those stuff.

    However you need to have a code like this in your header.php (most of cases)
    Code:
    <?php wp_list_pages( ); ?>
    the $args depend on your theme and if you see it, you see that is included in ONE or more DIVS.

    If you have some coding knowledge, you can try to duplicate the DIV holding your current navigation bar and modify the wp_list_pages funtion to
    Code:
     <?php wp_list_categories( ); ?>
    the $args probably that you can copy from the wp_list_pages funtion.


    However if you like challenges then try it but MAKE A BACKUP COPY, or better show us your website and i tel you what to make.

    Regards,
    daSSad
    {{ DiscussionBoard.errors[3746265].message }}

Trending Topics