Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

WordPress alternate page menu

Posted on 2012-09-11
2
Medium Priority
?
857 Views
Last Modified: 2012-09-14
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
Comment
Question by:ezrhino5151
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 38389397
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
 

Author Closing Comment

by:ezrhino5151
ID: 38399124
The plugin worked perfectly.
Thanks
Richard
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses

576 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question