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
votes
0answers
7 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
1answer
12 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
13 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
13 views

How do I remove first-child and last-child class from <li> in wordpress? [on hold]

How can I remove the class first-child and last-childfrom my li tag, which are dynamically generated when I add items to my navigation menu? I searched in functions.php, nav-menu-template.php, ...
0
votes
0answers
18 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
16 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 ...
-5
votes
0answers
12 views

Woocommerce: menu products (wp-admin) visible for all users [on hold]

I would like to enable access to the administration menu of products not only to superadmin but to other users: author, editor, customer and shop managers so that they too can enter the products in ...
0
votes
0answers
12 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
12 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
16 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
24 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
9 views

How to Edit the Menu Title [closed]

I have purchased this theme http://demo.qodeinteractive.com/bridge4/ And here is my website : http://www.soultraxproductions.com Look at the menu at the top right of my website , The menu title is ...
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 ...
0
votes
1answer
9 views

How to get a submenu to stay open when active? [closed]

What I would like my submenus to do is stay open when a page in that section is being viewed/active. The site I designed uses bootstrap 3. The website in reference is: ...
1
vote
1answer
13 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
18 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
5 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
9 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
8 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
19 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
35 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
23 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
33 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
33 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
18 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
26 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
24 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
30 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 ...
0
votes
1answer
38 views

Active page link not getting class assigned

I'm having problems with one of my menu items on http://itsnwa.com/ - When you enter the site, 'Work' should be bold and underlined, the same happens if you go to '50mm', but on 'Findings' this ...
0
votes
0answers
24 views

Fixed Menu and Submenu Position and Label

I'm creating a wordpress site based on PSD submitted by my client. The client requested to keep the clickable menu at the selected page with the current position. Examples in the images: ...
0
votes
1answer
30 views

How to hide page links from theme menu

I'm working on a plugin, I programatically create some pages in posts table, the links appear in the theme menu(front end), I don't want some of these page links to appear, how do I do this?
0
votes
0answers
21 views

Mega Menu with posts

I am trying to create a menu with posts on it. I don't know how to add extra code to a dropdown. Or just add the HTML to show the mega menu on hover, How can I do that? Please help.
0
votes
2answers
46 views

Appearance > Menus

I have added custom WordPress admin menu and pages, however, I would like for it to appear in the "Appearance > Menus" section so that the user can add it in the menu structure of their website. ...
0
votes
0answers
48 views

Building a drop down menu for child categories

We have an auto selling WP site with a makes page with logo and a link to view all vehicles in that category. Ideally we would like a drop down menu in their displaying all models (the childs of the ...
0
votes
0answers
13 views

Showing main menu and child menu in diffent places in a same page

This question may sound a bit novice, but I am facing a problem. I have a menu structure like this: Home About -History -kontact Posts -Category1 -category2 For design purpose, I have 2 different ...