-
AuthorPosts
-
January 16th, 2015 at 01:08 #29138Topscorer
Hi
I’m trying to use different menus as the primary for different pages.
For example I want the primary menu of the landing page to be MenuSpanish and that menu will have a button ‘English’. If you click English it will take you to an English version of the landing page and it will use MenuEnglish as the primary menu.Maybe their is a really simple way to do this that I have not realized but at the moment I’ve created a child theme and a new page template, let’s call it TemplateEnglish, and I’m trying to figure out how to make my custom template use MenuEnglish instead of MenuSpanish.
In other words every page set to use TemplateEnglish will use MenuEnglish and any other template will continue to use the Primary Menu, which is MenuSpanish.
Here is a link to a wordpress thread that shows how far I’ve got so far:-
https://wordpress.org/support/topic/different-primary-menus-for-different-pages-1?replies=17#post-6441968Can anyone help me to finish this off please or if their is a much simpler way that already exist let me know what to do!
Many thanks
January 18th, 2015 at 05:20 #29164Switchlit80I am using a free plugin to do this called conditional menus. Works really well and no coding necessary. Once installed you simply go to the manage locations tab and then the menu areas of your site will have a “condition” area that you can add….you can do it based on specific pages, taxonomy, etc. Working really great for me.
The plugin wasn’t in the repo that I could find….had to download it and then install…..
http://themify.me/conditional-menusJanuary 19th, 2015 at 21:06 #29188TopscorerThanks, that seems to work great!
-
AuthorPosts
The topic ‘Using different primary menu for different pages’ is closed to new replies.