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
0answers
19 views

Remove/Disable “Automatically add new top-level pages to this menu”

Is there any way to disable or remove the "Auto add pages - Automatically add new top-level pages to this menu" functionality via a theme? I suppose I could hide it with a bit of CSS, but I'd rather ...
0
votes
0answers
7 views

submenu item under other top level menu and change some fields

I would like to add the 'Add new' user submenu to have a different name(in the menu) and under a custom top level menu that I created. I have removed most of the standard admin menu and replaced it ...
0
votes
0answers
22 views

Menu Item Post variable count way too high, can't save menus

I'm having trouble saving WP menu items and I've done all the usual things as documented here: http://sevenspark.com/wordpress/menu-item-limit and here: Menu Items Disappearing And I know that the ...
0
votes
0answers
8 views

Set rules for file uploads to dynamically hide/show menu items

I am curious if anyone has a clue about this? Upload a file. If file meets certain criteria, link the file dynamically to a menu item If file is linked, the menu item will show. Until an associated ...
0
votes
0answers
61 views

Foundation 6 Dropdown Menu & WordPress

I'm trying to incorporate the foundation 6 dropdown menu with WordPress's menu. WordPress currently outputs <ul id="menu-menu-1" class="menu"> <li id="menu-item-24" class="menu-item ...
0
votes
0answers
25 views

Addressing Child Page from Custom Menu

I build the website of an association with centers in different cities. Each city's pages need their own sidebar. I want to program an automated solution where the editors dont need to select anything....
0
votes
0answers
22 views

Why is error shown twice? (how to apply menuitem to menu correctly?)

Starting to create a plugin that adds content and hooks that content into a menu (in this case below I started to add a search-functionality to hook into menu just for testing) if( !class_exists('...
0
votes
0answers
23 views

Prevent unassigned menu position from showing all pages

This seems like a common enough problem. Perhaps I am using the wrong wording in my search... My theme supports 2 menu positions. I only need 1 menu, so I have assigned it to the vertical position. ...
0
votes
0answers
18 views

How to Use Default Auto-Generated Menu?

I have a site with a decent number of pages (130+) and it is organized using the Parent functionality of each post. This works well. I'm trying to use a mega menu plugin, but it wants me to select a ...
0
votes
0answers
17 views

Customer nav menu walker for post type and taxonomy archives

Walkers have the least documentation that I'm able to find, so I've come here to ask how to achieve placing items attached to categories as sub-menus. Let me explain: I have a simple menu that ...
0
votes
0answers
22 views

Show menu from plugin

I would like to include plugin menu into the theme. Did something like this: <?php add_action('after_setup_theme', 'my_load_plugin'); function my_load_plugin() { get_part( 'parts/menu', ...
0
votes
0answers
71 views

How to add mobile only, multi-level menu?

What is the Wordpress way to adding a second menu? Not in the backend but programatically; so that it gets activated only when screen size is certain width. basically two menus- one for full sized ...
0
votes
0answers
56 views

Respect hierarchy when adding all Product category items to a menu

When I go to appearance => menus, to be able to see the WooCommerce categories/subcategories I go to screen options and select product categories. I see the option "Product Categories" on the left ...
0
votes
0answers
47 views

how to made customize wp_nav_menu walker with search box

how to made customize wp_nav_menu walker with search box. <ul class="main-navigation"> <li class="course"> <!-- <a href="#">Course</...
0
votes
0answers
33 views

Add new nav menu item programmatically

I want to add new nav menu item and in the same time create new page, so my questions are: Is it enough to use wp_update_nav_menu_item() to create new page and new item in existing nav menu? And if ...
0
votes
0answers
26 views

Display parent menu item of the walker nav menu item

I have pointed the numeric index in here. each index in described below: 1. It is where the name of the currently active menu displays, 2. It is where the submenu of the parent page ...
0
votes
0answers
39 views

Is there a way to retrieve post meta data from wp_get_nav_menu_object?

I am trying to integrate flexslider into my theme. I want all my post to default to flexslider post and I want to be able to customize the order of these post/slides using custom menus on the ...
0
votes
0answers
17 views

Has there been any improvements to wp's menu handling?

So I've been snooping around to see if there has been any change to how menus work in WP, but I haven't found anything yet. Some of the problems I have expereinced: Menu items still remains ...
0
votes
0answers
84 views

Unusable menus and “Illegal widget setting ID: nav_menu_item[]” error

This is a bug in my WP install that has crept up unknowingly; I can't say for sure when it began. To describe it: there were menus created in the Appearance -> Menus page early in the site's history, ...
0
votes
0answers
11 views

A new post is showing under two menu's, how do I get it to only show under one?

I have recently added two new films to my site 'Hellesylt' and 'Artists on Film' and they appear twice, once under 'Film' and again under 'Photography', the new films do not appear on the drop down ...
0
votes
0answers
19 views

How do I redefine wm_navigation() or wp_logo() within a theme that uses hooks?

What I want to do: Move the title of my website from it's current location to be in the "menu" div so that it is to the left of the menu/page list. Demo page: http://aaronmoore.me/visartsassignments/ ...
0
votes
0answers
14 views

Get object_id with level from custom menu?

I need to get an array from a custom WP menu, which includes page object_id and it's depth/level in menu. I need this to build a table of contents in mPdf. Any thoughs?
0
votes
0answers
45 views

How to create a HTTP custom link in a WordPress menu in a HTTPS site without a plugin

Imagine a WordPress site over SSL. Let's say https://example.net. All the URLs of the site are HTTPS. That's cool. Imagine this site has a WordPress menu and you want to include a custom link to a ...
0
votes
0answers
33 views

automatically add custom taxonomy items into menu

I wish custom taxonomy items to appear in menu automatically. Currently I have custom post type with custom taxonomy. function ales_create_post_types() { register_post_type( 'ales_product', ...
0
votes
0answers
85 views

wp_nav_array() With A Hamburger Menu

I don't understand how the wp_nav_array works even after reading the codex thoroughly and I'm having issues with adding a menu. My html + css looks like this: <!-- Header --> <header id="...
0
votes
0answers
10 views

Query Code Making Menu Disappear

I'm trying to display only certain tags on my site, but when I use the code my menu disapears. Heres what I have: $query->set('tag', 'break','crunch'); return $query; I have this placed in the ...
0
votes
0answers
37 views

Javascript in WordPress Navigation - mobile menu

I added a Live Chat link to my WordPress navigation menu. I followed the Ideal solution #2 below which works great on the desktop, but not on the mobile menu. It doesn't do anything on mobile. Any ...
0
votes
0answers
59 views

Cannot get custom links to show using wp_get_nav_menu_items

$args = array( 'post_type' => 'nav_menu_item', 'post_parent' => $id, 'orderdby'=> 'menu_order', 'output' => ARRAY_A ); $childs = wp_get_nav_menu_items( 4, $args ); ...
0
votes
0answers
47 views

How to add custom pages to menu programmatically?

So I need to add some pages when it created to the menu within plugin. Menu id is 125. Pages have taxonomy gp_hubs. $category = wp_insert_term($name, 'gp_hubs'); foreach ($sub_categories as $sub_cat)...
0
votes
0answers
71 views

Display page content with Boostrap modal from the menu

Been searching for a solution but I'm not finding one or I'm getting confused. My goal is to be able to create a page in WordPress, enter the content and add the page to the Pages Panel under Menus ...
0
votes
0answers
16 views

How to keep state of custom menu?

<div class="menu-main-container"> <ul id="menu-main" class="menu"> <li id="menu-item-1"> <a href="/category-a/">Category A</a> <ul class="sub-menu"> ...
0
votes
0answers
60 views

Add each Wordpress menu item into individual Bootstrap column

So basically what I'm trying to do is create a custom menu that has icons the user can add/edit. Each menu item has two pieces to it, the top has an icon and then the base has the name of the button/...
0
votes
0answers
62 views

Issues adding icon(s) to menu items

I am trying to add icons as additional items in the menu. So for example, it should look output as follows: Home | About | Blog | Contact | ICON | ICON | ICON I installed the Menu Icons plugin ...
0
votes
0answers
37 views

Custom Post Type category nav isn't highlighting active category

I used Types from wp-types to create my custom post type. I have category archive pages and individual post pages set up. The category navigation is highlighting the active category like it's supposed ...
0
votes
0answers
8 views

Why does <li class=“default-menu”> appear? I'm trying to remove a generic link called navigation on my main menu

I really didn't know where else to turn to. It really seems like major overkill to have to manually set class=default-menu to display:none and twice as much ditto to build a filter on functions.php ...
0
votes
0answers
35 views

Issue in adapted Twentyfourteen-child Functions.js (add toggles)

I am trying to add one (and maybe more) toggle buttons and menus on a Twentyfourteen-child theme. As the behaviour of search toggle is defined in twentyfourteen/js/functions.js I copied and adapted ...
0
votes
0answers
260 views

Extending Nav walker with Yamm menu

Here is my navigation code where only service tab should have col wise layout of menu. I am using bootstrap nav walker menu which is working fine for other nav except services menu which should have ...
0
votes
0answers
127 views

wp-nav menu with custom walker , how to remove a tag if it has any submenu

i want to do wp_nav_menu custom walker ? can i convert wordpress menu this html if it has any submenu remove a tag from list item for example below galleries item I tried to leave empty link . but ...
0
votes
0answers
16 views

How to know which menu trigger a link?

I have two menus locations in my WordPress self hosted Blog. Both menu locations (Header, Footer) have the same menu items Contact Us. Now, when an user click this link. It will take him to the ...
0
votes
0answers
43 views

Active menu item post detail

I'm trying to make the menu item active in WordPress when clicking on a a post item. The way im matching it is based on the browser url and the url of the menu item. However it is making all my menu ...
0
votes
0answers
21 views

How to add fontawesome icons wp_nav Menu?

I have read one question and tried that code as well. But it gets the menu like this. <ul id="main-menu" class="nav"> <li id="menu-item-334" class="menu-item menu-item-type-post_type menu-...
0
votes
0answers
30 views

How to remove Pages links from nav menu?

I've been looking at and trying themes for a long time, and found several that I liked except they make a menu bar listing all Pages. I built an "About" menu with three specific pages on it. I don't ...
0
votes
0answers
79 views

How to divide wordpress menu with sub-items on two ul's (using Walker Class)?

There is a great answer http://wordpress.stackexchange.com/a/36407 for splitting menu on two, and there are other great examples on web explaining how to do this, but no answer explains how to do this ...
0
votes
0answers
28 views

Accordion Menu not being called

I'm trying to add a vertical accordion menu to my custom theme, and I have no idea what is not working. The original tutorial is here : http://cssmenumaker.com/blog/wordpress-accordion-menu-tutorial ...
0
votes
0answers
23 views

Hide admin menu items for role

I would like to hide the admin menu items 'Posts', 'Pages', 'Tools' etc. for specific custom added roles. But I don't only want to exclude the items from the menu, I also want to make it impossible ...
0
votes
0answers
45 views

Getting Menu Items Parameters in Javascript Loop

I'm using the Menu Image Plugin - https://wordpress.org/plugins/menu-image/ It adds a image to the menu I need to extract or output the menu items ie Name, Menu-Url, Menu-image into javascript loop, ...
0
votes
0answers
24 views

display menu depending on selection on homepage

Like I wrote in the topic On my homepage there are two links: business and consumer depending which link I choose I want to display a certain get_template_part (menu) So If you click on "business" ...
0
votes
0answers
31 views

On pages, dropdown menu not displaying

On the main menu for my site, three items have sub items. On the index page, those sub items appear as a dropdown when I hover over the main items, but if I navigate to any other page, the dropdown ...
0
votes
0answers
19 views

Customize navigation menu in the Twenty Fifteen theme

Is it possible to change the behavior of the navigation menu in the Twenty Fifteen theme so when a user clicks a menu item to open a submenu all the other already opened submenus are closed? I'm ...
0
votes
0answers
41 views

Decrease vertical space between dropdown items w/o changing menu height?

Trying to decrease the vertical space between menu items in a list styled as a dropdown menu but having trouble doing it w/o decreasing height of navbar. To see current setup, click here and wait a ...