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)

2
votes
2answers
1k views

wp_nav_menu log in/out link?

I have a wp_nav_menu showing pages, but I'd also like to include a log in/out link, based on the current state of the user, which will redirect them to the home page. I've looked far and wide, but ...
0
votes
1answer
395 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 ...
1
vote
1answer
489 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
2answers
19k views

WooCommerce dynamic menus

I have a basic WordPress site set up with the Suffusion theme and the WooCommerce plugin. This is working well for the most part, however when I have folks click / hover over the "Shop" menu icon I ...
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
41 views

How to add plugin activity in the menus?

I have Installed CM answer plugin, but how can I add that as a menu at the top? Note: I can install plugin but the problem is that I don't know the way to add the plugin into the menu or a page.
0
votes
0answers
114 views

Bootstrap 3 and Wordpress menu navigation menu highlighting

I am using Wordpress 3+ and Bootstrap 3. To generate the menus I am using the Bootstrap navwalker and the following code... <?php $args = array('theme_location' => 'primary', 'container_class' ...
0
votes
2answers
35 views

How change menu for each user in plugin?

I need to change navigation menu in my plugin for each user for example: if(is_user_logged_in()) wp_nav_menu(...); else wp_nav_menu(...); But when I apply the above code in my plugin it ...
1
vote
1answer
22 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 ...
0
votes
0answers
47 views

walker class for custom menu structure

i design a html template for hospital website and my menu structure is like this: <div class="innerW"> <ul class="clearfix"> <li class="tN nav1"> <a ...
0
votes
1answer
2k views

how to add home icon instead of text in wordpress menu

i need to add "home.png" icon image as home button instead of text for example i searched this question in google and find out a way, but that didn't work. the method mentioned in those sites are ...
0
votes
2answers
92 views

wp_nav_menu inside an object — how do I deal with fallback_cb?

I'm trying to create a class that allows me to generate a navigation menu. Here's a simplified version of what I'm using: class PJ_Menu { function make_menu() { $args = array( ...
0
votes
2answers
37 views

Menu items' links are not working properly and added images

I did a wordpress project localhost using MAMP in Mac os,when I'm import the data to window 7. I have 6 Menu items there are some images and they are not displaying(I'm using revolutio slider) ...
0
votes
2answers
482 views

wp_nav_menu $theme_location parameter ignored

This is the first paragraph of the documentation of the function wp nav menu: Given a theme_location parameter, the function displays the menu assigned to that location, or nothing if no such ...
1
vote
1answer
2k views

WordPress Settings API, Implementing Tabs On Custom Menu Page

I've been following the WordPress Settings API tutorial series of this guy: http://wp.tutsplus.com/tutorials/theme-development/the-complete-guide-to-the-wordpress-settings-api-part-1/ So far, I've ...
0
votes
0answers
58 views

2014 Theme Mobile Menu

Any suggestions on making 2014 Theme Mobile Menu have drop down vertical sub-navigation - instead of displaying all subnavs horizontally images show before, and looking to achieve
0
votes
0answers
16 views

Creating an item to list Contributors in main menu

I'm trying to figure out if there is a way to create a dropdown menu item that would list contributors? The hope is whenever a contributor is added it would automatically add them to the list. I've ...
0
votes
1answer
93 views

Help with changing style of the extended menu drop down [closed]

I am trying to change the style of the extended menu drop down from being on the right side to the left side. As you can see by the picture provided, the menu item named "Catholic Women's league of ...
0
votes
1answer
165 views

Appearance > Menus > Left Sidebar > Add Toggle

How can i add my own toggle here ? There are toggles for each post type but I would like to add this without creating a new post type. Where should I start looking ? Let say I wish to add something ...
2
votes
3answers
370 views

How do I add a post to a menu

I'm trying to get WordPress to highlight a specific item in my menu when a post (any post) is viewed. I'm thinking that adding the post to the menu item, then suppressing display of sub-menus might ...
6
votes
2answers
6k views

How to manually specify the current active page with wp_nav_menu()

Is there a way of manually specifying which page is currently "active" when using wp_nav_menu()? I have a "Products" page, and on that page I have links to various (dynamic) custom taxonomies. When I ...
3
votes
1answer
3k views

Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?

As part of a theme for a client, I want to be able to show a custom menu (defined via the admin) in a select box that automatically changes pages after changing the selection. Is there a plugin (or a ...
0
votes
0answers
92 views

How can I include the parent menu item label in page title?

I want to customize the header title of a page to include the menu label of the parent page. I have this code that does essentially the same thing - but using the parent page title instead. Any ...
5
votes
6answers
2k views

Why do Custom Nav Menus generate so many classes on list items? Can I manage this somehow?

Below is an example. 3 classes attached to each item, except current item, which has 6. Can I pare this down somehow? <ul id="menu-global-nav" class="sf-menu"> <li id="menu-item-63" ...
1
vote
0answers
962 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, ...
0
votes
1answer
203 views

Show login greeting above sub-menu links?

I'm using WordPress' built-in menu system to output my Main Menu Structure. I have one sub-menu, and it has two links currently, "Tracking" and "To-Do List". I want the following login greeting to ...
0
votes
1answer
20 views

Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it's submenu ul

I'd appreciate some direction on how to accomplish something with my WordPress menu. I've Googled this for hours without avail. I was to automatically insert a parent link into it's immediate submenu ...
2
votes
0answers
273 views

Add data-icon input to Wordpress custom menu links

I need to add a data-icon="" input to my Wordpress Custom Menu input box thing. This is so I can use an icon font and type the code in for a specific icon and in the CSS use pseudo elements to match ...
0
votes
1answer
388 views

How to avoid the <div> and <ul> which added when custon menu widget is used

I need to remove the custom menu widget <div class="menu-main-container"> <ul id="main" class="menu"> from appearing above the <li>. Because of this two lines my menus are not ...
0
votes
1answer
75 views

Load Pages Menu in single.php

I've searched a lot but didn't find an answer ... My Wordpress has got 4 main areas, each one also has a news (posts) section and an own submenu. If I load a post (with single.php) is it possible to ...
7
votes
3answers
4k views

remove “edit your profile” from admin menu bar

How can I remove "edit your profile" submenu under "my-account-with-avatar" admin menu bar, while still keeping the avatar and logout?
0
votes
3answers
2k views

Way to bulk delete menu items in new 3.x Appearance > Menus system?

I've done some searches but maybe I'm searching on the wrong terms. Does anyone know if there's a way to bulk-delete menu items in the new Appearance > Menus system? This is mostly to clean up ...
0
votes
1answer
159 views

Update nav menu item position programmatically

I've tried adding a new programmatically on wordpress with the function: wp_update_nav_menu_item($menu, 0, array('menu-item-title' => $title, 'menu-item-object' => 'page', ...
0
votes
1answer
33 views

Question about Menus on Wordpress

I have a question regarding something that is not working properly, I have a menu that is not working, currently with my theme I have 10 menus, one being the main nav and the rest are needed for ...
1
vote
1answer
105 views

Setting a Default 'Theme Location' When Creating a Menu

I'm trying to create a theme which when activated, sets up a primary navigation, adds the homepage to it and then enables it in the correct location. Here's what I've got so far: ...
10
votes
8answers
8k views

Adding custom post type archives to a WordPress menu

Is there a way (besides adding a Custom Link) to add a custom post type archive to a menu in WordPress? If it's added using a custom link (e.g. /cpt-archive-slug/), WordPress does not apply classes ...
0
votes
2answers
252 views

Menu Disappears on Category Pages

I have a site whose navigation disappears on category pages for posts in the ‘post’ post type, but not for posts in any of my custom post types. The ‘post’ post type and post of the custom post types ...
2
votes
1answer
405 views

Menu highlight custom post type archive

I am a WP beginner and hope if anyone can help me out. I have recently installed WP 3.3.2 and Jigoshop 1.2 to see how things works if I can use WP as an ecommerce website. The problem I am facing at ...
1
vote
1answer
105 views

Custom Post type menu highlighted in the archive/post

I created a custom nav menu for my custom post type by custom links (linked to the archive page). Let say I have a custom post type named "product", and when I click on the menu, it will go to the ...
0
votes
1answer
11k views

Add qtranslate language select box to menu [closed]

I can't find any info on how to operate qtranslate and add the select box to change language to the right of my header navigation. Any ideas?
0
votes
1answer
95 views

How to output the menue structured for tabbed navigation?

I've got a design for my webpage that uses tabbed navigation with two levels. In this example 'TAB2' tab is selected and it's children item are desplayed below of it. ˬ ...
0
votes
3answers
212 views

Move Sticky Nav Menu Below WordPress Tool bar when tool bar enabled

I've created a sticky menu but its hidden behind the WordPress Toolbar when logged in. How do i move it below the toolbar when enabled and logged in? I was looking for a conditional tag but couldn't ...
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
0answers
49 views

Show content of subdomain from specific menu-item?

If have a site with menu that has links that looks something like this: domain.com?page=3 domain.com?page=35 domain.com?page=3 I want wordpress to show content of shop.domain.com when user clicks ...
0
votes
0answers
632 views

WP Bootstrap Horizontal Menu for Child Items

I have bootstrap 3 integrated into my custom WP theme. I am using navwalker and WP's built in menu. Everything is working great, but I would like the child items of my parent level to be displayed in ...
0
votes
1answer
144 views

Parent Page > Child Page Menu

I am trying to create a collapsible menu using Bootstrap. The problem I am having is getting the correct Wordpress PHP code to call the right pages. Also this menu will be displayed on these child ...
0
votes
0answers
33 views

How to remove the suffix from tag title of the current archive

Hi I am new to WordPress. I am developing a website. I am listing the name of all categories as my menu bar. The problem is that when I click on a category from the menu bar, the word 'Archive' is ...
0
votes
0answers
45 views

Main Menu Theme Different Output Print

I am currently developing a wordpress theme that has a tricky main navigation menu. The problem I am stuck with is that I am looking for a special print of the submenu. Here is the html I am trying ...
3
votes
1answer
1k views

Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)

I would like to create a walker function, or modify somehow current wp_nav_menus so it can produce a custom output. Let's imagine this structure: menu item 1 menu item 2 submenu item a submenu item ...
1
vote
2answers
1k views

How to remove trailing </li> tags from wp_nav_menu walker

I have used theme twenty thirteen a my base theme and Have tried used code from http://stackoverflow.com/questions/12159486/wordpress-change-header-navigation-list-items-to-div when I try to validate ...