multiple menu's

Multipurpose WordPress Theme Forum Support
GK User
Fri Jul 03, 2015 2:45 pm
Hello,

Is it possible to have a different menu when on a different page? I know Yootheme offers such feature but I can't find it here.
The problem is that at the frontpage I want the menu to be connected to anchors, which is working fine and gives a better user experience. However I also got some subpages, at the moment the menu anchors don't work anymore and also the titles don't really make sense.

I guess if it's not built in I mabye can do something with css?
User avatar
Junior Boarder

GK User
Sun Jul 05, 2015 10:46 pm
Hello,

Unfortunately it's not possible without theme files modifications. Generally you should define two menus and load them using conditional tags:
Code: Select all
if (is_front_page() ) {
// load 1st menu
else {
// the second menu
}
User avatar
Moderator

GK User
Mon Jul 06, 2015 8:01 am
Would this work within the Gavick theme? http://webdesignandsuch.com/how-to-regi ... wordpress/
User avatar
Junior Boarder

GK User
Mon Jul 06, 2015 9:54 am
Yes, but it's just multiple menus implementation, so i.e. main menu at the top and the footer menu on the same page.
User avatar
Moderator

GK User
Mon Jul 06, 2015 11:32 am
After trying so manual code, I searched a bit more through the plugin database of Wordpress. This seems to work perfectly:
https://wordpress.org/plugins/zen-menu-logic/

You choose at which position you want the plugin to work: either the main menu location or the footer location. After that you can choose per page or post which menu needs to be displayed. I guess it does the same as the manual code, but without all the pain.
User avatar
Junior Boarder


cron