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

Change menu items URL

I create a single page website and use only anchors (#) on main menu items. Now, I need to include a second page on the website and keep the same menu. I'm using roots theme. Then, I'm building menu ...
0
votes
1answer
88 views

Add login hyperlink to secondary navigation menu

I have the following lines of code in my functions.php file: #-----------------------------------------------------------------# # Custom menu ...
0
votes
2answers
200 views

Bootstrap button menu on wordpress

I have a simple 4 item menu on wordpress. I want to use the bootstrap button style for this menu. This is the hand-made code of what I want to get. <div class="menu-menu-container"> <ul ...
0
votes
2answers
73 views

Add Labels to Admin Menu ( How To )

I have a custom post type menu called "Notes". It has two basic sub menus: add new and show all. But I want to add more items under these post type but the default array just gave me these. How can I ...
0
votes
1answer
654 views

wp_nav_menu not highlighting the current category when viewing a single post

My WordPress site has a bunch of posts, all filed by a top-level category and a bunch of subcategories therein. I have the main site nav rendering the category pages, which, when clicked, get all ...
0
votes
1answer
313 views

Want to add different text after each menu item

I want my main nav bar to display menu items with very short description of said menu under each item's title. To do this, I was hoping to just inject the menu item's 'title' attribute into the ...
0
votes
1answer
749 views

Add class to all list items of wp_nav_menu

I have a wp_nav_menu to which I want to add a classes to the list items. I know this can be done by choosing 'css classes' from the screen options menu, but then I have to give every single li a ...
0
votes
2answers
52 views

How to create a menu item which is not a page

I have a few pages that contains technical tips. I would like to group these pages under the title "tips" in the menu bar, but I don't want to make the item "tips" clickable because it does not ...
0
votes
1answer
393 views

Editing or filtering the output of the Genesis navigation

I'm trying to edit or apply a filter to the default Genesis navigation genesis_do_nav Currently I'm extending a Walker class to add a <span> with data-attribute around the navigation's link ...
0
votes
1answer
23 views

Custom Menu not functioning properly

I register 2 menus in my functions.php file: register_nav_menus(array( 'main_menu' => 'Main Menu', 'bottom_menu' => 'Bottom Menu' )); I populate a menu in the admin and assign the ...
0
votes
1answer
844 views

Custom menus created but does not show up in admin panel

I am developing a theme of my own. In functions.php I added - add_action( 'init', 'register_my_menus' ); function register_my_menus() { register_nav_menus( array( 'front_login_menu' ...
0
votes
2answers
257 views

Why wp_nav_menu() doesnt show the proper meny when invoked two consecutive times?

I just noticed something weird I never saw before. I'm working on a project using WP 3.6.1. This project that has two different menus (actually, three, but that's not important). I'm calling them ...
0
votes
2answers
644 views

how to add Custom menu item like User name in Header Menu only

I am new to Wordpress I am setting up wordpress Site which has 3 Menus Top menu Header Menu Footer Menu My issue is I need to add the User name to My Top menu Only when User is Logged in But ...
0
votes
2answers
2k views

Show children (sub-navigation) of active menu item only

So I've searched the net and attempted to code a custom walker class that will do this, but I'm new to WordPress and although similar questions exist none fit exactly what I'm looking for, or suggest ...
0
votes
1answer
523 views

How to get Menu Navigation Labels to output HTML

I'm trying to follow Jason Bradley's advice on how to style my Wordpress menus. Specifically, I want to insert an icon before my navigation items using Font-Awesome. I tried putting this code in the ...
0
votes
2answers
62 views

Hide a menu on posts

Is it possible to not have a menu on post pages. I think it would be something like "if page show menu, if post don't show menu" but I'm not sure how to put that into PHP. Thanks
0
votes
1answer
73 views

Retrieving a list of menu items in an array

I am currently am working on a custom theme. In this theme, I have a menu that I registered using register-nav-menu, and then I am displaying the menu to my web page using the wp_nav_menu function. ...
0
votes
2answers
93 views

Rename menu items for All except super admin

I can rename wp-admin menu items But How Can I active it for all users except Super Admin ? add_filter('gettext', 'rename_admin_menu_items'); add_filter('ngettext', 'rename_admin_menu_items'); ...
0
votes
2answers
128 views

remove menu items if user can't read

I want to create one menu for all users and then hide / remove items from the menu if they don't have access to the page the link leads to. This to me seem like an SOP. I really don't understand how ...
0
votes
2answers
824 views

Limit top level menu items on wp_nav_menu

I've got a situation where I need to limit the top level menu items on a custom menu. The design only has room for 4 fixed width items, and I want to future proof it from displaying more. Looking at ...
0
votes
3answers
111 views

How can I add a class to a single menu item?

I'm trying to modify a non-WP theme to be compatible with my newest WP project, and one of the issues is a drop-down menu item. Since it's a totally custom theme, I want to replicate the behavior of ...
0
votes
2answers
167 views

How do you center the main menu in CSS? [closed]

Do any of you know of a way to center the main menu on my company's site? I have been trying all day and am frazzled! I've tried editing the stylesheet but nothing has fixed it. I've tried throwing ...
0
votes
2answers
787 views

I want remove last after wp_nav_menu

My code call menu: $defaults = array( 'theme_location' => '', 'menu' => '', 'container' => 'div', 'container_class' => true, 'container_id' => ...
0
votes
1answer
308 views

how to automatically generate hierarchical menus from hierarchy of pages?

I have a photo site, and I take care to crested a logical nested hierarchy of pages. e.g. for photos I just posted, I created the following pages: site.com/2013/ site.com/2013/colorado/ ...
0
votes
1answer
243 views

How to display custom post meta in the appearance->menus page

I'm working on a website and added a custom meta option for all pages / posts called: "Location". $value = get_post_meta( $post->ID, '_privacy_location', true ); I'd like to add the value on ...
0
votes
1answer
335 views

PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content

I wish to use accordion menu http://wordpress.org/plugins/jquery-vertical-accordion-menu/ via function that is loading different menu based on page template. What is more, I wish to ajaxify that ...
0
votes
1answer
2k views

Add child pages automatically to nav menu

I have built a custom menu in Wordpress that contains links to posts and pages. I am adding it to my header using this line of code: <?php wp_nav_menu( array( 'theme_location' => ...
0
votes
3answers
412 views

Adding first and last class to Menu on top level only

I'm using a WordPress Menu to create a navigation structured like this: Home About Contact Sub Page Using this code from kuroi's response here I'm able to add first-menu-item and last-menu-item ...
0
votes
1answer
377 views

How To Display A List Of CPT Posts In A Meta Box On Menus Page?

Is it possible to display a list of the custom post type POSTS, not archive link, inside a meta box on the nav menus page? Currently, it displays each CPT post inside it's own metabox, but I would ...
0
votes
1answer
204 views

Navigation menus not showing because of custom post type filter

I use this filter to show content from all custom post types in tags archive page function tagFilter($query) { $post_type = $_GET['type']; if (is_tag()){ if (!$post_type) { ...
0
votes
1answer
476 views

Keeping 'current-menu-item' highlight of navigation menu?

The navigation menu of my site is generated via wp_nav_menu( array( 'theme_location' => 'primary') ); Some menu entries are category pages (say /category/news/). This page contains links to the ...
0
votes
1answer
624 views

magic “MENU” button under Twenty Twelve theme

I'm using Twenty Twelve with one of my sites on WordPress and someone told me that the site wasn't appearing as it should. She told me that instead of the menu, she saw a "MENU" button, which if ...
0
votes
1answer
79 views

How to add menù section to my WordPress template?

I am pretty new in WordPress blog and I am developing a blog with this template: http://scorejava.com/wordpress351 As you can see at the top of the page there is a "menù" that only show the page in ...
0
votes
2answers
99 views

How to add a page to header that is outside of WordPress?

I have a page on my site that is not a page in WordPress. How can I add it to the header? EDIT: The page is .php. It is outside of the theme structure.
0
votes
1answer
510 views

How can I add a delay to the collapsible menu in Twenty Eleven?

The navigation menu closes immediately upon moving the mouse outside of the menu item's area. How can I introduce a delay that will keep it open a second or less to keep visitors from becoming ...
0
votes
2answers
1k views

Menu Arrow for Child Element

I have a menu for a website I am designing and there are parent and child elements...I was wondering if there was someway I could add an arrow to my navigation if the parent has a child element? My ...
0
votes
1answer
33 views

changing host.. data loss

I changed my host from dreamhost to godaddy.. My menubar setup is not showing up.. all of the pages are visible when there is only supposed to be a couple visible .. the site is first in english but ...
0
votes
1answer
213 views

Prevent menu from loading in a page template [duplicate]

Possible Duplicate: Remove navigation from header in custom page template Is there some way to remove wp_nav_menu in a page template? I can't find anything related to page templates other ...
0
votes
1answer
48 views

Custom menu with different behavior for every item

I'm working on a custom menu that is particularly complex and I like to know which is the right way to build it. This is the structure of my menu: - Home (is a PAGE) - Information (Is a PAGE with ...
0
votes
1answer
85 views

I'm using wp_nav_menu to display my menu, but I want one more link in there that is a hardcoded link. How can I do this?

I want to have all my dynamically generated links in my nav menu, but the second last one should be a link to my "Work" for my portfolio, which is just a link to a section on my main page. (Anchor ...
0
votes
1answer
366 views

Theme Location empty

I have a problem. I have a WordPress theme which supports two navigation menus. The primary menu shows all the pages, and the secondary menu displays the categories by default. When I go to ...
0
votes
2answers
5k views

add span class inside wp_nav_menu link anchor tag

I found examples adding a class to top level items, so we can display an arrow in menu items with sub-items, but is seems terrible to cope with the already built in WordPress classes, can't display ...
0
votes
2answers
3k views

Get custom post type categories to show up in menus

I'm wondering how it's possible to add custom post type categories as an option to add as a navigation menu item. What I have: $portfolio_args = array( 'labels' => array( 'name' => ...
0
votes
2answers
147 views

Theme only supports one menu? [closed]

I would like to use the main menu but also have a menu in the footer for things like about, career, etc. Am I fubared foobared or can I do this?
0
votes
1answer
226 views

wp_nav_menu check both hierarchy fail?

I see that in menu exist to kind of hierarchy to find the parent and ancestor. They look for "category or page" hierarchy or for "menu item" hierarchy. But when both exist in a depth tree branch, ...
0
votes
1answer
1k views

Responsive dropdown menu with smaller screen sizes

Working on a theme template and trying to make the menu responsive, so that it will change from a horizontal layout into a block format at a certain screen resolution. I have tried one tutorial which ...
0
votes
1answer
808 views

How to make a plugin auto-add item to nav menu

I'm building a contact information plugin that writes data to a page. So far, so good. What I would like is to build a function into the plugin that adds a navigation item to the main nav bar on the ...
0
votes
2answers
134 views

Replace the slug of parent pages with # [closed]

I'm creating a Wordpress site with a Superfish CSS3 / Jquery dropdown menu, complete with hoverIntent as displayed here: http://users.tpg.com.au/j_birch/plugins/superfish/#examples As far as I can ...
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
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 ...