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 (6)

0
votes
1answer
11 views

Tag Menu items based on their categories

Suppose I have a site with this menu-structure: food banana carrot apple lettuce where the fruit-items belong to fruit and the vegetables belongs to vegetable. Now ultimately ...
0
votes
0answers
12 views

adding sub menu items make the parent menu item non clickable

Here is my menu structure link. And this is my website link http://www.clabiane.net/, you can see that menu is not working as it is supposed to work. The main thing here is that the parent menu item (...
0
votes
1answer
36 views

How to add search to menu?

How to add search to menu? I want to have: add_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2); function add_search_box_to_menu( $items, $args ) { if( $args->theme_location == '...
0
votes
0answers
816 views

collapse twenty twelve submenu in mobile version

In the twenty-twelve theme, the following code will collapse the sub-menu ul/li on the mobile version. The problem is that it also breaks the normal version of the menu. How can I use it only when the ...
0
votes
1answer
43 views

Eliminate menu collapse button on website

I have a website I'm working on sandyhookfoundation.com/wp. It loads on desktop browsers with a "menu" button in the top left corner of the main menu. I can't seem to find how to eliminate it. I ...
0
votes
0answers
30 views

Menu collapses but doesn't expand when clicked on

I'm working on a website at sandyhookfoundation.com/wp/. When I minimize the browser window, the main menu collapses properly, but does not expand when clicked on. Also, I can't get rid of the "menu" ...
0
votes
1answer
13 views

wp_nav_menu custom walker <a> class

So I'm learning about custom walkers and I've run into a few issues. I've got a custom walker set up. One issue I'm having is figuring out how to add a class to the <a> inside of the start_el ...
0
votes
2answers
32 views

Make a permalink to the most recent blog post

I want to make a permalink to my most recent blog post. I would use this link as a navbar link. The reason I'm not putting code straight into the navbar is because I am using a widget which will not ...
-4
votes
1answer
54 views

Second dynamic menu which changes on every page [on hold]

Need to create second dynamic menu (first is static), which would be changed on every page. Anybody have ideas how to make it?
3
votes
2answers
7k views

Using wp_get_nav_menu_items() to list children of children pages

I'm working with a Genesis Based Theme and I'd like build a Page/ Child Page menu structure. That part I can do with the help of some code produced by Bill Erickson. Essentially what I'm trying to do ...
-3
votes
0answers
19 views

Wordpress theme Impreza: Menu not showing when I'm logged out from WP

I'm using WP theme Impreza. Problem is menu doesn't show when I'm logged out. When I'm logged in menu is showing.
0
votes
1answer
443 views

Can't create a SubMenu

I have created a new WordPress blog at http://www.shanytopper.com and I have a problem. I am using a wp_nav_menu for the main menu in my website (I added the suppert to the theme myself), and it ...
0
votes
1answer
736 views

How to retrieve depth of menu into template

In wp_nav_menu i use for the menu, with custom walker, i can get the $depth parameter in the start_el function function start_el(&$output, $item, $depth, $args) but, outside this wp_nav_menu(),...
0
votes
1answer
953 views

Child pages don't become submenus (as in the twenty-ten theme)?

I'm using the theme Starkers, which is based on twentyten. My twentyten theme places child pages below its parent page. But the new theme (based on Starkers) I'm developing doesn't (it just places it ...
-1
votes
0answers
30 views

Header.php toggle navigation button not working [on hold]

I am using bootstrap to customise my blog theme. Then I have used collapsable navigation bar in my header.php page. The problem is the toggle button is not toggling the navigation menu. I am not able ...
-3
votes
0answers
8 views

My menu is displayed but can't nagivate when Clicked [on hold]

I have updated my WordPress recently and customized my blog, however the menu bar cannot be clicked into, please help me out. Thanks! http://veravariesties.altervista.org/veravarieties/
0
votes
1answer
39 views

Show posts count for Categories and Tags in wp_nav_menu

I'm trying to show WooCommerce Product Categories, Post Categories, Product Tags, Post Tags and Custom Taxonomy posts count in main navigation using wp_nav_menu. My WP_NAV_MENU code &...
1
vote
1answer
441 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 &...
0
votes
1answer
17 views

Theme tweak to header [closed]

My theme's support has been great generally but the following is out of their support policy (maybe because it could affect responsiveness). Is there any way I can align the navigation menu towards ...
1
vote
0answers
24 views

Conditional Nav Menu Inside Nav Menu Across Multisite Sites

I am attempting to use the main site menu across a bunch of sub-sites in a WordPress multi-site configuration. The sub-sites use the main site's navigation. However, I want to omit one tree of links ...
0
votes
1answer
17 views

menu-item class missing on wordpress menu

I have this code in my header.php and its working properly except showing li's without menu-item class, its showing them with page-item instead. this is when i dont have a menu created from admin and ...
1
vote
1answer
2k views

Wordpress 3.5 dropdown menu

I'm pretty new with WordPress and I want to create my own dropdown menu without the use of any plugins. I already did some research but there are some things I do not understand. In my header file I ...
0
votes
0answers
8 views

How to move sub menu ul outside of main menu li?

I am struggling to understand how the sub menu of wordpress works. I have set up a menu in the Appearance panel, and I am using bootstrap. When I add a sub menu item, the ul that enclose the sub ...
0
votes
1answer
24 views

Getting URL value from menu item by ID

I want to display a link on the Frontend, but the URL value changes over time. It'd be very easy for me to just change it manually in the Wordpress menu once (it's also displaying there), and then ...
0
votes
0answers
10 views

Wordpress Menu Integration

I designed a html menu and tried to integration to Wordpress, but couldnt achieve. How i can integrate below html menu for wordpress? <ul class="cf"> <li class="index-collection ...
0
votes
1answer
18 views

Is it possible to seperate wordpress menu by different div?

I'm looking for a way to display a WordPress menu separating its links into different divs like this: <div class="col-2-4"> <p><a href="">link</a></p> <p>&...
0
votes
0answers
13 views

how to adding css classes when it has 2 level children true wp nav_walker

I need to create a website true bootstrap 2.3.2 ( cause of sub-menus). and it has 3 or 4 level in menus. <div class="nav-collapse collapse"> <ul class="nav go-right"> ...
0
votes
0answers
10 views

Register a menu onclick function

I am trying to add this in an abc.php file where add_footer_menu() is a onclick function. This is showing me the "Menu added." but menu is actually not generating. <script type="text/javascript"&...
1
vote
2answers
746 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
637 views

Can I output a custom taxonomy as a submenu in the site navigation menu?

I'm building a WP 3.2 site with a couple of custom post types and taxonomies. I'm calling one of these custom post types programs, and its associated taxonomy is called topics. I'd like to add an ...
0
votes
1answer
64 views

How to check custom fields from functions.php

I'm trying to hide certain menu items based on the custom fields on a page. I could use CSS or a script to hide the items, that's not the problem. What I don't know is how I can check the custom ...
1
vote
1answer
1k 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 ...
0
votes
1answer
479 views

wp_nav_menu() doesn't work

I'm working on a theme with custom menus, currently using WP 4.0.1. I'm registering two menus in functions.php: register_nav_menus( array( 'primary' => __( 'Main Menu', 'wsy' ), ...
0
votes
2answers
2k views

How to add ul class on nav

I've been learning to convert HTML to WordPress and want to convert on to class like this: <div class="mainmenu pull-left"> <ul class="nav navbar-nav collapse navbar-collapse"> ...
1
vote
2answers
2k views

Nav menu items disappearing (but not immediately)

I'm working on a site where some of the nav menu items disappear (from the front end, the back end, and the database). However, debugging is extremely difficult since they don't disappear immediately! ...
0
votes
3answers
26 views

How to disable permalink of a particular menu item?

I'm using WordPress Twenty Sixteen theme. Now I've a menu item named Product and it has a sub menu. The product page has a permalink as usual, but I want to remove it i.e., when I click on this menu ...
1
vote
1answer
61 views

$variable (counter) inside wp nav menu

My WP menu structure looks like this (simplified) <ul> <li class="dashboard menu-item ... menu-item-56"><a href=#link">WP link</a></li> <li class="messages menu-item ....
2
votes
2answers
1k views

wp_nav_menu() mark current item ancestor of custom post type

This solution does almost what I want it to. Only thing is, I have my menu set up as follows: Menu item 1 Menu item 2 Custom post type 1 Custom post type 2 Custom post type 3 Menu item 3 ...
0
votes
0answers
23 views

Custom_Walker_Nav_Menu is repeating my navigation menu in wordpress

I am converting HTML Template to wordpress theme. I almost convert everything expect my navigation menu. I want exact same navigation menu that is in my HTML Template. I searched a lot on how to ...
0
votes
0answers
11 views

What is the best option to change menus automatically using cookies in a Multisite installation?

I am developing a Portal using the Wordpress Multisite option. I would like to create a portal's homepage with options that direct the user to his country's website (Subdirectory). And i would like ...
0
votes
1answer
966 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? ...
0
votes
2answers
648 views

Automatically add child pages to menu

I've been reading through some of the questions and solutions people have already asked to no avail. I have 4 menus on my WP Site, each of which will have children. What I would like the menu to do ...
0
votes
2answers
532 views

Hide page link in main menu from anonymous users

The title pretty much explains itself, I'm looking for a way/plugin to hide the menu link to a specific page from users that aren't logged in.
0
votes
3answers
869 views

How to remove dropdown from wp_nav_menu

I dont want to have dropdown (select - options) in my wordpress menu, even in mobile or lower width devices. I know I can use css to hide it, but I want to remove it at all. I googled for an hour and ...
0
votes
0answers
19 views

Disable Responsive Mobile Navigation Menu?

With my theme I currently have a 'hamburger menu' that slides in on a desktop screen, but with the responsive design, on a mobile or small screen, there is a dropdown menu instead at the top. (Cherry ...
0
votes
2answers
2k views

Wrapping link and .sub-menu with wp_nav_menu

I want to wrap each sub-menu ul and the tag just before it with a div. I can create the opening tag using the 'before' attribute of wP-nav_menu like this: wp_nav_menu(array( 'before' => '&...
1
vote
1answer
29 views

Custom Static Links For Specific Menu Right Before/Next The wp_nav_menu Function now working

I am trying to add custom links next/before my built in menu, specifically for main_menu. I have placed this in my functions.php and have given list-items in nav-menu-after.php and also in the before ...
1
vote
1answer
669 views

how to change the output of wp_nav_menu using css classes

When we add a class to a menu item through dashboard, the css class is added to "li" tag of that item. Is there a way to add these css classes to "a" tag of that item, instead of "li" tag? As you ...
1
vote
2answers
867 views

Using website header, menu and footer on Wordpress blog

I want to use the header, top menu and footer from my website on my Wordpress blog. The website itself is not a Wordpress site but the blog is and resides in a 'blog' folder on my server. So I guess ...
0
votes
1answer
840 views

How to add nav menu items to a specific position within a menu

I'm adding login/logout links to a nav menu using the following code: function rp_add_login_logout_links( $items, $args ) { $link = wp_loginout( get_permalink( get_option( '...