• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 903
  • Last Modified:

WordPress alternate page menu

Hello Experts,
I am having trouble finding a good plugin for WordPress that allows me to use menus I created for different pages.
For instance, I want specific pages to have a set of top menu options different from others.  
If I have a web site that deals with custom vehicles and I have a " Cars" "Trucks" and "Bikes" main menu on the home page, I want that customer to be able to click on the cars menu and be sent to a page that has a different top menu with links only dealing with cars.
In the template I purchased from ThemeForest I found this entry in my header.php file.:
<!-- ......................[ Top Menu ]...................... -->	
		<div class="top-menu">
			<?php swm_display_topmenu(); ?>
		</div>		
<!-- ......................[ End Top Menu]...................... -->

Open in new window

Can I create separate headers, templates or a set of "if" statements that can change the top menu according to the page that is being called?
Ideally I would like to use a plugin but I want to keep the same menu formatting for all the pages.  If I have to shuffle the pages and menu around a lot, a plugin would make life easier.
If it matters the name of the theme is "Desire".
Thank you
Richard
0
ezrhino5151
Asked:
ezrhino5151
1 Solution
 
Jason C. LevineNo oneCommented:
Can I create separate headers, templates or a set of "if" statements that can change the top menu according to the page that is being called?

Yes.  If you want to do it at the template level, then you could call the desired custom menu via the wp_nav_menu() function's "menu" parameter:

http://codex.wordpress.org/Function_Reference/wp_nav_menu

If you are looking to do it via a plugin, look into WooDojo which provides a Dynamic Menu feature:

http://dojodocs.woothemes.com/dynamic-menus/

In the template I purchased from ThemeForest I found this entry in my header.php file.:

Just FYI, your theme may not be written to support "normal" WP custom menus or it has its own menu generation function.  If so, neither of the above will work.
0
 
ezrhino5151Author Commented:
The plugin worked perfectly.
Thanks
Richard
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now