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

Customizing template menu output to fit zurb foundation markup

I want to have custom main menu markup in my Wordpress template. I want it to fit Zurb Foundation markup - to be specific - for submenus. I've figured out how to customize class & id if list ...
0
votes
1answer
22 views

Right way for setting categories

My site follows this hierarchy HTML5 + Themes Resources Books Tools Wordpress + Plugins Themes Tools Books jQuery + Plugins Tools books and the same combinations for CSS3, SEO and others, ...
0
votes
0answers
229 views

Remove <ul> from wp_nav_menu() wordpress

I am using the theme Twenty Thirteen and am using wp_nav_menu() to display menu items. I need to remove the container <div> and <ul> from wp_nav_menu(). I tried this: wp_nav_menu( array( ...
0
votes
0answers
42 views

Wordpress wp_nav_menu custom walker

I am trying to create a custom walker for wp_nav_menu output that looks like below <nav role="navigation"> <ul> <li><a href="#about-us">About Us</a> <ul ...
0
votes
0answers
80 views

No Current Class showing in Menu for Custom Post Types

I have Created Custom Post Types "NightLife" "Event" "DLStore" I have added them to Secondary Nav Menu. They show up but when i select the page it does not show any active/current class unlike other ...
0
votes
1answer
124 views

Update body class based on menu

I'm trying to add a class to the body tag based on whether current menu items either have children, or are children. The custom menu was added via wp_nav_menu. I have hooked into ...
0
votes
1answer
86 views

Remove submenu item from list

I have the following script within my functions.php file to avoid certain users from modifying things they shouldn't and would like to remove one more item, the Appearances > Themes submenu. function ...
0
votes
0answers
58 views

How to get the count for each taxonomy term

I know it is $term[0]->count; However, my terms are placed in the custom menu plugin. My terms are currently structured as Parent Child Parent Child How do I append the term count of each ...
0
votes
0answers
163 views

wp_get_nav_menu_items() returns an empty array under tags archive

I have three nav menus and for some reason under tags archive wp_get_nav_menu_items('MenuName') returns an empty array. Frontpage, posts, pages are OK, but when you go into tags archive, no items ...
0
votes
0answers
192 views

Vertical dropdown menus

I am working on converting an HTML/CSS template to a WP theme on my local machine. I am unable to add vertical drop down sub-menus to the main menu in the theme. The HTML for the menu is: <div ...
0
votes
0answers
41 views

How to add a menu to wp admin area?

I'm looking for a way to add a menu to wordpress admin area,so admin can publish and edit posts on a specific category through this menu(just like POSTS menu we already have inside wp admin). This ...
0
votes
0answers
35 views

Add HTML to a specific navigation menu

add_filter('wp_nav_menu_items', 'add_line', 10, 2); function add_line($items, $args) { if ($args->theme_location == 'primary') { // my code here } return $items; } Instead of the above, ...
0
votes
0answers
418 views

wp_nav_menu : Adding a filter to add class to a, anchor element

I want to add a custom class to the <a class="custom"> element that is outputted from wp_nav_menu(). Is it possible to do this? The reason if you're curious: I don't want to use li.menu-item a ...
0
votes
0answers
380 views

Use Wordpress Menu as Isotope filter

I am using an Isotope for my Gallery,I want to use a custom menu so I can easily exclude and include categories if I want.. so far I am using a code to retrieve all the categories. $terms = ...
0
votes
0answers
43 views

WordPress Menu Targeting

Okay so I'm building out a plugin that generates a list from the $menu and possibly $submenu. I want to loop through that array and generate that list by the menu_slug, but I cannot seem to figure out ...
0
votes
1answer
70 views

How To Conditionally Change Menu In Same Theme Location

Is it possible to change to a different menu using conditional tags but using the same theme location? I have 2 menu's created which I want to display conditionally in the same them location which is ...
0
votes
1answer
52 views

Add Protocol to Custom Menus

I've been using tel: links in Custom Menus combined with Responsive Design to add a "Call Now" button to my themes for smartphones. It's been working well. A client just asked me to also add a "Send ...
0
votes
1answer
277 views

Plugin admin list pages as submenu

I am creating a plugin for a custom admin menu based in the admin area. My wordpress template is consisted of 5 pages with different templates and some custom variables that the end user would be ...
0
votes
0answers
139 views

Additional class for.sub-menu UL?

This code returns my WordPress menu: <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'header-menu') ); ?> What's the easiest (non-JS) way of adding additional ...
0
votes
1answer
47 views

Active menu also for single array

For our (new) website I figured out how to make menu's active. The only problem is that I want multiple pages, singles and categories under one active menu (just to remind people in what section they ...
0
votes
1answer
897 views

Use WordPresss menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
0answers
111 views

load wp_menu dynamically with enquire.js

I'm trying to dynamically load the wp_menu with enquire.js but it just doesn't work. If the screen is < 1080px the wp_menu(mobile) should be loaded, otherwise the wp_menu(desktop). In my ...
0
votes
0answers
47 views

How i call multiple template in same menu

I want to call two template in same menu means when i click on tab one then page will open different template and when i click on tab two then page will open in different.I have three template ...
0
votes
1answer
25 views

Menu administration, how to allow special charachters

I'm new to wordpress, i have created a website, for multilanguage solution i use qTranslation, my menus has also description and this is a problem, how can i allow special charcters here: Here is ...
0
votes
1answer
32 views

How to avoid website url appending problem in wp site?

On localhost when I opens my site (Ex: http://example.com) and when I select any navigation menu then the url of my selected navigation menu appends the previous url. some what like this ...
0
votes
0answers
23 views

Page order not showing in Menus Pages box

I'm using wp_nav_menus - this is all in Appearance > Menu I created all my pages and their hierarchy by making them child pages in the Page Attributes box on that page. If I select the Parent ...
0
votes
1answer
112 views

How to make a page to not appear in the menu when created?

When one creates a page in the Dashboard (Pages -> Create new) it always appears in the menu and that is the way it should be. But now I want to create a page that does not appear in the menu at ...
0
votes
0answers
236 views

Drag and drop isn't working while creating menu

I am creating a new site , in order to create menu , I just need to Drag and drop the item , in order to create exact menu position and sub menu . But Drag and drop isn't working . Thats why I am ...
0
votes
1answer
840 views

Add id to menu items in wp_nav_menu

I'm using wp_nav_menu in Wordpress to create my navigation The output is similar to this(I have removed href links) <nav id="pageNav"> <ul id="menu-headernav" class="menu"> ...
0
votes
1answer
68 views

Get first menu item of custom menu

Let's assume the client builds a custom menu with 3 menu items and I'd like to show a few posts, then the first menu item, then some more posts, the second menu item, more posts and then the third ...
0
votes
0answers
164 views

wp_nav_menu Not Showing New Primary Menu

I'm working on developing my first ever WordPress template. And I'm bumping into an issue that has me slightly confused. I've created a custom menu called LaunchPointMainNav. But when I tell WP ...
0
votes
1answer
166 views

Custom post type in submenu with custom meta box as a title with custom html

I am trying to create a menu in wordpress using a custom post type as the main menu item at the top level and all of its childs are going to be included from the posts i create inside it. The html i ...
0
votes
0answers
48 views

How to add a heading under sub-menu by using Nav_Menu_Walkers

I have customised WordPress wp_nav_menu by using Nav_Menu_Walkers and currently achieve the following format: <a href="#">Menu Parent</a> <div class="sub-menu"> <ul ...
0
votes
0answers
46 views

How to handle change the appearance of 'categories' box on dashboard?

I have a site with hundreds of categories, and when I come to edit some menu on wp-admin/nav-menus.php it is really difficult, because in the categories box there a few pages, with something like 20 ...
0
votes
0answers
45 views

CPT Archive with parent page

Is it possible to set a parent page to a CPT Archive? I used a plugin to add archives to the nav_menu section. That works. But I also want the link to be /parent/archive. Is there a plugin or ...
0
votes
0answers
47 views

Fallback CB not falling back to wp_page_menu

for some reason the menu is not falling back to the default page menu. Am i doing something wrong? Here is my register of the navigation: register_nav_menus(array('primary' => __( 'Primary ...
0
votes
1answer
74 views

Menu item not created on theme activation

On theme activation the following code doesn't create my menu with the 'New Page' item, the menu is created and the location is assigned to 'submenu' but no menu item of my newly created page? What ...
0
votes
0answers
51 views

How do I add a link to the menu that has a charector (?) in it?

I'm trying to add a link to a drop-down menu but it gets lopped off every time. THe full address is https://www.ub-tonlinebank.com/onlineserv/HB/Login.cgi?runmode=REGISTRATION but is stops at ? and ...
0
votes
1answer
96 views

Hard coded main navigation

Theme twentyeleven Version 1.5 HELP PLEASE I have received an answer from @Mayeenul Islam but this has not resolved my question, if I can't make the navigation show active that's not the end of ...
0
votes
0answers
34 views

Menus gone in backend

I have some strange issue: I have created some menus. All good. Then I wanted to place a menu into a widget. It says No menus created. Click here to create a menu (don't know the exact english text, ...
0
votes
1answer
37 views

Problem with custom menus

On the menu, I'm talking about custom menus, I have a footer with several columns, each column will have a list of items, each column menus needs to be updatable from the menus option on wp admin, so ...
0
votes
1answer
86 views

WP NAV MENU - Dropdown always showing

I'm having some trouble getting the wp_nav_menu to work properly. This is the first time I have worked with this and for the most part it has all come together. My only issue that I am having is with ...
0
votes
1answer
453 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
0
votes
0answers
208 views

WP admin broken. Not saving catgories or adding categories to menu

Wordpress Admin panel is not saving categories when creating new post or editing it. Also same problem with adding categories or pages to menu. It just doesn't save changes when I press update.
0
votes
0answers
193 views

Add tooltips with image in Wordpress Menu?

I want to add tooltips with image modal inside my menu dropdown. See this link: My site When on the dropdown menu, when we hover on the the product item, I want a tooltips with image to it. How ...
0
votes
1answer
278 views

JS this.href not getting link from menu item

I have a script to fade in and out the page container when a link is clicked in the nav. I have attached the script to the .menu-item class to target just wordpress menu links. The script itself seems ...
0
votes
0answers
32 views

Can I prevent the $item->description to be filled with default content for a Walker_Nav?

I use code like in this tutorial I have this code in my custom walker ( ! empty ( $item->description ) && 0 == $depth ) ? ' <span class="desc">' . $item->description . ...
0
votes
1answer
107 views

Adding parent custom post type menu option

random problem for me here. I have several custom post types registered to Wordpress and I want to add the archive pages to the menu, but I do not want them to be static links. Is there any way to ...
0
votes
1answer
235 views

Adding different classes to anchor in navigation menu

Is this possible? I want to add different classes to the anchors, so not the same on all anchors. How can I do this? PS: I am using this: function add_nav_class($output) { $output= ...
0
votes
1answer
1k views

How to make a drop down menu with categories

I'm building a website in which there is a navigation menu with various links; in this menu there is the link to the blog section. My goal is to create a drop down menu that appears when the cursor ...