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

Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs

I'm trying to build a sidebar menu displaying child pages of a grandparent page, his siblings and their childs, and keep those siblings and childs available while navigating through them. I've been ...
0
votes
1answer
12 views

Installing compact search in the main menu?

Please tell me how to install compact Search in the main menu WordPress, just as is done in the themes: Avada, Vantage, Twenty Fourteen. Or plugin UberMenu. In the themes Avada I like most. Site made ...
0
votes
1answer
16 views

Primery Menu Configuration problem

I am writing below code. $values = array( 'theme_location' => 'primary', 'menu' => 'efgh', 'container' => 'div', ...
0
votes
2answers
16 views

Question regarding register_nav_menus();

I got below code in TwentyFourteen theme's function.php file. register_nav_menus( array( 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'secondary' => __( 'Secondary ...
0
votes
1answer
24 views

Show Wordpress Menu On External Site

So I have been working on a site using the theme Vantage and I am wanting to take the menu from the site and embed in another site in a subdirectory below, I have searched all over the internet trying ...
0
votes
1answer
10 views

add taxonomy as one of menu items

I have created a custom Taxonomy called Documents and I want to show it as one of menu items, I am only able to choose from its posts. How shall I do that? As below picture I am not able to choose ...
1
vote
0answers
32 views

How to add ID and class in nav menu walker?

I would like to set up a custom walker that produces the following output: <div id="navbarHolder"> <div id="navbar"> <ul> <li><a id="nav_about" ...
-1
votes
0answers
17 views

Make post appear on custom menu?

I have made my first post and it appears on the home page/menu, which is one success but I have different menu, like home,about, and reviews. When you scroll onto reviews, I want it to go down and ...
0
votes
1answer
26 views

How to Sync Menu, Widgets and other masters from Main Website to its Sub Site

I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i ...
3
votes
1answer
42 views

Walker class: Problems with understanding how walk() method can be called without error

I am struggling with understanding how WordPress uses the Walker class. In particular, I don't understand the walk() method (I think). First, let me explain what I understood: When calling ...
0
votes
0answers
12 views

Main menu not changing to responsive menu on time in wordpress twenty fourteen

Main menu not changing to responsive menu and menu items create a double menu from 936 screen size to 782 ... id like the menu to become fully responsive on time Can anyone help on this issue? ...
-1
votes
0answers
11 views

Share menu accross network

I am using WP multisite and used the following pluging to share my main site menu on other sites. http://wpmututorials.com/plugins/networkwide-menu/ But it only display my top level menu not the ...
0
votes
2answers
33 views

Show number of articles in menu

I want to display a number of articles in a certain category which is hooked to a menu item. It should look like Bootstrap's "badge" component. Now I've got: and what I want to achieve: Do I ...
0
votes
0answers
9 views

Custom Menu's - Disable Link checkbox

I've been trying to write a plugin that adds a checkbox (below the "Open in New Window/Tab" checkbox) to the Custom Menu pages/links. I've been able to add the Checkbox and change the ...
0
votes
1answer
14 views

How can I add a class to a nav menu when I'm viewing a child page?

I'm using bootstrap in my theme, so I have a requirement that I add a class of active to the current nav menu item. I was able to achieve this by using the nav_menu_css_class filter ...
0
votes
0answers
20 views

My “edit page” link in admin bar has dissapeared

Since i did some customisation in custom permissions per custom post type the "edit news" / "view news" button that is displayed in the admin bar if you visit the news detail page has dissapeared. My ...
0
votes
0answers
17 views

Backend - Categories and Menus conflicts

I'm having a big problem with my WP instance which is frustrating. Every time I add a new Category ( a simple default category with no custom posts or taxonomies ) it adds, as expected, that new ...
0
votes
1answer
16 views

Hide category links if there is nothing in the categories - Main Navigation submenu item

In my main navigation menu I have category links that are sub menu items: Example: Main Navigation: Listings Sub menu category items: Boating, Camping, Fishing So basically if there is no listing ...
0
votes
0answers
14 views

Default category options in menu editor

When I go to Appearance > Menus to edit my main menu, the Pages selector is open by default: My menu is mainly built around categories, so I would like the Categories selector to open by default, ...
0
votes
2answers
17 views

wp_post->post_parent object returning 0

I'm developing a Wordpress theme and I've registered a new menu location (called primary menu) and am using a menu with it. In my menu, I have a page called "tier-2 page" under a page called "tier-1 ...
0
votes
0answers
28 views

Page content loading issue using Walker_Nav_Menu

At each page refresh, the page loads in steps, first the header with main menu and then after 1 second, the page loads the rest of content. I use the following code to display the a mega menu on my ...
0
votes
0answers
11 views

Display custom nav menu input only for parent-items

I'm trying to add a custom nav menu input only for the category menu items which are also parent-items. I'm using a custom walker in which I use the following code to show the input only for ...
0
votes
0answers
14 views

Any reason why widgets/menus get emptied when I updated custom theme code?

Deployed my site over git last nite, and client came back saying some menus in the the footer widgets had disappeared. I looked in the admin, and the widgets were still available but all the items ...
0
votes
1answer
19 views

wp_nav_menu without menu or theme_location specified

Can someone tell me how the wp_nav_menu functions when no menu or theme_location is specified? I have multiple sites that use an interior navigation setup that does not specify the menu. It would ...
1
vote
1answer
14 views

Wordpress empty Nav Menu error

i have created Multisite. i have assigned menu for the first sub domain while for the second sub domain i have not assigned Menu. i just enabled the Debug mode and got Following error: Notice: ...
0
votes
1answer
22 views

Sidebar current menu item for parent

I have a menu within the sidebar of my site. When you click on the child element of the menu, the li tag adds a current_page_item class to the li tag. When you land on the page its the parent page ...
0
votes
0answers
18 views

How do I add relative to home menu item?

I want to create custom menu items that link to urls such as: http://localhost/dev/trunk/this-custom-url-here in my localhost dev link http://example.com/this-custom-url-here when online If I add ...
0
votes
0answers
11 views

how to display wordpress navbar with top menu outside wordpress system

i want to display my wordpress top navbar outside of wordpress system in one of my php site, so that whenever i change the wordpress navbar the changes will reflect on my php site. How to do that? I ...
0
votes
0answers
6 views

WordPress menu link redirecting

I have a WordPress menu item that I want to link to http://forum.secdefus.com. I have set the menu up as such. Mousing over the link on the site displays "forum.secdefus.com" in the bottom left hand ...
0
votes
1answer
12 views

How to add drop symbol to parent nav items which have child

I have a navigation system like this: As you can see I have two Parent Menus as "Projects" and Plans which they have some sub menus. Now when the result rendered I am getting a navbar like this: ...
0
votes
0answers
10 views

How to create a child menu in a different place

I have a main menu and it has a dropdown submenu. I also have to show the same submenu below main menu along with the dropdown and it will be always there. Please see the picture to get an overview. ...
0
votes
1answer
58 views

Hide menu items if the page content is empty

i am looking for solution to hide (just not print) menu items if the page content is empty. by default wordpress create menu item when new page created. and that ok. but what i don't want, is when ...
0
votes
0answers
9 views

Wordpress conditional dropdowns in custom post edit

I grabbed this question from another post, I couldn't find an answer. Can someone assist. What's the best way to do this. Thanks I have created a custom post type and a taxonomy for it. Here is an ...
1
vote
0answers
20 views

Get nav_menu items as a tree

Is there any way to grab the nav_menu items as a tree-like structure? By a tree-like structure I mean something that would preserve relationship between child and parent items, like so (this is just ...
0
votes
1answer
43 views

How does the Walker class works?

Can someone explain me how the walker class works and does the methods inside the class always needs to overload the parent method?
0
votes
1answer
31 views

wp_nav_menu - page template name as item class

Is there any way to display template name (or page-template.php filename) in each menu items' class? Maybe using wp_nav_menu walker? Specifically, I'm using standard menu call: wp_nav_menu( array( ...
0
votes
2answers
35 views

Making wordpress menu horizontal [closed]

Hey guys am new to wordpress development actually.I am trying to make my wordpress menu horizontal at the top below the title name. My header.php In my header file i have assigned the menus with a ...
0
votes
1answer
35 views

Get custom classes in Wordpress Navigation Menu

i'm a beginner to Wordpress. I have a question is how to get only classes we put in CSS classes box in Navigation Menu? Not all with the default Wordpress classes. The purpose of this is i want to ...
0
votes
0answers
16 views

custom post types menu

I am wanting to create an accordion menu of states and cities that are defined in a custom post type. The cities are defined in a custom field of the post type and the states can also be a custom ...
0
votes
0answers
21 views

Custom Admin Menu Order

I have a simple solution in my functions.php for reordering the admin menu. Here it is: // Admin menu - reorder function custom_menu_order($menu_ord){ if (!$menu_ord) return true; return array( ...
0
votes
0answers
15 views

Replacement for wp_get_attachment_image() inside loop

Currently I am using the Menu Image plugin. It simply adds an image field to the backend Menu page, so you can have images in your menu items. Well I have a large menu structure with a lot of small ...
0
votes
0answers
28 views

Menu links' destination url changed to an hashtag

Here is the website: http://www.aiteq.it In the menu on the left, all of the links seem to point to "#",instead of the pages selected in the wordpress menu section of the control panel. Viewing the ...
0
votes
0answers
18 views

Custom menu creation

So I wrote my first custom menu with a walker. In the admin panel I see the locations, so they are registered. The problem is that the very first menu I created gets added to all the locations. I ...
0
votes
1answer
17 views

After theme change the menus have to be manually linked to the corresponding theme location

When publishing a new version of a theme after I upload and select the new version of the theme the menus aren't visible on the site anymore. Everytime I have to link them to the corresponding theme ...
0
votes
1answer
21 views

active menu in post page

I am showing a wp menu with the following function: <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
1
vote
0answers
9 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
0
votes
2answers
25 views

Wordpress Menu Exchange On Tablet's Orientation

I am using the plugin PHP Browser Detection and I want to achieve different menus for different devices. I have set them up called primary and mobile. Now, I want to switch those on used device. ...
0
votes
1answer
32 views

Hiding menu on mobile only when viewing posts?

I would like to hide menu on mobile only when viewing posts. Menu at the homepage should be visible on mobile but not the other pages. How can I do it? Here is the menu snippet: <nav ...
0
votes
1answer
20 views

What happens when you create/edit a menu

I need to know this for a plugin I'm developing: What happens when a user creates a menu, add/remove menu items in the admin, what updates are made in the database, what tables/columns are affected?
0
votes
1answer
23 views

Wordpress Menu Exchange for Mobile Layout

I want to have two different menus for desktop and mobile phone users. So, I have created two places for two menus (primary, mobile) with this function: functions.php: function ...