-
AuthorPosts
-
December 29, 2014 at 7:53 pm #372771
Hello,
I am having difficulty creating a second menu/template (not sure what to call it). On my homepage, I have my menu displaying “about”, “contact”, etc. I’m trying to make a separate menu for when I’m on a different page. For example, if I clicked on “about”, I want it to display a separate menu.
I did research but I didn’t get too far. I created a file called template-test.php and copied the default template file into as well as copied a php script I found online. I then went to a post and selected my new template, but now I’m stuck.
Could anybody give me some insight?
December 29, 2014 at 8:53 pm #372799Hey stewroids!
Around line 124 in /enfold/includes/helper-main-menu.php you should see this.
'menu_id' => $avia_menu_class,Add this on the next line.
'menu' => ( is_page(321) ? 'special' : null ),And then change “321” with the ID of your page you want to change the menu on and “special” with the name of your menu.
Best regards,
ElliottDecember 29, 2014 at 10:25 pm #372862This reply has been marked as private.December 29, 2014 at 10:46 pm #372872Hi!
Try “exercises” in all lowercase.
Cheers!
ElliottDecember 30, 2014 at 5:07 am #372968This reply has been marked as private.December 30, 2014 at 5:08 pm #373187Hi!
Rename the menu to something simple like “exercises” and then use that in the file.
Best regards,
ElliottDecember 30, 2014 at 7:45 pm #373265This reply has been marked as private.December 30, 2014 at 9:28 pm #373302Hey!
And your sure the page ID is 3677? It’s working fine on my XAMPP setup so I’m not sure what else to tell you here.
Cheers!
ElliottDecember 30, 2014 at 9:44 pm #373310This reply has been marked as private.December 31, 2014 at 1:06 am #373379Hi!
Aside from the suggestion above, you can create a new set of menu for different pages using these plugins:
https://wordpress.org/plugins/menu-items-visibility-control/
https://wordpress.org/plugins/zen-menu-logic/Regards,
IsmaelDecember 31, 2014 at 5:37 am #373412This reply has been marked as private.December 31, 2014 at 1:31 pm #373485 -
AuthorPosts
- You must be logged in to reply to this topic.
