I want to build a large menu(more than 100 items) in admin panel, there are server post variable limit. So i have created a menu with parent pages only. I want to add child pages to parent pages in menu during runtime. I am using wp_nav_menu function. Is it possible with walker class or any other solution.
Related
I am new to wordpress theme integration and I need some suggestion on page hierarchy.
I have page called branding and this page have sub pages brand-x,y,z etc...I need brand-x,y,z should come under branding (www.domainname.com/branding/brand-x)
If I create this hierarchy in wp theme, its getting added as a sub item in the drop down menu under branding page, so I want to retain only the URL for hierarchy for the best practice, don't need in drop down menu item.
If I remove dropdown menu all locating in primary navigation.
Let me know the possibilities?
Thanks,
Gururaj
Iv created a sidebar menu in Wordpress which has 2 levels to it.
I dont want to display the child pages on the second level of the menu, until the parent page has been clicked.
I do not want it to happen on click like an accordion, but just to display once the parent page has loaded.
How can i do this without creating other menus?
I want to create a similar method to this sites sidebar: http://www.md-solicitors.co.uk/for-individuals/employment-hr/
Thanks
I have following navigation structure, which i want to implement in wordpress:
(Home / About / news / Contact) are in top navigation, whereas all sub links are in sidebar.
How can i create this type of navigation in wordpress. i.e. How can i display first level navigation in header and second level navigation in sidebar.
Follow these steps:
First create a main Navigation to your site without child pages and
add it to the theme.
Then create a new menu with child menus only and save it.
Now goto widgets section and from there drag Custom Menu from left
side and add to your sidebar.
Then select your child menu and click save.
Thats all. :)
Check this WordPress Codex section for creating menu tutorial
Cheers!!!
I found these plugins helpful:
Simple Section Navigation
http://wordpress.org/extend/plugins/simple-section-navigation/
It allowed me to create the side nav based on the hierarchy of the pages and their children.
I wanted a bit more control though because I didn't want some of the parents to have their own page ... just a heading for their children. So instead, I'm using this plugin (for the Genesis Framework).
Genesis Simple Sidebars
http://wordpress.org/extend/plugins/genesis-simple-sidebars/
This allows me to create as many sidebars as I want and add custom menus to those. I'm new to this, so maybe I'm taking a long route, but so far it seems to be doing what I want it to.
I only want to show the pages that do not have parents, and link the other pages from their parent pages.
I want to have a simple main menu: Home | Pages | About | Contact
About 8 pages are linked from the Pages page. At the moment, the menu has 12 items, which deforms the layout pretty badly.
I have tried making the pages private, unpublished, and other options, but that doesn't seem to be the way to do it. Is there a way I can just have only parent pages linked in the main menu?
You can edit the menu (under the appearance tab in the dashboard). (you may need to add a new menu and assign it to the main navigation menu. It sounds like you have the defaulted menu set-up.
Once you've added a menu and assigned it to the main navigation, you can uncheck "automatically add top-level elements" or its equivalent, and add/remove menu items. You can also change their hierarchy (independent of actual page hierarchy).
It's all so easy these days. Just Go to appearance>menus>click the little triangle next to the listed page name>click remove> don't forget to save ... all done!
Maybe you didn't set up a custom menu yet. Set up a custom menu first with the desired pages / links. If it doesn't show on your site, check custom memus are enabled in your theme.. this will help you setting up a custom menu: http://www.wpbeginner.com/wp-themes/how-to-add-custom-navigation-menus-in-wordpress-3-0-themes/
I'm using Development Seed's fantastic Context module (version 6.x-2.0) for Drupal 6 on a site that I am developing. Everything is working fine except in the case where I need to set a context for a particular menu trail.
Perhaps I am misunderstanding the menu trail condition, but the context only exists when the defined menu item is active and not for any of its child menu items. Should it not be following the menu trail? The menu items only exist in the primary links, so there should be no conflict.
Is it possible to hook into the context to make the menu trail part work if not through the Context UI interface?
This is because Drupal, by default, sets the Navigation menu to the active menu: it affects all manner of things from Context to breadcrumbs.
You can test this by changing your condition to check a menu item in Navigation: it will fire on child menu items.
To get it to work on other menus, you need to enable or write a module that utilizes menu_set_active_menu_name to set the active menu to one where the page is a member. The module Menu Breadcrumb accomplishes this task with no configuration.