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
198 views

changing theme folder name breaks menus - twentyeleven

I needed to change the twentyeleven theme folder name, so I activated the default theme, changed the twentyeleven folder name to X, then reactivated it. Everything worked except the menus were all in ...
0
votes
1answer
486 views

How to show pages in menu without link

I need to have a menu like this: - a (link to a) -- b (link to b, children of a) -- c (link to c, children of a) - d (NO LINK, #) -- e (link to e) I have the menu composed by the pages, as ...
1
vote
1answer
270 views

Best way to customise wp_nav_menu [duplicate]

Possible Duplicate: Menu items description? Custom Walker for wp_nav_menu() I'm familiar with WordPress and using the WordPress menu system. But I'm looking for a way to add custom HTML to ...
0
votes
1answer
40 views

Custom menu: Link names

I would like to build a wordpress theme with a custom menu (no dropdowns, nothing fancy). I am trying to get wp_nav_menu do what I want, but I can't quite see how to achieve the following. I would ...
0
votes
2answers
1k views

Sitemap Page build from Menu?

Is there a plugin available that creates a sitemap from the default menu, e.g. as shortcode or requestbale URI?
-1
votes
1answer
418 views

highlight parent page on menu when child page is on sidebar (and not on menu)

i'm using twenty-eleven, i have on the menu 4 items : Home, About us, Contact, Clients it's a custom menu. The site currently is on localhost, so no preview is available. However i haven't put the ...
0
votes
1answer
259 views

Wordpress Menu - creating a fake link [closed]

I like to create Web site mockups for clients using Wordpress. Typically I will only create the landing page and a believable navigation menu. To keep from creating extraneous pages I will create a ...
0
votes
1answer
4k views

Submenu in sidebar custom page template

i would like to show the submenu of my page in a custom page template on the left side in a Sidebar-area. Does any know the code for showing the submenu. Wordpress 3.4.1 Thanks a lot!!!
5
votes
1answer
1k views

How to get IDs for objects in menu branch?

Is it possible to print content of all menu items, when displaying menu (or branch of menu as in question about displaying menu branches) ? Once I click on About Us I wish for new page to display ...
1
vote
1answer
2k views

Using Zurb's Foundation Tabs as Wordpress Nav (Active Tab)

This is a question more geared towards those of you out there that have experience working with the popular SASS/JS Framework, Foundation by Zurb. I am trying to use it as my structural core to my new ...
0
votes
2answers
3k views

WPML Plugin Not displaying multilingual Menus

I'm using WordPress 3.0 Menus, which the WPML (wordpress multilingual) plugin claims to have added support for in a recent release. I am using the most current version of the plugin. My problem is ...
0
votes
1answer
121 views

displaying meta key value with wp_page_menu

I know that WP3 offers wp_nav_menu and description field but I was wondering if it is possible to alter wp_page_menu to echo desired meta key value next to the page link in format that is adjustable. ...
0
votes
1answer
95 views

Second tier sidebar navigation

I'm trying to create a second level navigation in WordPress. I've found lots of examples, but none of them seem to do exactly what I want. This code below has me almost there, but I want an active ...
2
votes
2answers
1k views

add_action for saving a custom menu

Say you have custom menus enabled with your WP theme. Is there any action associated with saving a menu once you've arranged it accordingly? To further clarify: say you've arranged a menu with some ...
0
votes
2answers
2k views

remove class “sub-menu” from wordpress drop down menu

I am building a wordpress website with dynamic wordpress menu + one level drop down menu (sub menu). since my drop down is a bit tricky and required special CSS I tried to remove the styling that ...
0
votes
1answer
205 views

How to add custom menu item on plugin activation?

When my plugin is activated, I would like to add a new menu item. Here is my code: class My_Plugin { function __construct() { register_activation_hook(__FILE__, array($this, 'install')); } ...
0
votes
1answer
1k views

Change sub-menu css class

I use custom menus with drop down. I want to make two different drop-down menus each with different styling. Wordpress puts drop-down items in a single ul with class="sub-menu". But I need different ...
0
votes
1answer
593 views

Change the class of wordpress menu

I have problems with wordpress menu level classes. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> this is the code i used to generate my menu, First level menu id is ...
0
votes
1answer
374 views

How do I remove this menu bar?

I just use the pages for navigation. I don't need the menu bar that has the single item - uncategorized. Here is the link to the theme being used. ...
0
votes
1answer
587 views

how do I delete (not exclude) a menu item from navigation bar

I'm building a site's navigation bar programmatically, using the following code: wp_update_nav_menu_item($menu->term_id, 0, array( 'menu-item-title' => $page_data->post_title, ...
1
vote
0answers
361 views

Help with walker for nav

For some reason, this walker won't work when I pass in 'echo ' => 0, it always prints the nav, and never returns the nav as a var. I can't seem to figure out where it's by passing that in ...
0
votes
2answers
1k views

How to add a second custom menu in my sidebar when theme only supports one?

I simply want a second menu in my sidebar to show on all pages. My theme only supports one custom menu though. I am using the first custom menu for the top level nav, and I wanted my 2nd custom menu ...
1
vote
1answer
151 views

Menus like a CMS

Here is an example structure of some content: Parent A -- Child A -- Child B Parent B -- Child C -- Child D Parent A should link to the content of Child A and Parent B should link to the content of ...
0
votes
1answer
742 views

Dynamic User State & City selection

I need to implement a state-city selection for my users to choose from. Where they first choose their state and then there is a city drop down field that shows only the cities in that state. ...
1
vote
2answers
4k views

How to style current page menu item when using a walker

I have designed a custom menu and would like to be able to style the individual li dependent whether it is the current page or not? I believe this is normally pretty straightforward using a class such ...
6
votes
1answer
235 views

New post notification in wp_nav_menu

By blog has a header menu that consists of different links to pages like "About Us", "Help", "Contact Us" and "Blog". The "Blog" link is actually a page with a custom template that displays all the ...
1
vote
1answer
955 views

wp_nav_menu, walker class, categories as classes of li

OK I'm trying to show my principal menu so I use the following code: <?php $defaults = array( 'theme_location' => '', 'menu' => '', 'container' => false, ...
2
votes
1answer
2k views

How to use logout function on custom menu link?

All I am using wordpress custom menu, and there is one menu as Logout. I know wordpress Logout function <?php echo wp_logout_url(); ?> But how can i use it in custom menu ?
0
votes
1answer
372 views

wp_nav_menu action/filter help

Maybe an odd question, I have a site that makes heavy use of nav menus. I'm looking to improve my site's performance, and since the menus hardly ever change, I wrote some PHP to spit them out into ...
0
votes
1answer
534 views

Wordpress Menus - How to add inline styles to UL menus

I've just converted my HTML version of a theme over to Wordpress, and I'm currently converting the dropdown menus over. What WordPress processes: <ul class="dropdown"> <li ...
-1
votes
1answer
4k views

Add “sub-nav” class to a sub menu parent item

i have a problem. I have an CSS Dropdown Menu. The HTML Code of the is this: <ul id="nav"> <li><a href="#">Home</a></li> <li><a ...
0
votes
1answer
289 views

Problem adding 'has-children' class to wp_nav_menu

According to a number of references online, I should be able to use the following function to add the class, has-children, to menu items that have children under them: function ...
1
vote
1answer
174 views

Hard-coding custom menu elements for menu manager

I realize that one can add custom links through the menu manager but is there a way to manually create such components through the functions.php file? More specifically, one example here relates to a ...
0
votes
1answer
1k views

Sort wp_nav_menu() by menu order

I have made a custom menu handler for the back end, sorting the via a drag drop based on CMS Page Order. The problem now is that it seems that it's not possible to sort wp_nav_menu in any other way ...
1
vote
0answers
421 views

Custom Walker for wp_list_categories

I need some help with making of one Walker Class. Now I’m having a menu with categories and in the dropdown there are some subcategories. The menu is something like that: <div ...
0
votes
1answer
920 views

wp_list_pages not showing cpt as I expected

I have a CPT called 'vacancies' here is the code that registers it: function register_cpt_vacancy() { $args = array('labels' => $labels, 'hierarchical' => false, 'supports' => ...
0
votes
1answer
494 views

Buggy wp_nav_menu?

I hope somebody can show me some light on this. I am working on a site that has a 3 level menu which loads calling 3 different wp menus (let's say "main-menu", "projects-submenu", ...
0
votes
2answers
1k views

Insert a div before the wp_nav_menu

How do I go about inserting a custom div before the wp_nav_menu() adds the ul? The problem is that the script is inserting my 'div menu button' after the nav ul instead of before it. I am trying to ...
0
votes
2answers
670 views

Hard-coding a shortcode as the last menu item in primary navigation?

I have Genesis framework installed with a child theme. My client wants their themes "shopping cart" shortcode to be the last menu item, in their primary nav, no matter how many menu items there is. ...
2
votes
1answer
111 views

Put a wp_nav_menu inside another one

I've got two wp_nav_menu's defined - main and sub. The backend menu editor lets me add pages or categories or custom links to my menu, and I can place them under existing pages/categories/links. ...
0
votes
2answers
89 views

How to get wordpress navigation to work

I have been using this code to display my wordpress navigation and it worked; <ul id="menu"> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> However,i want ...
2
votes
2answers
5k views

What's the easiest way to duplicate an entire navigation menu?

What's the easiest way to duplicate an entire navigation menu? I don't care if it involves SQL commands or whatnot. I just have some really big menus that I'd like to duplicate. Didn't see a plugin to ...
0
votes
1answer
178 views

Menu not styling. New menus functionality giving me a headache

I can't find a good tutorial on the new menu handling functions, and the ones I found don't seem to work for me. What am I doing wrong? In my functions.php: (I'm using the Blank Slate theme as a ...
1
vote
0answers
79 views

Adding menu items?

I'm having a couple issues I can't resolve with my Wordpress site. First of all, I'm using "Weaver II 1.1.3" theme, free version. I recently installed Role Scoper ...
7
votes
2answers
1k views

Add Caret to Menu Items with Sub-Menus in WordPress Theme

I'm working on a custom theme using wp_nav_menu(). What I want to do is add a caret to menu items that have sub-menus. For example, If my menu looks like this: Menu Item 1 Menu Item 2 Menu Item ...
0
votes
2answers
924 views

Add a submenu to wp_nav_menu

I literally don't know where to begin with this. The only wp_nav_menu() documentation I found was http://codex.wordpress.org/Function_Reference/wp_nav_menu and all submenu docs reference a different ...
1
vote
0answers
30 views

Create custom page and add it in nav menu by code

I am creating a plugin, and this time it should: create a page and add it to the nav menu, all by code ... Here is an example: http://img823.imageshack.us/img823/8531/09072012205520.png
3
votes
4answers
2k views

How to add current, parent, and ancestor menu item IDs to body_class()?

(just got reccommended to post this over here from stack overflow...) I am just starting with Wordpress (defecting from Joomla)- having a bit of difficulty getting started. One thing I am trying to ...
0
votes
2answers
2k views

Limit User Iinterface for Admin?

Is there a plugin or a way where I can restrict or limit the buttons on the admin interface for a certain user? For example: for the user who has a role of a writer, he/she can only post content, ...
0
votes
1answer
261 views

if is_home(), change class of menu-item-225 of wp_nav_menu

Thanks for taking the time to check this out. I know it's outdated, but I'm using Wordpress 3.2.1. I have a Custom Home Page - where I created a Page for it and titled it as my Home Page with the ...