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)

1
vote
1answer
995 views

Show Different Custom Menu on Different Category Pages

I have been using in_category function to display a set of menu on the sidebar. However, a much better way would be to show this menu on the top, as a navigation menu -- in the form of custom menus. ...
0
votes
1answer
76 views

Create search form in menu as in Twenty Fourteen theme

I would like to replicate the search form in Twenty Fourteen's menu. I have tried to hide and show the search button with jQuery. My Problem is that the button is not sliding from left to right and ...
0
votes
0answers
19 views

Manually add navigation items to a menu

I tried to add a link manually to my menu, but something not works. I register my menu: register_nav_menus( array( 'main_nav' => 'Main', )); I try to add the ...
0
votes
1answer
23 views

wp_page_menu not working right?

I try to create simple menu in custom theme. WordPress version is 3.9.1 So I taking code from here http://codex.wordpress.org/Function_Reference/wp_nav_menu, just change menu and container class / id ...
1
vote
1answer
145 views

Custom Post Type Nav to Subpage

I've registered a post type for an audio plugin, the post type is "Custom Players" in the admin and has its own tab on the admin sidebar. I'm just curious if there's a simple way to move this out of ...
0
votes
1answer
467 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
29 views

Create an auto-populated menu that is automatically assigned to the primary menu in twentythirteen?

A similar question was asked about buddypress here , but I tried applying it to a twentythirteen, and I am getting this error. Cannot use object of type stdClass as array in ...
0
votes
1answer
270 views

Splitting up a submenu into columns, or putting existing menus in another menu as submenu item

I have a menu with a long list of submenu items. I'd like to split that up into columns and the easiest way in my mind would be to have them split up into multiple . Is there a way to do this? ...
3
votes
1answer
254 views

Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?

Essentially I'm trying to add multiple sub nav menus and I'm pretty close but I just can't seem to find the right tack to solve my problem ... I'm using a variation of a Stu Nichols CSS Menu ... ...
0
votes
0answers
28 views

Current state to a button when on a single page

I am having trouble figuring out how to keep the current state active once on a single page of the post. For example: Recipes displays a list of all my post that are under a specific category. Once ...
1
vote
1answer
233 views

display only the wp_nav_menu, which has the current-menu-item

i have a problem displaying only the menu with wp_nav_menu, in which the current-menu-item is in. Heres what i got: function register_menus() { register_nav_menus( array( 'sidebar-menu' ...
1
vote
1answer
56 views

How to remove admin main menu name repetition

I have added an admin menu using add_menu_page. When there is a sub menu with add_submenu_page, The main menu name is repeating. How to remove this repeating menu ? This is my code ...
0
votes
1answer
351 views

How do I check if a menu exists?

I'm currently retrieving a nav menu based on the parent page's title, and if the page doesn't have a parent then it's own title. global $post; $page_title; if ($post->post_parent) { ...
0
votes
2answers
24 views

Query for menus in backend (BE)

I want to create a simple plugin (already started) to have in one place recurring tasks (for me as webdesigner) e.g. take site offline, set backend icon, don't show updates and so on... Now I want to ...
0
votes
0answers
19 views

add classes to wordpress menu links

As the title already says, I am trying to add classes on the WordPress menu item links (so not the li, but the a element). If it is possible to achieve something similar to WordPress its own function ...
1
vote
2answers
550 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 ...
0
votes
1answer
20 views

Add <span> within the <a> output of <? wp_nav_menu() ?>

Currently i am using: <?php echo wp_nav_menu( array( 'menu' => 'main-menu','depth'=> 1,'items_wrap' => '<ul class="navigation_ul">%3$s</ul>' ) ); ?> I want to achieve: ...
0
votes
1answer
39 views

Check if wp_nav_menu items have submenus

I'm looking to output the following markup for a menu through wp_nav_menu, <ul> <li><a href="/">Home</a></li> <li> <a href="/" ...
4
votes
2answers
251 views

Menu items (all menus) being deleted randomly on their own [duplicate]

This is really driving me up the wall now. Randomly, all my menu items for all menus are just being deleted on their own. Not the menus themselves but all items within them. This is a custom theme ...
0
votes
0answers
14 views

Nested Admin panel sub menus in single menus

i know how to add custom menu in the admin panel and how to add multiple sub menus in the custom menu. But i want to know can we add nested sub menus in the custom menu (WordPress admin panel)? Means ...
0
votes
0answers
16 views

Secondary menu > Active item: How can I output the class “current item”?

I'm using wordpress for my website and i have created a secondary menu. I'm using this secondary menu to work as filter for categories (filter different type of content). -> root website: ...
0
votes
0answers
50 views

show/hide menu item(s) on specific pages (not on user roles)

I wish to keep a menu item hidden on homepage & vice-versa (user roles don't matter here). Scenario In my Primary Menu, I have created two menu items Get Quote (menu-item-1) and Get Quote ...
1
vote
2answers
3k views

Search box as a menu item in the nav menu output by wp_nav_menu?

I am using the Twenty Twelve theme, and the following is the code it uses to register and display the menu. In functions.php: function twentytwelve_setup() { ... // This theme uses ...
0
votes
0answers
18 views

Show sub menu item from main menu on mobile devices

The parent menus of my wordpress main menu (horizontal) navigation shows up on mousever. I created a toggle / collapsing menu for screen sizes under 768px. Any idea how to show up the parent menus ...
0
votes
0answers
20 views

Loading wordpress menu in an external server

The scenario is like, I have two servers: Server A : Hosts WordPress Server B : Hosts Some PHP Scripts Now, I want to load the wordpress menu on server B. Is there any way to achieve this? ...
0
votes
1answer
51 views

WP nav menu + Bootstrap, add role=“menu” to UL

For one of my projects I'm trying to add a nav_menu to my WP theme. It should work as a quick menu (sidebar). The only problem remaining: How do I add a role="menu" to the < ul >? <?php ...
1
vote
1answer
3k views

Add class to active element and its parent in nav menu

I am using the following code in order to add a class name "active" to the current menu item: add_filter('nav_menu_css_class', 'add_active_class', 10, 2 ); function add_active_class($classes, $item) ...
0
votes
1answer
9 views

Highlighting Main Navigation Menu With Two or More Class Matches

I believe this doesn't happen very often. I am working on a project in which a child page can show up under several different parent pages. The page actually belongs to just one parent, but in the ...
0
votes
0answers
27 views

WordPress HTML Menu

I'm trying to get the menu on my WordPress site to append the class like so: <ul class="nav navbar-nav navbar-right"> <li><a href="/">Home</a></li> <li ...
0
votes
1answer
11 views

Customise the custom menu widget

Is it possible to customise the custom menu widget? All I really want to do is change the text where it says "select a category". Thanks
5
votes
2answers
3k views

fall back for main menu?

I am new to WordPress, and am still trying to learn the in's and out's in much respect to this well known CMS. I am wanting to know, if I should or must have a Fallback for main menu? This is what I ...
0
votes
1answer
63 views

How to display list of child pages with parent in wordpress?

I have following format of sub-pages in WordPress: About Us -Services -Products -Surgery I want to list all sub-pages with parent page like above but the code that I am using from ...
1
vote
2answers
159 views

Add Javascript to Wordpress Menu

Is there a way to put javascript in the URL portion of a Wordpress menu item? I have a live chat function on my site, and I am supposed to put this code onto the site to make a link to open the live ...
0
votes
0answers
22 views

Ubermenu cant handle my menu, how to deal with large number of menuitems?

I have a webpage with a large number of pages, around 250-300, and I output these in Ubermenu at the moment. Needles to say, my menu backend is very slow, and sorting is a pain in the.. well you know. ...
1
vote
1answer
490 views

Where would I find Custom menu attributes in the database?

In what table would I find the title of a custom menu in MySQL for Wordpress 3.5.x?
0
votes
1answer
27 views

Display a tag before the menu list content

Is that possible to insert a text before the menu items? In this case, I want to lead a <h3> tag for the list content (like a menu title). I tried the if/else to recognize that the menu have ...
0
votes
1answer
43 views

Insert a div class inside wordpress menu

<ul id="menu"> <li><a href="#">About Assetline</a> <li><a href="#">Products & Services</a> <div id="mega"> ...
0
votes
0answers
47 views

How to add a code for lastpostdate after/inside a specific menu link?

So, I have a news website. The designers want me to have a link in the menu that says "Latest News - [time of the last post]". I know I can get the datetime of the latest post with ...
0
votes
0answers
38 views

Wordpress Shortcode in Menu Item Title

I've looked and have not found anything that works. I am trying to include a shortcode in a menu item's 'Navigation Label'. Basically Iwould like to have a dynamic title displaying the user's name ...
1
vote
0answers
26 views

Insert menus in the database

I want to create a large menu structure, and the admin pages time out, so I cannot insert them via the admin screens. How can I insert the menu entries directly in the database? Thank you
4
votes
3answers
4k views

non-clickable placeholder in the menu

well, I really would like one & more of my top-level menu items (parent menu items that has child menu items) to be non-clickable, so that visitors can only click on the child menu items...could ...
0
votes
0answers
15 views

Extending the walker class to add a top level list item to the nav menu in a different order

I've seen functions to append to the beginning or the end of the menu, but how do I add this list item right after the first? So it would come second in the menu order. Is this possible? If so, how ...
2
votes
1answer
34 views

Creating a menu page in a Object Oriented developed plugin

I am trying for the first time to build a plugin for Wordpress following OOP way. I am having some problems while trying to create a submenu page using add_users_page() function. Here is a simple ...
0
votes
2answers
252 views

wp_nav_menu does not take arguments?

I am sorry for this nooby question, but I just don't get it : I was working with the function reference for wp_nav_menu and this is my line of code: <?php wp_nav_menu( array('theme_location' ...
0
votes
0answers
21 views

Sub 'Page' Child Menu Order

I cannot seem to get the order of my sub-page Menu items in the correct order. They will only display in alpha or numerical order - even if I specify the menu order. To be clear - I am not referring ...
0
votes
1answer
11 views

List of WordPress menu item indices?

The following code will rename the "Posts" menu item to "Blog Posts" in the WordPress Dashboard: function lc_change_post_menu_label() { global $menu; $menu[5][0] = 'Blog Posts'; } add_action( ...
0
votes
0answers
17 views

menu hierarchy not working

I have created a theme from scratch and was using a custom menu with no problem. Somehow, I lost the ability to create a hierarchy in the menu -- all menu items show up at the same level. I have ...
0
votes
0answers
31 views

how to implement the slide and push menu in wordpress

new to this forum & new to wordpress. I have read about Slide and Push menu functionality in http://tympanus.net/codrops/2013/04/17/slide-and-push-menus/ How to implement this on a WordPress ...
0
votes
0answers
33 views

How to add extra items in wp nav menu

I have a menu in wordpress where each menu item has an extra item. For example: I have a "Home" menu item where I have an extra item "come see us", I have an "About Us" menu item where I have an ...
0
votes
0answers
26 views

Why is the Walker_Nav_Menu self closing tags added in start_lvl

I'm creating a custom Walker based on Walker_Nav_Menu for a megamenu I'm working on and the issue I'm having is that it seems the tags I open on start_lvl are being automatically closed. Here's my ...