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
2answers
51 views

wp_list_categories in in nav_menu

I have a website and I want to add automatically categories to my menu. I mean when I create new category it should appear in my menu. How I can make it? <?php wp_nav_menu( array( ...
0
votes
0answers
16 views

Allowing HTML in Menu Descriptions

This has been answered elsewhere, but I am having a problem with the code. I'm using this: remove_filter( 'nav_menu_description', 'strip_tags' ); add_filter( 'wp_setup_nav_menu_item', ...
0
votes
1answer
17 views

Show subpages of a category in a custom menu

I have added a post category to a custom menu through Admin. But when it shows, it just shows the category name, and does not show the posts inside the category. Is there a way to add an args; that ...
0
votes
0answers
40 views

How to add class to parent a tag with a sub menu

I have been trying to add a class to the parent a tag of a sub menu using a custom walker. The current walker I am using adds the class to the parent <li>, does anybody know how to adjust this ...
0
votes
0answers
63 views

Custom Walker function need to customize in a specific way for wp_nav_menu in Wordpress

I have used wp_nav_menu() for my custom WP sites with Custom Walker Function which is working fine and providing me below output: <div id="navbar" class="navbar-collapse"> <ul ...
1
vote
1answer
40 views

Remove all nav menu classes ( but keep useful ones… )

I'm trying to remove all menu-item classes (except for .current-menu-{item/parent/ancestor} and .menu-item-has-children) function custom_nav_menu_css_class($classes) { $classes = ...
4
votes
4answers
119 views

Any walker causes blank menu?

Using the following, or any other custom Walker_Nav_Menu seems to cause a blank navigation menu, I tried specifying the default to make sure I wasn't going crazy yet it still blanks the output... Any ...
0
votes
1answer
13 views

When filtering query on custom taxonomy; main menu dissapears

I have created a custom taxonomy, and that works. But here is the problem; I have created an archive page, which in the url gets e.g. this: ?category=23. Then, in functions.php, I do this: function ...
0
votes
1answer
56 views

How can I add a Categories page link to a menu?

Not a link to a specific category, but a link to a page that lists all categories of a custom post type (WooCommerce Products).
0
votes
0answers
12 views

Posts in nav menu

Hello I'm making menu and I want to add element of menu and in this element submenu which posts name and links to this posts. For example I have item menu called A->link1 to post link2 to post ...
1
vote
2answers
105 views

How to add active class on current menu item page?

I have two links: Products and News. When i click on Products or News, it returns me an archive page that contains some posts, when i click on a post it returns me a single page of this post. In the ...
0
votes
1answer
52 views

Does this function wp_get_nav_menu_object check if a nav menu exists or is supported?

function wp_get_nav_menu_object( $menu ) { if ( ! $menu ) return false; $menu_obj = get_term( $menu, 'nav_menu' ); if ( ! $menu_obj ) $menu_obj = get_term_by( 'slug', $menu, 'nav_menu' ); ...
0
votes
2answers
34 views

Can I have a different menu for each parent page?

I have 4 different menus on my website. Right now I'm using the solution to a problem I posted here in order for the menu to display using the CSS framework I'm making use of. Each of these menus ...
0
votes
1answer
43 views

Automatically add child pages to menu

I've been reading through some of the questions and solutions people have already asked to no avail. I have 4 menus on my WP Site, each of which will have children. What I would like the menu to do ...
0
votes
1answer
53 views

Add third level menu on wordpress

I would like to add a third level menu on WordPress. This is the code I've added to the functions.php file to create the secondary menu, but when trying to repeat the same code with a third menu, I ...
0
votes
1answer
28 views

Add Menu Item in Specific Order

I am using the code below to add a Login/Logout menu item to WordPress programatically. I am trying to figure out how to specify the placement of this menu to be in the #2 position. IE - Main Menu ...
0
votes
0answers
35 views

Customizing Walker_Nav_Menu - Trunicating spaces

I've just started learning to code WP themes pretty much from scratch and I'm trying to figure out how to pass a variable thru a customized Walker_Nav_Menu but without any ascii spaces. The goal is ...
0
votes
3answers
131 views

Adding Additional Menus In Genesis Child Themes

I have a Genesis child theme that I bought, and it only supports two menus, a primary and a secondary. However, for what I would like to do with my site I need to have 6 menus all together. This is ...
0
votes
0answers
32 views

How do I fix the URL used in the Wordpress admin menu for customize.php

I recently moved a Wordpress-based website to a new domain and updated all references to the old domain in the database, but the "customize.php" link in the Wordpress admin menu still references the ...
0
votes
0answers
76 views

Add the “.current-menu-item” class to <a> tag?

I am changing wp_nav_menu() to make it a listless navigation menu (i.e., no unordered list or list item tags) Normally the menu <li> has the .current-menu-item class attached to it when active. ...
0
votes
1answer
22 views

“Static” Child Menu with Accordian

I'm looking to create a child menu and none of the examples in the Wordpress codex seem to do what I'm trying to create. I have a main horizontal nav bar, which is fine. When clicking on a top-level ...
0
votes
1answer
41 views

Custom ul class

I need help for my custom Wordpress Layout. It should look like this (HTML): <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> <li> ...
0
votes
0answers
19 views

How can I add my_account_item to my custom theme?

Now I am creating a theme for my website. But now on my theme I need to add user account item (my_account_item()) that is shown on my admin bar. On above image shows my theme part and admin_bar. I ...
0
votes
3answers
119 views

deleted menu still present

I deleted a menu, but it still shows at the top of my website (About Us -to- Request Consulting Services). The site is using AppThemes.com's JobRoller theme as a parent, and the Flux child theme. ...
0
votes
0answers
21 views

Multiple Plugins Interacting with Menu

Got an issue with the use of multiple plugins interacting with the menu system in WordPress. We are using UberMenu and wanted to use If Menu as well to control the visibility of some of the menu ...
0
votes
1answer
54 views

Want to add different text after each menu item

I want my main nav bar to display menu items with very short description of said menu under each item's title. To do this, I was hoping to just inject the menu item's 'title' attribute into the ...
0
votes
1answer
24 views

Problem with multiple menus in theme

I am having trouble trying to get my new theme working. I have all 4 menus working on my test server but when I move the theme to the live server and set up all but one (main-menu) will not show up. ...
0
votes
2answers
22 views

Menu not always using correct link

I moved a Wordpress install from /wordpress/ folder to root by just copying the index and .htaccess file to root and then updating the permalinks etc. All works fine but I have a problem with the ...
0
votes
1answer
80 views

Get category ID from nav menu

Recently I am working on wordpress, but I've got stuck in nav menu item issue. My desireable result was a pull down caption like this: http://www.masterhands.com.tw/index.aspx Each category list on ...
0
votes
0answers
54 views

I can't style my customized navigation menu in my wordpress website!

I am having this problem where I created my website first, with a menu in my header.php page. And then I wanted to transform my website into a wordpress website, so I did what I had to do, but the ...
1
vote
2answers
65 views

Set the active Navigation Menu from a plugin

Is there a way to set the following option from a WordPress plugin, if you know the name of the menu you want to set: My developer says it's not possible, but I am sure on of you gurus knows a way ...
0
votes
1answer
32 views

Customize the Dashboard Menu Editor

Go to Appearance > Menu in the ACP. From there, you can select various items to include in your site's main navigation menu. In the left column, you will see Pages, Links and Categories. Since ...
0
votes
2answers
85 views

Ways to give a wp_list_pages menu link specific class names?

I'm looking to style my wp_list_pages with a span class. I'd like to give it a unique class so that I can give each a specific icon. 'link_before' => '<span ...
0
votes
0answers
14 views

Navbar list items changing place

I am using wp-bootstrap-navwalker to create easy menus with Twitter Bootstrap. Everything works fine when setting menu up and everything is displayed. But when I enter the pages on the site the ...
1
vote
1answer
49 views

Create a Page via plugin

My problem is to show a list of products read from db tables. I know how to read them and I am able to produce the table, but only using a shortcode embedded in a page that I've created via WP. I ...
0
votes
0answers
40 views

Custom Taxonomy Showing in WP Menu

I have 3 taxonomies bundled with my custom post type. I have noticed my custom post type(cpt) and 2 taxonomies won't show in the Wordpress menu system but 1 taxonomy will. Can anyone point me in the ...
1
vote
2answers
26 views

Check if menu id = $specific_id - then insert specific <img>

I currently have a menu structure as followed: <ul class="level-1" id="menu-menu1"> <li id="menu-item-411"> <a href="http://www.link.com">Frontpage</a> </li> ...
0
votes
0answers
22 views

wp_nav_menu transferred to other domain using JSONP - menu not echoed in correct place

I have a WP website, and a related shop that's on a different domain / site. I want to have one navbar that I can update in wordpress that will also update the shop without me having to do it twice. ...
0
votes
1answer
33 views

Custom Menus and taxonomies

OK I just started using WordPress not very good and I have a menu problem I can REALLY use some help please. I am working on a website and it has multiple locations, and not all the locations sell ...
0
votes
1answer
66 views

Add class to all list items of wp_nav_menu

I have a wp_nav_menu to which I want to add a classes to the list items. I know this can be done by choosing 'css classes' from the screen options menu, but then I have to give every single li a ...
0
votes
2answers
47 views

Menu id in nav menu ignored

<?php wp_nav_menu( array( 'theme_location' =>'main_menu', 'container' => false, 'menu_id'=> 'nav' ) ); ?> After updating WordPress to 3.8 menu id ...
0
votes
2answers
52 views

Where is definied the theme location for the main menu in a WordPress template?

I am pretty new in WordPress (I came from Joomla) and I have the following doubt related the Theme Location of the main menu. For example, using the preinstalled Twenty Twelve theme, if in the ...
0
votes
0answers
55 views

Getting stripos error when trying to add menu classes

I'm using a custom theme that is doing something that blocks Custom Menu Classes (the optional ones that you can input from inside the Menu Panel) to print to HTML. I found in the code where they ...
0
votes
1answer
29 views

How to change the markup created by menu item only on chosen items?

How to add a checkbox to the menu item in WordPress backend that says "Make this a Mega Menu Container"? In my mind it should look something like this (Photoshop draft): And when the box is checked ...
0
votes
1answer
32 views

Some doubts about WordPress handle the horizontal main menu visualization

I am pretty new in WP (I came from Joomla) and I have some doubt regarding how WordPress handles the main menu (I mean the horizontal menu in the header). As example I use this online test website: ...
1
vote
1answer
58 views

Using Walker To Add Menu CSS Class Functionality

I'm trying to add the ability to insert Custom CSS Classes to menu items. I believe I do this by extending the walker_nav_menu but I'm not sure how to call the custom classes. This seems like such a ...
0
votes
1answer
33 views

Why in this WordPress theme I can't see the Main Menu?

I am pretty new in WP (I came from Joomla) and I have the following problem. I have installed WordPress on my server and if I use one of the included theme (such as the Twenty Thirteen theme) when I ...
0
votes
0answers
56 views

Drop down menu location select widget

This code select menu by names but i want to do it selecting registered menu location.below is my exact code. class MyWidget extends WP_Widget { function __construct() { $widget_ops = ...
0
votes
1answer
53 views

wp_nav_menu(); Outside WordPress installation

I wanted to use WordPress menu management then show it on outside wordpress installion php file with html but I got this error PHP Fatal error: Call to a member function get_queried_object() on a ...
0
votes
0answers
83 views

How to CPT with meta box, output navigation links to front end (but not ?cpt=value)

I have a custom post type with meta box. The output is paginated, so that my custom page will output one post at the time which works just fine. What I need is to be able to create a menu link on ...