Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into a theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files.

learn more… | top users | synonyms (4)

0
votes
1answer
266 views

Missing current_page_item in custom menu

I'm using the new custom menus in my side navigation and it only creates a class sub-menu in the UL's but does not use the current_page_item like when you use wp_list_pages(). I have 3 levels and only ...
0
votes
2answers
546 views

items_wrap not working

I registered a wordpress menu this way: function nothing_register_menus() { register_nav_menu('header-menu',__( 'Header Menu' )); } add_action( 'init', 'nothing_register_menus' ); I am calling ...
5
votes
1answer
1k views

How to add sub-menu to a menu generated by wp_nav_menu by using plugin

I have a menu generated by wp_nav_menu which look like <ul class="nav-menu" id="menu-top-nav"> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
0
votes
0answers
8 views

Adding new menu items with wp_nav_menu_items

I am trying to add menu items dynamically using the wp_nav_menu_items filter. What I am doing is working fine on two of my menus but I cannot make it work for the third. Code to register the menus: ...
0
votes
2answers
659 views

Blending Foundation's Tabs with Wordpress Nav Menu & Display Active Tab

I am currently working with ZURB's Foundation Framework. It's a terrific framework and my project is coming along a lot nicer and quicker than it would have beforehand. Foundation comes with ...
0
votes
1answer
1k views

Get menu item slug

I use custom menus and I’d like to get the menu item slugs. Is that possible? // Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_nav_menu) // This code based on ...
0
votes
1answer
24 views

how to add a div inside wp_page_menu

Right now I'm using the <?php wp_page_menu('menu_class=nav'); ?> function, which gives this result: <div class="nav"> <ul> <li class="page_item ...
0
votes
2answers
18 views

Add # to submenu URLs automatically

I'm trying to replace all my child page URLs to include a # automatically example: http://www.website.com/parentfoo/#childfoo I tried using wp_setup_nav_menu_item to run through all the child menu ...
1
vote
1answer
12 views

Is it possible to add a filter for the output of nav-menu items in admin?

I want to remove certain input fields on the admin screen for nav-menus for specific menu positions. I've used filters to filter front-end output but not for admin output. Is there a filter available ...
0
votes
0answers
8 views

Unclickable parent page makes subpage not showing vertical menu wordpress

I've created one menu and wants it to be shown as both horisontal and vertical. There is a parent page I don't want to clickable, only show the subpages. That is fixed by removing the url in link to ...
0
votes
3answers
338 views

Using website header, menu and footer on Wordpress blog

I want to use the header, top menu and footer from my website on my Wordpress blog. The website itself is not a Wordpress site but the blog is and resides in a 'blog' folder on my server. So I guess ...
2
votes
1answer
4k views

How show sub menu only using wp_nav_menu()

I am using this code to show the custom menu subpages if you are on the parent page. But what this code also shows is a parent page on a page that has no sub menu, which I would like hidden. Basically ...
0
votes
1answer
387 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
0
votes
0answers
25 views

Open first link in subnavigation when clicking top navigation

For example: I got a menu item called Food which has 2 subnavigation items, pizza and pasta. I want it to be, that if you click on food, that it automatically links to pizza (the first subnavigation ...
1
vote
2answers
508 views

3 blogs on one site with the same header menu?

Person X has default SITE with an integral blog. Person X also has SITE 2 with Blog 2 and also SITE 3 with Blog 3. Is it possible to have on the DEFAULT SITE HEADER MENU something like this: HOME ...
-2
votes
0answers
9 views

Menu style issues [closed]

I'm new to this, so please bare with me. I'm working with WordPress Themeforest Great News template. I was changing fonts in the menu and adjusting the font size so i could keep the entire menu as one ...
1
vote
0answers
13 views

Get top items number from wordpress menu

I've made a menu in Wordpress backend with 3 levels depth. (4 main tabs with 2 sub level items) I would like to know how I can get the number of tabs created automaticly and add this number to a ...
0
votes
1answer
135 views

chained drop-down menu for custom taxonomy using chained.js — not quite working

So, Im trying to get a chained select to work to select a state then a city with that state. (2 fields). Here is what Ive got: First my function to create the menu using get_categories(). First ...
0
votes
0answers
9 views

Override edit_custom_walker.php to conditionally show input depending on menu position

I've created custom inputs for WordPress nav-menus admin page. I've used a similar technique as is shown in this answer - by duplicating edit_custom_walker.php and adding my own fields. My custom ...
-1
votes
0answers
11 views

Menu responsive problems wp_nav_menu [closed]

Im developing a theme and I cant Get the responsive menu to work. The problem is if resizing the window the label for responsive doesn't dropdown the menu when clicking. Im using this template menu ...
1
vote
1answer
21 views

Menu styling for last menu item

okay so I'm using the following code to get my links... <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'mainnav') ); ?> This is my CSS for ...
6
votes
2answers
59 views

Filter wp_nav_menu()

I try to split my navigation into 3 single navigation bars (level 1, level 2 and level3+). Three because they're separated over the site and they should only appear depending on the current page. ...
1
vote
1answer
1k views

Wordpress 3.5 dropdown menu

I'm pretty new with wordpress and I want to create my own dropdown menu without the use of any plugins. I have a few questions about this. I already did some research but there are some things i do ...
2
votes
2answers
562 views

How to set limit only on top levels of wp_nav_menu?

How can I set a limit to the top level menu items in wp_nav_menu? Example: I have this menu in my admin dashboard: I would like to count ONLY the top level items and display a limited number of ...
0
votes
0answers
23 views

horizontal menu subnav bar plugin / solution? [closed]

Wordpress grasshopper here, looking for a horizontal sub-nav menu solution - hopefully a plugin. On certain pages only, a horizontal sub menu needs to show below the regular horizontal menu, as shown ...
0
votes
0answers
30 views

Why does this Wordpress menu-submenu behavior happen in Firefox? [closed]

Kindly check images and let me know, does that happens? I am using default theme and no plugin is activated. Following is the structure of menus and sub-menus : Page A Page X Page Y Page Z Page ...
1
vote
2answers
104 views

Remove a menu item in menu

I know this has been asked many times. But from what i got after searching, i could not understand much. I have used wp_update_nav_menu_item to add menu items programatically. But i don't know how to ...
0
votes
0answers
17 views

Accordion-type plugin with content shown by its side [closed]

I'm looking for a plugin or widget which would display a vertical menu as a post. When the user hovers over one of the sub-menus, content will be shown by its side, like in the image below. I tried ...
3
votes
1answer
294 views

Show only 2nd level of navigation depending on active navigation

For example, suppose a menu like so: Parent 1 Child A Child B Parent 1 Child C Child D Child E Parent 2 Child F In a certain part of my template, I want something to show depending on ...
0
votes
0answers
23 views

What's the policy for building a theme that doesn't support widgets/menus?

I'm developing a minimalistic theme, and my plan is not to include menus or widgets in it. The Theme Review page on wordpress.org states: Whether implementing required, recommended, or optional ...
0
votes
1answer
36 views

“Current” class on a singular page menu item with custom post types?

I'm struggling to get a "current" class for the corresponding menu item when I'm on a singular (child) page of a custom post type. These are the arguments I used when registering the post type with ...
1
vote
0answers
10 views

How to make theme elements customizable in wordpress?

In Wordpress there's a menu option called 'Appeareances'. I want to add (e.g.) a submenu 'header' there and then be able to customize the header from within wordpress (administration page). From what ...
0
votes
2answers
404 views

Display link with current user's username in it in Custom Menu

I'd like to add a link to BuddyPress' My Favourite Topics in a Custom Menu. Is there a way to use the current logged in user's username in the link? I mean like the %category% in the permalinks.
4
votes
4answers
119 views

Any walker causes blank menu?

Using the following, or any other custom Walker_Nav_Menu seems to cause a blank navigation menu, I tried specifying the default to make sure I wasn't going crazy yet it still blanks the output... Any ...
1
vote
2answers
1k views

Get parent page/menu id of current post

Basically, after setting up the initial "page for post" on the Reading Options, and then add that page to the menu I get the posts when I click on that menu item as expected. On there I know the post ...
3
votes
3answers
6k views

How do I remove UL on wp_nav_menu?

I search on this site and found many answers for this question. Most of them is not working on my theme. Here is a one solution I found and it's working according to my need. function ...
0
votes
1answer
32 views

Drop Down menu expanded by default (on front page) [closed]

For this site users seem to have difficulty finding the site's content that is accessible through the 'Data' drop down menu on the top left. To improve this I would like to have this drop down menu ...
0
votes
1answer
12 views

Showing home button in a specified menu

I try to add the home button in a specified WordPress menu (I have 2) and it's not working at all. This is my code: <?php wp_nav_menu(array('theme_location' => 'primary', 'show_home' => ...
-1
votes
0answers
22 views

Custom Menu's don't register when in widgets

I'm hoping someone can point me in the right direction. The site I'm working on has multiple custom menus created that I'm trying to add onclick functionality to. I went ahead and installed the ...
0
votes
0answers
15 views

Get Next/Previous (Sibling) Top Level Parent Page Id - Wordpress

Question: Is there any possibility to get next/previous page id in wp_nav_menu in wordpress. Example: I have navigation menu like this Menu_Item_1 (ID = 5) >SubMenu_Item_1-1 ...
1
vote
2answers
2k views

How can I manage BuddyPress's navigation bar?

I have created a community by using BuddyPress. Now I want to manage its navigation bar which has these pages My Home , my profile etc.. Actually, I want to put the two pages My Home and My Profile ...
2
votes
1answer
3k views

Using wp_get_nav_menu_items() to list children of children pages

I'm working with a Genesis Based Theme and I'd like build a Page/ Child Page menu structure. That part I can do with the help of some code produced by Bill Erickson. Essentially what I'm trying to do ...
0
votes
1answer
207 views

Auto Filled Custom Menus for Custom Post Types?

Is there anyway to have custom menus that fill out automatically, specifically for custom post types? You can do it for default pages but nothing else it seems... For example you have a page which ...
0
votes
2answers
312 views

Handling complex multi-level architecture / menu for large site

I am trying to get feedback and ideas for solving an information architecture / content management problem using wordpress. I have a large site ( 1,000+ pages, hundreds of posts ) made up of ...
2
votes
1answer
854 views

Vertical Sidebar Menu Parent and Child not displaying correctly

I am developing a WordPress site and trying to display my menu correctly. How can I display all Parent items but only show the Child items when it's Parent has been selected. I hope that makes sense. ...
1
vote
2answers
43 views

Custom Menu Broken WP 3.8.1 Update

Custom menu has stopped working since upgrading to 3.8.1. When trying to add items from the left they do not show up as movable items as they should do under Menu 1, however the text changes to: "Drag ...
1
vote
0answers
18 views

How to show dynamic side bar on menu item

I want to show dynamic sidebar content on menu item (within <li></li> tag) but unfortunately sidebar content show top of <nav></nav> tag, i mean top of the menu and where i ...
1
vote
0answers
22 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
1
vote
2answers
44 views

A page that shows a list of a specific custom post type

I've created a custom post type called 'product'. I want to add a page link to 'products' in the menu, but I don't have that option. I would like to know if there is a way of displaying it the same ...
4
votes
2answers
351 views

Highlighting current item of custom post types' sub pages, listed by wp_list_pages

The below code is for listing the custom post types itself and its children in the sidebar. The code works great but does not highlight the sub pages. In functions.php: ...