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

How can I only show one responsive menu on mobile devices?

Here's my site: http://dev.shoeporn.com/ I'm running WP 3.5 and using this plugin: http://wordpress.org/support/plugin/responsive-select-menu It is supposed to allow you to select which menus you ...
-1
votes
1answer
132 views

my theme automatically adds new pages to menu

I have a theme that has a problem. When I add new page in it, it automatically adds two menu item of that page. Here is my code from functions.php <?php if ( function_exists('register_sidebar') ) ...
0
votes
1answer
165 views

How do I programatically remove Menus?

I know that each menu item is simply post present in nav_menu_item post type. It has has ID and can be removed with wp_delete_post() but posts deleted this way don't remove menus present under ...
1
vote
3answers
665 views

Display three different levels of navigation from wp_nav_menu separately?

I have a three level nav setup using Wordpress menu creator. Structure: A —1 ——Y ——Z —2 —3 B C I wish to display each level of the navigation alone, in different areas of the page. With current ...
0
votes
1answer
237 views

Dropdown menu on click change

Im working on a website where I need to create a submenu that shows only the parent pages. When I click on one of the parents it has to show the children from that parent. Here is the menu hierarchy ...
0
votes
1answer
45 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
2answers
478 views

wp_nav_menu() loses 'current-menu-*' classes on single product page within category

I have my menu set up like so: Shop Online (WPeC 'Products Page' page) Product Category (WPeC Category) Product Category (WPeC Category) Product Sub Category (WPeC Category) Product Sub Category ...
3
votes
3answers
3k views

Menu limit, cannot add new menu items

I'm running WP 3.4.2 on a VPS. When I first moved to this VPS server and imported all my WP data from the old, the menus worked fine. However, for some reason, I cannot edit/add to the menus, and some ...
0
votes
2answers
476 views

wp_list_pages: only show subpages on the parent page?

I'm using wp_list_pages('title_li=') on my site. Some of my pages do have subpages, however I don't want to list them unitl I'm on an actual parent page that has subpages. So imagine my front-page: ...
1
vote
1answer
673 views

Check if page is in a certain menu

I have a client that wanted two "main menus" and we needed to programmatically display whichever menu contained the current page. How can I do that? Ex: We're on the "About" page. Figure out which of ...
0
votes
2answers
1k views

Creating a custom menu/widget area

I'm looking to create a /menu/widget area like the following site: http://www.microsoft.com/en-gb/default.aspx please see sections under downloads, security, support, about is this considered a ...
2
votes
2answers
187 views

Add nav menu CSS class to body

I would like to add the CSS class of the current menu item (and the classes of its parents & ancestors) to the current page body classes. For example, if the current menu item has a CSS class ...
2
votes
1answer
201 views

Problem with registering menus - What to do when other solutions aren't working?

I'm not able to get nav menus to register - and I'm not sure what else to try when posted solutions are not working? I've tried the solution in this post: register_nav_menus() won't register ...
1
vote
1answer
534 views

how can i add css class on current page in wordpress wp_nav_menu

how can i add css class on current page in wordpress wp_nav_menu For Example I Want To Use It In Wordpress wp_nav_menu <li><a href="index.php?id=index&colortheme=green" class="selected" ...
0
votes
1answer
102 views

How to activate/deactivate menu tab and keep the same id?

I have a problem here and i cant find/think of any solution yet. I want to have a menu button that can be activated/deactivated and still keep the same id so the CSS will still be applied. Is there ...
1
vote
2answers
79 views

Does loading of sub pages in menu cause load to the server?

I am working on a wp site where I need to manage 500s of child pages for a single page such as About menu can have more child pages need to manage those child pages as sub menu and I have more than 5 ...
0
votes
1answer
52 views

Setting a Master Menu on a Custom Post Type

I am currently developing a site for a car dealership to list their inventory. I have setup the car up as a custom post type. Each post will have children (gallery, features, accessories, etc). I ...
-1
votes
1answer
287 views

How to create a custom WordPress navigation menu?

I hired a designer to create a custom website for my startup home business. Two years later the site is uploaded onto WP but I can't do a thing with it. The site is password protected as it is still ...
2
votes
1answer
197 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
3answers
3k views

Convert WP Menu to a Drop Down for Mobile browser

I'm working on a wp project with responsive theme. I have single level nav menu at the top of the site, that I want to change to a Select Option tag for mobile browsers (small screens) with options ...
0
votes
1answer
71 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 ...
-1
votes
1answer
157 views

How can I make this process automatic?

I have a Bakery page. Every time I add a child page such as cakes, I would like to add the page title cakes to a custom taxnomy. I also want to add this child page to a menu which displays these child ...
0
votes
1answer
3k views

How to add social buttons like facebook and twitter in the footer of a theme?

Hi I own the blog camilamfotografia.com.br and I'd like to add social buttons in the footer or in the navigation menu to link my site to facebook twitter flickr pinterest etc... I have tried without ...
-1
votes
1answer
329 views

Class for Selected Menu using wp_nav_menu

I create Widget for Vertical menu Now I am trying to get selected or current menu using wp_nav_menu Any one know how to Add current class when selected in wp_nav_menu
1
vote
1answer
106 views

Main menu highlighting on subpage which is not in submenu but in hierarchy

I have my menu made of images. Therefore I use divs and with .current-menu-item I use CSS to change the image. This works if I'm directly on this main page. If I'm on a subpage I cannot use this trick ...
1
vote
0answers
85 views

How to re-arrange the MENU of “Allure Real Estate Theme for Placester” wordpress theme?

I am using "Allure Real Estate Theme for Placester" wordpress theme, I tried the below three methods but no positive result in realtypointusa.com I tried in Dashborad-> Appearance-> Menus and ...
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: ...
1
vote
1answer
381 views

how to get nav menu list through menu name in wordpress

How to get nav menu list through menu name in WordPress I'm using this code by this code but showing all pages not working with custom nav menu name <?php ...
1
vote
2answers
60 views

Sidebar links for different pages

Hey all i am wondering what i need to add in order to have a different sidebar for a set page? I created a category for the page (called PatientEdu): And made sure the page was linked to the ...
0
votes
1answer
144 views

Page header menu links change

I am trying to find out where the header menu links on my WP is located so that i can change the URL of the page. the link is: http://blahblah.com/?page_id=11 and i need to change it to: ...
-1
votes
1answer
217 views

Display sub menus as separate lists

I need to change the way of rendering menu in WordPress - I guess I should write my own walker class but I'm not sure how to bite it. What I'd like to achieve is to render each level of menu as ...
0
votes
1answer
256 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
1answer
239 views

Walker_Nav_Menu creating too many closing tags?

created this walker below to create a set of tabs. All looks ok but in the source there are several more than there should be causing validation errors. I only want to generate a tab for 'question' ...
1
vote
2answers
189 views

Unable to create or edit menus

I'm running 3.4.2 on Ubuntu. I'm unable to make any changes to menus at all. Also I'm unable to upload anything (flash or browser uploader) to the media library. However plugins have no problem adding ...
1
vote
2answers
411 views

wp_update_nav_menu_item not saving in multisite API

I'm creating a script that automates build a wordpress site from another CMS. I've been able to change every setting: themes, options, subdomain, site title, etc. But what is eluding me is being able ...
5
votes
2answers
299 views

Call custom field into menu item

I have a navigation menu in Wordpress. I would like it to check if the page has a custom field of "menu_icon" and if it does, add that custom field into the menu item it corresponds to. I'm sure this ...
0
votes
2answers
539 views

Specifying Class style for Menu

Im integrating Superfish into WP. I have called the CSS and the JS. However when I place a class style in the wp_menu as below, the menu is disappearing (see here for rendered output). Could anyone ...
0
votes
2answers
3k 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 ...
1
vote
2answers
309 views

How to switch between the Primary Menus programmatically?

Lets say i created 2 Different Primary Menus (in the Appearance > Menu .. section). Then in the (Theme Location > Primary Navigation) Section, i can set 1 Menu to be activated. So how can i switch ...
0
votes
1answer
569 views

How to rewrite the output of wordpress nav menu?

I have been trying to figure this out for a while. I need to overwrite the default output of the wordpress nav system. Right now it is like: <ul id="main-nav"> <li ...
1
vote
2answers
2k views

Wordpress Custom Menu Widget Style

I am wondering if anyone knows the best method for splitting 1 custom menu widget (located in my sites footer) in to 2 columns. There are a total of 8 links, so I would like it to be split in to 2 ...
0
votes
1answer
96 views

Bought custom navigation menu from codecanyon, how to change feature.php?

I bought a nav-menu with css but not sure how to use this in my wordpress theme. Is there a standard way to implement it? Like this ...
0
votes
1answer
64 views

Create and style menu

I have been assigned with the task to create a menu that can be added or removed from wordpress admin. Right now the menu is hard coded into the templates. But I want to use default menu function ...
-1
votes
3answers
66 views

Adding a post to a page

I would like to know how I can add a specific post to a specific page? It would be great if anyone can suggest a reference to this problem. Do I need to create a post category to relate with a page? ...
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
1answer
105 views

Custom menu linking to page not found

I have built a series of pages and sub pages in wordpress. Then, using custom menus with 5 x top level menus and then sub-menus under 3 of these top level menus: Menu 1 Menu 2 - Sub Menu 1 - Sub ...
0
votes
1answer
111 views

Submenu opened problem

I am trying to fix a problem with a submenu. I have coded (as you can see on jsfiddle: http://jsfiddle.net/8899x/87/ ) my horizontal menu and the submenu. I would like to leave the submenu opened when ...
0
votes
1answer
687 views

Bootstrap menu - make menu entries with submenu not clickable

I am currently developing a new WordPress theme employed on the basis of twitters bootstrap build. To use the menu Custom Navbar, I've followed the instructions of goodandorgreat. ...
3
votes
1answer
410 views

Extend walker class with custom post types [closed]

I'm using the walker class below, but I can't make it work with custom posts. class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu { function end_el(&$output, $item, $depth) { ...
0
votes
2answers
2k 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' => ...