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)

1
vote
1answer
9 views

Filter for Admin Nav Menus Drop Down

In short, is there a filter for the Admin Panels Nav-Menu Dropdown List? For non-administrators I need to remove access to modifying / selecting a specific menu but still allow access to other ...
1
vote
1answer
10 views

Change list item content in menu navigation to add a child element with specific class

I have been away of wordpress for quite a while and never practiced that much. I have a few problems even tho I looked on the internet for an answer... regarding the wp_nav_menu behaviour. Hope you ...
0
votes
0answers
10 views

Adding a span tag inside the anchor tags within WordPress main nav

I'm using FontAwesome and hence I need to include some extra code next to parent menu options that have a sub-menu, such as: <li> <a href="">About <span class="fa ...
-2
votes
1answer
25 views

how do you create your own simple burger menu in wordpress? [on hold]

how do you create your own simple burger menu in wordpress?
-2
votes
0answers
17 views

walker nav custom structure

how can i get this html strucutre? <ul> <li class="icon icon-arrow-left"><a class="icon icon-display" href="#">Devices</a> <div class="mp-level"> ...
0
votes
0answers
15 views

Drop down items not displaying on mobile device

I have been reworking a site that has the FlexNav code implemented already. I have added drop down menu items per the menu dashboard in the backend of WP and I can see the new dropdown and select it ...
0
votes
2answers
39 views

Adding PHP in the menu

So, I have following php code: <?php global $my_profile; ?> <?php if (is_user_logged_in()) : ?> <div class="img" data-key="profile"><?php echo get_avatar( ...
0
votes
1answer
19 views

Two questions about CSSing inside the menus

First, I would be glad if u tell me how can I assign a class(css) to default span tag that include the links inside the menu, created by WP control panel. And second question is how to use @media ...
0
votes
0answers
11 views

Add sidebars to navigation menu?

Is it possible to add a sidebar to navigation menu? I'd like to be able to add sidebars in Appearance > Menus, like I add pages. I have a way of creating extra sidebars, so that's not an issue (I ...
0
votes
1answer
15 views

WP Admin Bar - Get current theme name as custom menu title

I wish to echo the current theme in text in my WP Admin Bar sub menu. How would I go about display a snippet of PHP inside the 'title' => 'php snippet here', ? ...
0
votes
1answer
39 views

How to create menu in Word Press 4.2.2?

How to create menu in Word Press 4.2.2? I have opened a dashboard and there are no so options visible. How to fix that? I want to make a menu for all pages I`ve created. Thank you.
0
votes
0answers
11 views

Edit HTML for Custom Link in Menu

I would like to add Google analytics code - via 'onclick' event - to a custom link that resides in my menu. However, there are only limited items I can customize (URL, Label, Title). Is there a way ...
0
votes
0answers
8 views

Dropdown Menu Widget Plugin Links not Clickable [on hold]

I am using oneengine theme with Dropdown Menu Widget plugin but the menu items are not clickable. You can see the problem here: http://goo.gl/l6mShN
0
votes
1answer
18 views

How can I edit submenu headings using wp_nav_menu walker?

The whole world of menu walkers is still murky waters for me, so I'm hoping someone might be able to help me here. I'm able to produce an auto-generated list of menu items on my page using the ...
0
votes
1answer
25 views

How to move menu next to left of the search box?

I use Woocommerce plugin and StoreFront theme to build my demo website at http://52.74.97.64/wordpress/ I want to move the current menu to another place - on the left next to the search box on the ...
0
votes
0answers
14 views

Deleted empty posts - menu gone

I just discovered that my site had a lot of posts with no title and content. I thought it was empty posts I had created when misclicking on create post instead of create page, so I sent them to trash. ...
0
votes
1answer
12 views

Iterate through each menu item into a shortcode

Since i cant easily use short-codes in the menu, is there a simple way to iterate through all a menus label through a short-code? For example say i created a few custom link menus with labels of ...
0
votes
0answers
8 views

Menu for Showing the Children of 2nd Level Menu Items on 2nd & 3rd Level Pages

The title may be confusing, but please follow along. I have a 3-tier menu. There are the parents (1st tier), and some have children (2nd tier), and some of those children have children (3rd tier). I ...
0
votes
0answers
23 views

Conditional forms with wordpress ajax

I'm creating a wordpress megamenu plugin, i've setup the walker and all frontend things But stuck in the backend i changed some of the walker class <?php /** * /!\ This is a copy of ...
0
votes
0answers
22 views

How to assign navigation menu to certain location with Settings API?

Using the code below, one can assign a menu with id $term_id_of_menu to 'primary-menu' location. $locations = get_theme_mod('nav_menu_locations'); $locations['primary-menu'] = $term_id_of_menu; ...
-4
votes
0answers
29 views

Convert my menu to megamenu with custom walker [closed]

<nav id="menu"> <ul> <li class="home"><a title="Home" href="index-2.html"><span>Home</span></a></li> <li ...
0
votes
0answers
11 views

How Can I Add Extra Div Tag On nav menu [duplicate]

hello I want To Add Extra Div tag On nav menu Like This div class="vce-wrap-left"> <ul id="vce_top_navigation_menu" class="top-nav-menu"><li id="menu-item-374" ...
0
votes
1answer
22 views

Different menu on different category need advice

Good day. I have some difficulties these days and i am a new at wordpress. I have task where I need to create different menu's on different category's, I had read a lot about it but still have some ...
0
votes
0answers
9 views

Is there a way to establish parent/child relationship in WP menu links exclusively?

to expand on this question title: Is there a way to establish a parent/child relationship of menu links (using the WP menu) that adds the dynamic helper classes (ie. current-menu-parent, ...
0
votes
1answer
15 views

How to pass menu slug as a variable to wp_nav_menu?

I need to show a menu depending on what user selects on Page Options. I take menu name from a user to a variable and now i need it to parse through wp_nav_menu. Im trying it like this but it doesn`t ...
0
votes
1answer
19 views

How to display custom post type in a submenu?

I am adding a submenu named as "Articles" using add_submenu_page() under a custom menu. I want to display the custom post type="page_article" in this "Articles" submenu. Whenever I click on Articles ...
0
votes
1answer
16 views

Permalinks linking to similar named site

I'm having a problem with the permalinks on a testing site linking to live site. Basically the hosting company set up this separate site for testing so that edits could be made without affecting the ...
0
votes
0answers
20 views

Css in admin panel of WP or some other BUG

I'm running WP almost a month now, and after it updated automatically(wtf?) to version 4.2.2 or may be from some other reason, I can't edit my menu from the admin panel. Have a look at the screens ...
1
vote
0answers
14 views

Two different “Home” items in custom menus dashboard section

Following the WP documentation, I created a page named "Home" and set it as the Front Page of my website. But now I have 2 different "home" items in custom menus: one corresponding to my new page, and ...
0
votes
0answers
38 views

Add extra markup to WP menus

Have been asked to redevelop a HTML website in to a WP theme, it has quite an advanced menu structure and i'm not quite sure how I can replicate it. The second menu item has a sub-menu, but it is not ...
0
votes
0answers
16 views

Custom Walker Class menu with different ul class and role as the dropdown

I'm trying to replicate this output menu using the Walker Class <ul class="list-inline menu" role="menubar"> <li><a href="#project" class="item">WET project</a> <ul ...
0
votes
0answers
18 views

Add custom page link with anchor

In my admin section I would like to add in Appearance > Menus > some custom pages to add to my menu. I have two different menu one for the home page and one for the others pages. In my home page menu ...
0
votes
1answer
22 views

How can I query all available public post types and taxonomies?

I have been looking for this but everyone that is posting a solution is just returning available menu items from a specific menu via wp_get_nav_menu_items( $menu, $args ); or something similar. ...
0
votes
0answers
6 views

Transition Post Status Causes Menu Not to Save

The following code is in a plugin I'm developing. The code works and xenword_new_post is fired when a WP post is published. The article is updated by xenword_edit_post correctly when a WP post is ...
0
votes
1answer
19 views

Menu page with three columns

Seeing all the postbox-containers in wordpress i was wondering if there is a way to add a third column to a custom wordpress admin menu page. I would like to have something like I get when using the ...
0
votes
1answer
9 views

Accidental reverse order of menu items in one menu

On my website I have two menus - one on the top and the second which appears after scrolling down. The order of menu items is correct in "scrolling-menu", and in the "top-menu" it's reversed. What ...
0
votes
0answers
25 views

How can I organize nav menu lists as columns in WordPress?

Here’s what I am having a hell of a time with. I'm working on a dev site (which is WordPress based) that can be seen here. You see the responsive navigation for the ‘Course Schedule’ section is ...
0
votes
1answer
89 views

Menu deletes all items and position - wordpress bug?

I just went through one of our sites and updated every plugin and Wordpress to 4.2.2. After upgrading I was supposed to do some menu changes, but after "successfully" saving the menu every item was ...
0
votes
0answers
8 views

DB optimization caused custom field and link loss

I recently did DB optimization and after that I lost all my Advanced Custom field entries and menu links. Is it because my DB got corrupted? How to resolve the issue? Thank You
0
votes
2answers
38 views

How to get the title of root li element

I want to get all info of top level menu from childrens <li class="l-nav-item dropdown"><button class="open-icon visible-xs fa fa-angle-down"></button><a href=" ...
0
votes
0answers
36 views

Add a sidebar for menu item?

I want to modify the WordPress navigation menu. I have added a custom checkbox in the menu items custommenu. If that is enabled, then I want to remove the submenu items for that item and include a ...
0
votes
1answer
73 views

How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?

I'm trying to build a hierarchical directory using custom post types and custom taxonomies as I've described in another question. My problem is that I cannot figure out how to make those posts ...
1
vote
1answer
42 views

Edit menu item title from edit page/post

After we save a post/page, a new menu item is created (with the same title) in the navigation that we have created in nav-menus.php. If we need to change the menu item title, we need to go to ...
0
votes
0answers
14 views

How to combine multiple custom menus into shorter code

I am working on a plugin that I have on the WP repository and I would love if someone could help "optimise" this code I have for some custom menus. Currently, there is 3 locations of which I pretty ...
0
votes
0answers
26 views

How to populate a nav-menus meta box with admin menu items

I have successfully added a new meta box to the Appearance->Menus (/wp-admin/nav-menus.php) page called "Admin Pages". Now I need to populate it the same way the standard "Pages" meta box is, but ...
-1
votes
0answers
18 views

Change menu's hover color on other page

I'm having problems looking for the code on changing the navigation bar's hover color of my page. Actually in my homepage the colors are what its suppose to be, but when you go to other pages like the ...
0
votes
0answers
12 views

Separate page for news articles - exclusion from 'Blog' page

I'm trying to accomplish the following: have a 'Blog' page, which displays all posts EXCEPT those from the 'News' category, and display the posts from 'News' somehow separately, so that the ...
0
votes
0answers
34 views

Switch vs if else [migrated]

I use if else for custom menus in Wordpress, to load various location menus based on parent page. The agency I work for is adding countless amounts of cities, and it's getting out of hand. One thing I ...
0
votes
1answer
22 views

If test for “has_nav_menu()” does not return echo when no menu exists

I have a strange issue with my if/else test for "has_nav_menu()" I have three menu locations in the template and each is tested if a menu exist in the defined location. However this example below does ...
1
vote
1answer
15 views

Show different different menu in theme_location depending on x

I would like to display a different menu in the same theme_location depending on some condition. I'm wondering if this is possible and if so how? I would like to avoid registering an additional ...