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

Add menu headings to Wordpress sub menus

I'm using the native Wordpress menu. I have two top-level links with sub menus - I'd like for those sub menus to display the name of the parent menu item. So if I have a parent menu item named ...
0
votes
1answer
19 views

wp_nav_menu not displaying the right way

I'm creating a theme using bootstrap and now I want to display the menu adapting it to bootstrap... so I'm using the Upbootwp_Walker_Nav_Menu to achieve this, and also sending some args to the ...
0
votes
1answer
28 views

Mobile Menu Not Working

The mobile menu stopped working after I updated WP to the latest version, I assume it has to do with a customization of the theme. http://kvintage.com/ Wondering if anyone could please take a quick ...
0
votes
0answers
62 views

Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?

I'm working on a new theme to replace an old one. The existing theme has custom menus and I can't figure out why in my new theme a call to has_nav_menu is always coming back false. In my ...
0
votes
0answers
17 views

Fixed top-level menu

I'm developing a site which has around 10 top-level pages in the menu and each have 4-5 child pages in the sub-menus. I am giving the site users the "Editor" role which I have customised using a ...
-1
votes
1answer
23 views

Customizing Responsive Themes Menu [closed]

I use the popular theme: https://wordpress.org/themes/responsive I would like to change the color of one of the menu items and if possible also have a jquery popup from one of the menu items. How can ...
0
votes
1answer
43 views

Wrap description and sub menu in a wrapper

I am trying to add a wrapper to description and sub-menu in wordpress using walker class, Description will only be shown for the first menu so the structure will look like this EDIT I have been ...
0
votes
1answer
50 views

How to add custom field option with menu?

Please take a look at below image. Here we can see URL, Navigation Label & Title Attribute under Menu Structure >> Home. I need there a more option called "Data Description". I have a task to ...
0
votes
1answer
58 views

Remove all nav menu classes except those which begin with certain letters

I'm currently using a function which strips out all the unwanted classes from my nav menus, leaving only the classes I want to keep (the ones listed in the array inside the function). It looks like ...
0
votes
0answers
25 views

wp_nav_menu use #<slug> instead of permalinks

I need help modifying the wp_nav_menu arguments so that it can generate a menu which has # instead of permalinks.. I know I can add custom link menu items, but I want the menu to be more dynamic .. ...
1
vote
1answer
43 views

How to drag multiple menu items at once in WordPress?

Say, I added 8 items to a menu. Now I want to bring all the 8 items under another item. Dragging them one by one can take ages. How do I drag them all at once?
0
votes
1answer
18 views

Menu Structure with Links failure to update

Sorry if this sounds like a newbie question but this is driving me crazy and I can't seem to figure it out. I want to add a link called "About Me" to my Menu that redirects to another website. It ...
1
vote
1answer
23 views

Change hyphen/dash for vertical line in menu [closed]

I have the theme Blaskan installed. I have a child theme installed also, but I cannot seem to change the hyphens/dashes to vertical lines | in my menu for this theme. Any suggestion would be ...
0
votes
2answers
26 views

How can I make this custom design menu work in wordpress?

I can make wordpress custom menu,but I got a problem with this type of menu. Can anybody give me any suggestion how to make this menu dynamic? screenshot: http://awesomescreenshot.com/0ab3d6an94 ...
1
vote
0answers
17 views

Appearance Menus Screen - menu item drop down menu not functioning

According to WP, there should be options to remove/edit each menu item on a menu under appearance, but this option isn't showing up for me in Chrome or Firefox. I have administrator control of the ...
0
votes
0answers
14 views

Getting Wordpress Permalinks to match menu navigation

I am trying to get my permalinks to match the location of where the page/posts lie in the navigation menu at the top of my page. For example, my travel site has has a post about Torres del Paine ...
1
vote
1answer
37 views

How to add custom classes to more than one separate menu's a link in wordpress?

Here is a link to my website: website I have placed the following code to this document in /wp-includes/nav-menu-template.php Towards the end of the code are several lines that start with ...
0
votes
1answer
39 views

How to programmatically add elements in a custom menu

In my WP custom menu, one item has a dropdown list below it that lists all instances of some CPT. The only way I know to do that is by creating the list somewhere else in the DOM with PHP and then ...
0
votes
1answer
40 views

Active menu item / category

I was wondering if there's any way to discover which categories are "active" on a category archive page. This is for the purpose of menu highlighting. To demonstrate, compare these: (1) Parent ...
-2
votes
1answer
22 views

wp_nav_menu doesn't add current-menu-item when there is an url parameter [closed]

wp_nav_menu doesn't add the current-menu-item CSS class when there is an url parameter in the url. Is there a way to ignore the url parameter?
0
votes
0answers
18 views

strip_tag not working in header.php

Used code I found on css tricks to remove the li tags from wp_nav_menu. $menu_parameters = array( 'container' => false, 'echo' => false, 'items_wrap' => '%3$s', 'depth' ...
0
votes
0answers
15 views

How to increase menu size limit? [duplicate]

After searching for answers, I am still stumped. I am not very savvy but tried creating a php.ini file, editing .htaccess file, nothing lets me go above the 85 menu item mark. It seems to be a ...
0
votes
0answers
33 views

Superfish Menu is incompatible with the latest jQuery version (1.11.0)

I tried to convert an HTML template into a WordPress theme, and it seems like the Superfish Menu v1.7.4 is not compatible with the WordPress' default jQuery version (which is v1.11.0). I've tried to ...
0
votes
1answer
44 views

2 wordpress site same database

I have twoo websites on worpdress platform: http://fian.ro/ http://nuovafattoria.ro/ On the server there are 2 different folders with same files, same config but one of them has: ...
0
votes
1answer
43 views

Add different span class to wp nav menu

Here is my html for the menu: <div id="main-menu-container"> <ul id="main-menu"> <li><a href="#"><span aria-hidden="true" ...
1
vote
0answers
66 views

How to open modal window when clicking a WP menu link?

I'm making my first site with WP, I'm a Joomla Developper. I'm using wisten theme, and WP 3.9.2 I want to create a link in my the navigation that opens a modal window (not a new page) on click. ...
0
votes
1answer
108 views

Custom Taxonomy Navigation, with current menu items for children?

Is it possible to have a custom taxonomy navigation, with added active/current-menu classes if the post your on is within that category/custom tax? e.g you have a custom taxonomy called... Weather. ...
0
votes
0answers
97 views

Wordpress Wp_nav_menu How to create Columns in submenu

i have been trying to develop custom navigation in wordpress. i want to add columns in sub menu item. i want to add images in navigation as well as create Multi column Navigation. Please check this ...
1
vote
2answers
33 views

Need Random Category Nav Menu

I have set my category navigation menu to display home and 5 of my categories and their respective posts when the category tab is clicked, as that is all the space there is to display in the menu bar. ...
1
vote
0answers
119 views

Use custom walker to add taxonomy terms to main nav menu

I created a Custom Post Type: Product and a Taxonomy assigned to it: Products So under that Taxonomy I can add different types of products (terms if i'm not mistaken). When adding new products I get ...
0
votes
2answers
37 views

jQuery not working when used with wordpress menu

I'm using a starter theme that was provided to me by a friend, and have successfully implemented jQuery several times on the website. I want a background image inside a div to change when the user ...
0
votes
1answer
21 views

How do I remove a menu from a theme?

I have a very simple question, how do I remove a menu from a WordPress site? Is there a plugin out there that can handle this or do I have to go into my theme's code and remove something from there?
0
votes
0answers
41 views

wp_nav_menu list children if on parent page but sibling if on sibling page

For example: About Page (Parent) History Mission & Vision Location If I'm on the About Page, I need the wp_nav_menu to show the three children pages. But if I'm on the History page, I need it ...
0
votes
0answers
38 views

How do I add a class to every menu item automatically in a nav menu?

At the moment I'm adding a button element around the menu anchors using this markup: $defaults = array( 'theme_location' => '', 'menu' => 'main-nav', 'container' ...
0
votes
0answers
38 views

How to add <button> to wp menu using bootstrap 3 framework

I need to figure out a way to add a <button></button> element to a link inside of the wp menu I currently have this markup: $defaults = array( 'theme_location' => '', 'menu' ...
0
votes
0answers
14 views

Enable “CSS Classes” for menus by default

I'm wondering if it's possible to enable "CSS Classes" for Appearance > Menus by default when a theme (or a plugin) is activated? Like: function my_theme_activate_css_classes_for_menu(){ // What ...
0
votes
0answers
16 views

getting specific items from menu

In trying to build 2 linked menus, lets say the hierarchy is like this (In the menu options) - A -- B -- C -- D -- D1 -- D2 - A1 The first menu I want it to be fixed so I fetched it with ...
1
vote
1answer
20 views

Custom Menu url is Empty

I added a new menu using this code: wp_update_nav_menu_item($menu->term_id, 0, array( 'menu-item-title' => 'Custom menu', 'menu-item-url' => 'http://mylink.com', ...
0
votes
1answer
13 views

menu_class showing up on DIV instead of UL

I was having an issue where my menu was being created using: wp_nav_menu(array('theme_location' => 'main_menu', 'menu_class' => 'sf-menu'')) The resulting HTML was like this: <div ...
0
votes
1answer
43 views

Add a Submenu from Another Submenu in a Custom Theme

Good day everyone! I would like some help from you since I'm just a beginner in WordPress. I would like to add a submenu under another submenu like this: International China Independent Group ...
0
votes
0answers
31 views

Nav Walker: Set ul id to current item's title

I'm trying to assign an ID to a sub-menu ul that matches the associated items li in my nav-walker. Here's the output I'm looking for: <ul> <li> <a href="menu-item-1" ...
0
votes
1answer
34 views

Custom Post Type Link added to menu won't show in frontend

I have created a custom post type and I want to link directly to some of the posts in the custom post type in my main navigation menu. I can see the posts in the left hand side of the menu page, and ...
0
votes
1answer
25 views

Editor access to menu: custom post type missing

I have used this code; $roleObject = get_role( 'editor' ); if (!$roleObject->has_cap( 'edit_theme_options' ) ) { $roleObject->add_cap( 'edit_theme_options' ); } to add menu access for ...
0
votes
0answers
14 views

Custom Link Not Registered as Nav Menu Parent

My issue is that I have a horizontal menu, with a few hashed - '#' - custom menu links to prevent users from going to empty pages (the main categories were just made pages for the link structure). ...
0
votes
2answers
26 views

Is It Possible To A Link To The Homepage From The Admin Sidebar?

The closest I've managed to get is: function redirect_to_local_110(){ wp_redirect("/", 302); exit; } function add_home_link() { add_menu_page( 'Course', 'Course', 'read', 'home', ...
0
votes
0answers
40 views

Showing just the menu toggle next to logo in twenty fourteen

For mobile, I want to eliminate the black menu bar, search box/icon and move the menu toggle up so that on mobile, my site just has the logo and the menu toggle. This gives a bit more room for ...
0
votes
0answers
24 views

Add class to menu

I want to add a css class in menu list with this code: function my_special_nav_class( $classes, $item ) { if ( has_nav_menu( 'socialmedia' ) ) { $classes[] = 'btn-social btn-outline ...
0
votes
1answer
49 views

How do you manage large menu hierarchies in WP?

Has anyone worked on sites where the menu hierarchies is fairly large? Not more than 3 levels deep, but more than 40+ menu items? If you only list first level items in the top menu without dropdowns ...
0
votes
1answer
27 views

Where is the order of a menu saved in the database

I want to use a custom menu from the wordpress database but I get the elements disordered and I want them to have the same order how can i do that? There is a place in the database where the order is ...
2
votes
4answers
357 views

How to stop mobile theme inheriting desktop navigation menu?

UPDATE************ Well I have a working solution, although not ideal. Using the Genesis sandbox child theme which has a mobile nav button built-in, I was able to set that to use the primary nav ...