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
2answers
233 views

Adding existing links to custom navigation menus?

When I visit Appearance → Menu, I can add custom links, but not any links I've already created under Links. How can I do this?
1
vote
1answer
1k views

Error “The given object ID is not that of a menu item” on menu with 40+ items

When ever I try to add menu items past about 40 I get an error "The given object ID is not that of a menu item" and many of my menu items will disappear from the menu at random. The site I am working ...
1
vote
1answer
1k views

Dynamic sidebar nav with current page highlighting

My sidebar loops through all of the child pages based on the parent page. For example, if you're in the "About" section you'll only see "About" child pages in the sidebar. My problem is that I have ...
1
vote
1answer
207 views

How to make link to different categories that in them selves loads different menus?

Im kinda a noob but have made some homepages for fun but got this new one that im making for a friend that´s stopped my dead in my tracks: http://yellowknife.se/artfex/ The popup (ugly as hell and ...
1
vote
2answers
765 views

How do I add (css) class to a custom link to make it current_page_item

As a custom menu item wp doesn't add the class current_page_item All other links it does? <ul class="nav" id="menu-mainmenu"><li class="menu-item menu-item-type-custom menu-item-home ...
1
vote
2answers
294 views

Can only get one of two custom menus to display

I'm a wordpress beginner and at the moment struggling to get to grips with custom menus. I have created two menus. Wordpress tells me the theme supports two menus. I have <?php ...
1
vote
2answers
409 views

How to set my main menu items

I am new to WordPress development, hope this is not a too stupid question. How can I setup my Menu such that it has links to Home About (Page) Blog (I think posts in all categories except Portfolio ...
1
vote
1answer
609 views

Controlling Taxonomy Category listings to hide and unhide specifics

I have a vertical menu using the superfish script that shows categories in a custom 'productcategory' taxonomy. This menu has multiple levels, and is hierarchical.At the bottom of each branch of the ...
1
vote
1answer
118 views

How do you cope with the task of adding hierarchy to the navigation menu?

Say we got a theme with a horizontal menu that shows only the top-level pages. How do you manage with the task to make the menu hierarchical, adding subpages? Any appropriate plugins for that? If ...
1
vote
1answer
950 views

How can I detect whether a BuddyPress page is active from within my theme?

I'm trying to work sub-menus into my theme but am running into issues when navigating to BuddyPress pages (as opposed to standard WP pages, posts, etc.). Basically, what I want to do is have pages ...
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 ...
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 ...
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 ...
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
0answers
44 views

Hardcoding links to wp_nav_menu

I am currently trying to add a some links to the end of my wp_nav_menu but am having a hard time with the callback function that creates the list of languages I want to insert. The first function is ...
1
vote
2answers
45 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 ...
1
vote
1answer
26 views

Unable to center menu and header image twenty twelve

I have a really simple site at cyriljoyce.com on the 2012 theme I created a child theme to center the header and menu bar but just cannot seem to make it work. The child theme text is below The line ...
1
vote
1answer
42 views

Sticky Header in Wordpress using BootstrapWP theme [closed]

So I am using Rachel Baker's open source BootstrapWP starter theme to develop a Wordpress theme. There is a repository on Github but I didn't think this question was appropriate to post there. I am ...
1
vote
1answer
46 views

getting parent page id when using custom menu.

Im using custom menus to display a menu using wp_nav_menu(). I want to get the_content() of the parent in the menu, without setting it as a parent page in pages. Is there a way to get the parent id ...
1
vote
1answer
49 views

Create a Page via plugin

My problem is to show a list of products read from db tables. I know how to read them and I am able to produce the table, but only using a shortcode embedded in a page that I've created via WP. I ...
1
vote
1answer
59 views

Using Walker To Add Menu CSS Class Functionality

I'm trying to add the ability to insert Custom CSS Classes to menu items. I believe I do this by extending the walker_nav_menu but I'm not sure how to call the custom classes. This seems like such a ...
1
vote
1answer
26 views

Adding an admin menu page showing the link twice - how to solve this?

I'm newbie and I'm trying to create a plugin to add a menu to left menu in admin section. i have create the page but it is working fine. but i find the left menu being displayed twice. how can I ...
1
vote
1answer
133 views

Automatically adding categories and authors in custom menu?

I've spent a couple of days googleling around, looking for a way to automatically add categories and authors to my custom menu as soon as they are created (the same way that pages are automatically ...
1
vote
1answer
100 views

Can't include Language switch in Nav Menu

I am trying to add to my menu bar some language elements. I'm using the qTranslate plugin and I would like to add the language switch to the menu bar. My them is calling in the header.php <?php ...
1
vote
1answer
20 views

Recommended method for updating/adding menus when adding new theme

I'm working locally on a completely new theme. Once I'm done I'm going to use the "test drive" plugin to allow admins to test the theme before switching over to it. The problem is that with the new ...
1
vote
0answers
463 views

Creating a Mega Menu

Currently I am creating a theme based on BootStrap 3.0. And the design I came up with utilizes a Mega Menu Navigation. Right now I'm trying to add YAMM3 - Yet Another Mega Menu for Bootstrap 3, ...
1
vote
1answer
93 views

Different menu navigation per category

Hello all you helpful people :) I am using a self modified version of the 2012 theme and I would like to be able to display a different main navigation menu based on the category I am viewing. ...
1
vote
0answers
78 views

Walker Class - Check if menu item has description and if so add class to li

I am using a pretty common walker class to pull in the description when I call the wp_nav_menu function. I am using this to add an optional second line for the menu, using the description. This of ...
1
vote
0answers
101 views

wordpress register nav menu not showing in admin

I am using the following code to register a menu for my theme. In functions.php I have written the following: register_nav_menu( 'header-menu', __( 'Header Menu' ) ); When going into wp-admin ...
1
vote
2answers
59 views

Multiple languages menus problem

I'm trying to add language option to my website. I've coded my theme and I need to show the web in three different languages. I've got the little flags and I've managed to pass a php variable with the ...
1
vote
0answers
89 views

Wordpress menu performance is slow when lot of items

I have a menu with more than 100 items in total and it is very slow to manage all those, slow respond and slow saving. Is there any plugin to somehow improve performance and make my life easier in a ...
1
vote
0answers
110 views

Bootstrap Dropdown Menu unresponsive in mobile [closed]

I have built a responsive website using Bootstrap Theme the menu is working fine in desktop, but if I tap the menu button in mobile devices, more often unresponsive and the transition is delay. Any ...
1
vote
1answer
42 views

How to modify wp-includes without messing my wordpress installation?

I'm using a Twenty Twelve theme with a child theme. When the screen is shrunk to less than a certain width a responsive menu is toggled. The problem is that this menu's top level pages look the same ...
1
vote
2answers
76 views

How to customize submenus isn wordpress theme [closed]

I have a wordpress theme and in the header.php file it is displaying menus through this line : wp_nav_menu( 'theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default'); ...
1
vote
1answer
121 views

HTML list menu to Wordpress menu

I have purchased an HTML theme that I want to rebuild into Wordpress. I'm having trouble making the menu work. Beneath is the HTML for the menu. (without the beginning and end of the UL). <li ...
1
vote
1answer
795 views

Creating WordPress Plugin solely for Admin panel with dash menu and submenus

I am attempting to create a WordPress plugin which allows the client to use for help and other resources in a friendly interface. It would be desired if I could have guidance on creating a WordPress ...
1
vote
0answers
70 views

Customizing Primary Menu to include custom taxonomy description

I've a hard time implementing the custom primary menu behaviour. I've already: Created a custom post type: products that has a custom taxonomy: product_category associated with it. Activated and ...
1
vote
2answers
75 views

How can I add text to a single nav menu item?

I'm working on a theme that requires the end-user to specify the current performance season using a custom admin panel I've created, ie. "2013/2014", "2014/2015" etc., which I can retrieve using ...
1
vote
1answer
113 views

Set Item Order with wp_nav_menu_{$menu->slug}_items

I have some code that adds a menu item to a menu using wp_nav_menu_{$menu->slug}_items. It's pretty easy to add a menu item as the first or last item of the menu, but I was wondering if there's ...
1
vote
0answers
293 views

Alternative to wp_get_nav_menu_items?

I have tried out a technique to implement the wp_get_nav_menu_items, however, a child on the level 1 is being nested inappropriately on the menu. Kindly suggest an alternative of how this issue can ...
1
vote
0answers
118 views

Navigation menu not being assigned Theme Location

I am setting my navigation menu up using the following snippet in my functions.php. add_action( 'init', 'add_menus' ); function add_menus() { register_nav_menus( ...
1
vote
1answer
52 views

Unregister Nav Menu with fallback?

I am trying to create a child theme so theme updates are much easier. I want to remove the parent theme menus and add my own. I know I can modify the header.php file (where these menus exist) and ...
1
vote
0answers
42 views

One item not showing when programmatically Generating Navigation Menu

I am programmatically generating a navigation menu with the following.... add_action( 'init', 'register_navmenus' ); function register_navmenus() { // Check if Top menu exists and make it if not if ...
1
vote
0answers
61 views

Creating Category Specific menus

I have a question.. I am trying for this since many days.. but didn't get success. My requirement is say I have 5 categories: cat1, cat2 cat3 cat4 cat5 Now each of category has 'N' number of posts.. ...
1
vote
1answer
572 views

How to register custom menu widget

I'm trying to register a custom menu widget programmatically with wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm ...
1
vote
2answers
136 views

Grey out nav buttons unless is_user_logged_in()

I'd like to show my users some features I offer if they register in a special nav bar. I've created this for a logged in version and a logged out version: if ( is_user_logged_in() ) { $menu = ...
1
vote
1answer
501 views

Container class not appearing on navigation menu

I want to render a menu with a container like this: <nav class="nav"> However, the container is just rendering with the default class name applied which I don't want. <nav ...
1
vote
0answers
29 views

Adding custom menu widget to sidebar programatically [duplicate]

I am trying to add custom menu widget to the sidebar. I am not working on wordpress directly, but I am using an xml-rpc calls to manage worpdress site (it is possible via ...
1
vote
1answer
108 views

custom walker nav issue involving ajax

I am using ajax in a theme not written by me. This ajax gets the link clicked and then slides that page into view. it works good. In order for it to do it's thing, I had to make a custom walker for ...