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

Missing automatic default pages menu in twenty sixteen theme

i don't know if this is a bug or a feature in twenty sixteen theme (it also happens in twenty fifteen). In a completely new installation, wp 4.5.2, just after created 3 test pages, if I activate ...
0
votes
0answers
11 views

Change name of links in menus automatically when title of page changes

I have created a menu (Appearance -> Menus) and placed desired pages I want to have there as links. I did that for multiple languages, and I also have a few other menus for footer and sidebar. In the ...
0
votes
0answers
18 views

get_pages() shows either ALL pages or just main-menu

I'm losing the battle with get_pages(). What I'd like is a list of child pages to display on each main-menu parent page. I'm trying get_pages() rather than wp_list_pages() as I'd like to be able to ...
0
votes
1answer
46 views

How to add aria role and schema markup to custom walker container

Edit: after doing some research I've found that in the wp_nav_menu function uses the following code to display the containers value. if ( $args->container ) { /** * Filter the list of ...
0
votes
0answers
13 views

Highlighting correct path with Wordpress Nav_Menu function

I have created a WordPress site for a client, in which you filter through the navigation menu (set-up in appearance->menu) by revealing hidden items (unordered lists with class "sub-menu (generated ...
0
votes
0answers
13 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
1answer
23 views

Outputting Page Title As Tooltip

I'm trying to output the page title via wp_nav_menu() as a tooltip (.pop_up). The menu text has been replaced by an icon, and using CSS to hide it. Any ideas how this could be adapted to output the ...
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
15 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
30 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
29 views

Menu permalink structure

so I have this problem... it's stupid one, but I can't handle it properly. On my page www.example.com I need to put big menu structure. I want menu to be structured as ...
0
votes
2answers
21 views

How to request container_class from wp_nav_menu

I'm currently trying to setup a custom nav walker that will use container_class from the menu as a prefix for the class names of the list items and children. $defaults = array( 'menu' ...
0
votes
1answer
24 views

How to separate sub-menu output and keep associated with parent

I am creating a menu like this https://squareup.com/ I have the html,css, and jquery ready. Now, I am trying to: Create the menu items with it's sub-menu items via wp-admin -> appearance -> ...
0
votes
1answer
33 views

All custom links suddenly lack href attributes

Short version: before updating to WP 4.5 and on a day when the only known change was adding a page to a submenu via the navigation menu admin all of the menu links of type Custom Link where we specify ...
0
votes
1answer
22 views

Custom menu with Walker class - what should the $db_fields be?

I'm trying to create my own custom menu using the Walker class and in the process of trying to figure out what's going on, I'm attempting to reproduce what wp_nav_menu() does by default, so, I've got ...
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 ...
0
votes
0answers
21 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( ...
0
votes
0answers
19 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
1answer
21 views

Users are required to login to my site. How define user.member boolean, its permissions, and conditionally display/handle behavior based on it

Users are required to login to my site. They are redirected to the login page and not allowed past the login page until they authenticate. Once authenticated, they can access most of the website. ...
0
votes
0answers
16 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
1answer
38 views

Editing existing pre-created menus in PHP

Here's my pickle. I'm using a script to automatically create a fully pledged WordPress site. In this process new pages, etc are created automatically. I now need a way to add the newly created page(s) ...
0
votes
0answers
38 views

Query/load only WooCommerce shop categories into a custom landing page?

I want to reuse the WooCommerce shop-categories in a custom grid landing page, but without the product images, as I am using custom images to make the grid wall. What is the best way to do this? ...
0
votes
1answer
80 views

Keeping my Sub Menu open when hovering on its list items

I'm building a custom theme from scratch and I'm stuck on this dropdown styling. I am able to have the sub-menu appear when its containing <li> is hovered but when I go to transition my mouse ...
0
votes
0answers
12 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
1answer
53 views

Highlight parent if item from submenu is active

I have a menu, but when I go to the submenu page, the parent of this submenu is not highlighted. How to do this? When it doesn't have a submenu, it works fine: My menu structure is: <nav ...
0
votes
0answers
56 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
32 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
1answer
16 views

Menu's built in the edit theme view do not have active states set when on child pages

have a menu that is pulled in like this: <?php wp_nav_menu ( array('menu' => 'header') ) ?> I am using WooCommerce and when visiting /shop the shop link in the header has the class: ...
0
votes
3answers
27 views

Cannot add home page url to menu with #

I am adding a #section as a custom link to my menu, because I want to scroll to that section when I click on that link. When I'm on the home page, this works fine (the section is on the home page), ...
0
votes
1answer
31 views

Two theme locations for two menus, but only one is showing up

Here is what I try to achieve. I have two menus. One is going to be a top navigation that lists all the pages, and the other one is going to list post categories. in my header.php, I included the ...
0
votes
0answers
28 views

How do I put my Blog posts on two or three different pages?

So my site has a static front page and a blog page on my website, but I would like to show my blog on both the blog page and the static front page. Also, I have several pages representing several ...
0
votes
1answer
17 views

wp_nav_menu custom Page class

I am building a multilingual site with Polylang, and need to add custom class to my menus that groups together Pages about the same content. For example, I have a Page "Happy" and it has a translated ...
0
votes
0answers
32 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 ...
0
votes
0answers
32 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
20 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
32 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
61 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
1answer
29 views

Insert menu into theme location depending on user logged in/out status

I am using the Avada Theme from Themeforest and I have set up 2 menus under Appearances > Menu: menu-logged-in which contains a parent item (My Account) and then several child items; and ...
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
1answer
41 views

How to add custom nav_menu_css_class to certain menu only?

I want to add a custom CSS class to menu items. So far, I got it working by using the filter hook nav_menu_css_class. However, I want to add this class to items of a specific menu only. So, how must ...
0
votes
0answers
18 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
12 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
1answer
40 views

How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?

I want the top nav on a wordpress site to automatically show the child pages. I know that I can edit my menu and add the children, but I want them to appear automatically, and for the menu to update ...
0
votes
1answer
30 views

Where to implement custom walker class?

I have created a custom walker class for changing the output of menu items. Where do I place my custom walker class file at? I have tried to ask on the Wordpress forum but it has gone 3 days with no ...
0
votes
2answers
53 views

Current menu item class issue

I'm trying to stylise my navigation menu regarding selected page. I made a page for news, but when I click on the following pages (page 2 for example), the navigation menu loses its class. I want it ...
0
votes
0answers
36 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
28 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', ...