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

Placing Admin Post Metaboxes in Tabs

I am looking for what code one would need to add into the functions.php file which would allow specific metaboxes to show up in tags instead of within their individual metaboxes. Can anyone help with ...
0
votes
1answer
2k views

Horizontal drop down category with hover effect working

It will be difficult to explain what I need in words, so please see a live demo of the horizontal navigation menu here, http://cn.wsj.com/gb/index.asp I want to replicate it for wordpress categories. ...
0
votes
2answers
571 views

Archives and Categories in Custom Menu

What is the easiest way to place the Archives and Categories lists within my menu under a parent tab. I'd like both of the lists, such as "Archives" leading to the "archives" sub-menu, and the same ...
0
votes
1answer
116 views

Custom theme - pages in menu

I am glad for the opportunity to be a member of this community. Lately I decide to start learning wordpress and theme building so this is my first post here. I read some tutorials around the net about ...
0
votes
1answer
190 views

Unable to nest categories in menu

I have an issue with the new custom menu in WP3. Suddenly the nesting of categories stopped working and even though it's possible to nest them in the UI, when I press Save, then they all go back flat. ...
0
votes
0answers
16 views

Header.php toggle navigation button not working

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 ...
0
votes
1answer
7 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
1answer
16 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 ...
0
votes
1answer
17 views

Theme tweak to header [on hold]

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 ...
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
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
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
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
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
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"&...
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 ...
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
38 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 &...
0
votes
0answers
18 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
0answers
20 views

customize exisiting wordpress menu item

For a school project I am trying to manipulate the existing primary menu with a plugin. The result should be: if the plugin is activated, it edits the 'Login' button to be conditional: if something ...
0
votes
0answers
21 views

How to list the menu structure and tag with <li>

I have a menu with sub-items currently set as the Primary Header Navigation. -home (page) -products (category) -stick (post) -stone (post) -about (page) How can I print loop this menu inside ...
0
votes
0answers
25 views

How to add odd and even classes to all nav links through walker?

I kept finding posts that explain how to add even and odd classes to sub-menu items, but can't seem to find how to add it to the main menu items that do not have sub menus. I've already checked out ...
0
votes
0answers
26 views

add_query_vars_filter How to make my menu remember

I have a menu that can "open up" or "close" via JavaScript . This works. However when I click one of the menu entries the next page loads and the menu does not "remember" to be in the "open up" ...
0
votes
0answers
11 views

There is any hook that fires after/before updating menus locations in “Manage Locations” tab?

I'm looking for hook that fires before or after updating menus location. I want to fire function after saving on "Manage Locations" tab in Appearance > Menus. I know there is wp_update_nav_menu ...
0
votes
0answers
18 views

Fallback dosen't work when not using 'menu' attribute

I want my fallback function to be called when the menu doesn't contains any items. And if I specify the menu name, it works. But not when as I below comment away that attribute. Now nothing happens. ...
0
votes
1answer
14 views

Output sort number in wp menu list item?

I want to output the sort number of the list item in it, in the wp menu. No, not by using ordered list <ol>. I have tried search for answers about this by searching on wp forum an reading the ...
0
votes
1answer
24 views

Add newsletter signup element to navigation bar

I've been researching here and on other dev/WP sites to find the best solution for adding what is effectively a custom element to the navigation menu, and it seems like there are many approaches. ...
0
votes
0answers
15 views

How to add specific menu items to specific sub-level <td> with walker?

I want create a megamenu with four columns on 2nd level submenu (inside div and table). When I add class col1 to menu items, display them inside <td id="c1"> and when I add class col2 to menu ...
0
votes
0answers
13 views

Why does my menu disappear if I set it to something other than '--Select--'?

Trying to style it - so that it has a drop-down toggle button. So I wanted to change the files. But the other menus - that would have child elements - don't play nice with the customizer. I'll edit ...
0
votes
0answers
27 views

Is there a global page/post/product/anything ID?

I am working on compression plugin and need to save compressed styles in to a file. Compression process is done but I need a unique page ID for any WP page in order to save and name the compressed ...
0
votes
1answer
20 views

How to get submenu of admin menu?

I user global $menu in one of my plugins to get the list of menu items. But i would like to get the list of of items from a submenu for example from Posts i would like to get Add new, All, Edit ...
0
votes
2answers
32 views

Admin page and admin menu. Permissions plugin

I was googlin really hard but couldn't find any answers. What i'm trying to do is write a simple permission admin page plugin. So far what i did a page with every role where i can check a certain ...
0
votes
0answers
27 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
13 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
20 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
55 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
15 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
15 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
32 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
21 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
44 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
1answer
25 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
38 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
24 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 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
22 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. ...