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
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
239 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 ...
0
votes
0answers
43 views

How can I modify wp_nav_menu with walker?

I would like my wp_nav_menu to output in the format for jquery ui: <h3>Section 1</h3> <div> <p> Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut ...
0
votes
1answer
105 views

learning OOP with wordpress plugin

I used to develop in functional design so far and I am now learning OOP. I stumbled upon following problem. Sometimes in OOP a function needs to send and argument as an array. Example. I want to ...
0
votes
1answer
71 views

Can't style custom menu

I have a Wordpress menu on my site generated by code: <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-primary' ) ); ?> When I assign the menu called ...
0
votes
1answer
23 views

menu items outside of blog

Is there way that I can echo out my wordpress menu items to a main site menu. The wordpress install runs in a subfolder of my main site. I thought there might be a way to do this that is similar to ...
0
votes
1answer
277 views

If child is active add class to parent in customWalker

Im writing a customWalker for the wordpress main navigation area. But i am a little stuck on how to find and add a class to the parent of the child which is active. For instance I have the whole ...
0
votes
0answers
65 views

Slide Menu not working?

How can i use this Slide Menu in my wordpress website. Only i need Right Side menu from all.here i paste what i tried. var menuRight = document.getElementById( 'cbp-spmenu-s2' ), ...
0
votes
1answer
20 views

Display same menu for parent and all its children

I have three main directories in my site, and I'm wanting to display one unique menu for each directory and display it on each child of that directory. I'm thinking I create my three custom menus, but ...
0
votes
1answer
88 views

Menu - custom structure

<ul> <li><hr class="menu-dotted-line"/></li> <li class="menu-button-bg"> <div ...
0
votes
1answer
64 views

wp_list_pages - show pages immediately 1 level below current level

I'm setting up an events page in a wordpress site I'm building. Let's take a look at the page menu hierarchy: First of all there is a Events landing page. It will display four regions where events ...
0
votes
2answers
204 views

WP e-Commerce plugin is breaking drop down menus functionality

After installing WP e-Commerce plugin primary theme menu functionality got broken. Here is theme with installed WP e-Commerce plugin: http://www.interactstaging.net/clients/tozzi/ and here clean theme ...
0
votes
1answer
18 views

How to use my custom menus as seperate pages?

I want my site to have different pages, so basically, I want to make it that when you select a menu, it takes you to a different part of the site.. with different information that I have typed in.. ...
0
votes
1answer
111 views

TwentyTwelve child theme: Incorrect footer menu

I built a child theme of Twenty Twelve, and created a menu called "Footer Menu" in Appearance > Menus. I assigned this menu to the Footer location: However, the footer menu in the live site ...
0
votes
0answers
410 views

How to add a class name to the ancestor <li> of a post?

I've asked this question before with a different Question Title over at Stackoverflow. At that time, I was not yet aware that a function of the theme is adding a class name called current-menu-item. ...
0
votes
1answer
784 views

Customizing a walker menu class

Hey Folks I trying to customize a walker class to add custom classes to navigation level. Essentially there will be 3 levels of navigation. <ul *custom class*> <li *custom class*> ...
0
votes
1answer
46 views

adding a numbers to a item from navigation menu

I search in Internet but i didn't find a good documented way how to add to item from menu a number , my current menu is like Item1 Item2 Item3 , I'm calculating with WP_Query how many post for ...
0
votes
0answers
42 views

Custom Class to wp nav menu

I am trying to edit the default arguments in the wp_nav_menu function. Basically I need to add a custom class to the UL and a custom class to the LI. I have tried to use <?php function ...
0
votes
1answer
221 views

Image menu on responsive WordPress

1) Why WordPress only use based on "text" menus (navigation) only? Maybe the answer is "it is for SEO and mobile responsive WordPress". Am I correct? any other opinions? 2) What if I create "image ...
0
votes
1answer
83 views

Walker for menus

I want to modify all of my <li>'s classes and ids, but the function wp_nav_menu() does not let me do so, so I think I need to use a walker. I am pretty new in OO, so using an object is not ...
0
votes
2answers
271 views

Custom menu - different submenu for first menu item

I created a custom menu with dropdowns. (just CSS no JavaScript). I also added a custom CSS class for the first menu item. So far so good. The point were I get stuck is adding a custom dropdown only ...
0
votes
0answers
139 views

How to create dynamic menu from HTML

I tried creating a dynamic menu from HTML, I registered menu in function name is main menu, Here is the HTML code that display the main menu- <div class="submenu"> <div ...
0
votes
1answer
160 views

Rogue current menu item class in wp_nav_menu()

I am working on a 'from scratch' theme which has a simple wp_nav_menu call; wp_nav_menu(Array('menu_class' => 'nav', 'container' => FALSE)); On standard posts, archives and pages this ...
0
votes
1answer
414 views

menu items toggle and display on screen size reduction

I am working with a child of Twenty Twelve. I made my own images to act as menu li backgrounds. When I reduce the screen width by moving my browser window in, the menu items seem to toggle ...
0
votes
1answer
658 views

Use wp_nav_menu to dynamically generate child menus

The goal: use wordpress's wp_nav_menu to generate a menu where child pages were dynamically added while keeping the correct submenu classes. Before: Installations Habits After: Installations ...
0
votes
2answers
34 views

Set a different home link in nav menu

I've my website with homepage link set to http://www.mysite.com. I've also many pages with subpages, and in that subpages i've already a link in the content that returns to the top level parent page. ...
0
votes
1answer
105 views

How do I separate link levels in a custom menu walker?

I am trying to build a custom menu walker and I am unclear on how I would be able to build a UL for top level menu items and a separate UL for all menu items of lower levels. Essentially I am trying ...
0
votes
1answer
167 views

multi level menu not working and not displaying correctly

I have created a multi level menu with wordpress and no matter what i try the menu will not display correctly. here is the genereated menu <div id="cssmenu"> <ul class="menu" ...
0
votes
1answer
209 views

Sub menu do not hide

I have a menu with a sub menu. The sub menu open all the time in the left side of the window. When I put the cursor on the menu, the sub enu appears under it as it should. I don't understand what is ...
0
votes
0answers
89 views

Split submenu displaying the description underneath

By using the below class, I was able to extend the Walker_Nav_Menu and display the description under the link. I'm working with an UI that requires to have submenu split that also display the ...
0
votes
1answer
46 views

conditional: if is page, and all subpages

What I'm currently trying to achieve is displaying certain menus on certain pages using one template and conditional statements, like so: if (is_page('donate')){ wp_nav_menu(array( 'menu' ...
0
votes
1answer
928 views

How to list recent posts in a wp nav menu?

I've been trying this for some time and didn't get no clear answer. I need to display 11 recent posts inside one of my menu items. My menu is like: ITEM 1 · MAMBA · ITEM 3 I need to display ...
0
votes
1answer
456 views

Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]

I am getting this message when I am trying to add a link to my menu: I have created a custom post type and a custom taxonomy <?php /* Plugin Name: Portfolio - Custom Post Type Plugin ...
0
votes
1answer
33 views

Cannot find Home link in Pages on Dashboard

I cannot see the Home page link in the WordPress menus section. Here's how the Pages box look like this: How can I get the link of Home?
0
votes
1answer
61 views

Remove link from Page name in navigation bar

I have a wordpress site and there is a navigation bar with menu and submenu. I want to remove link attribute from menu items that have sub menu. Is it possible? because i couldn't achieve to this by ...
0
votes
0answers
22 views

adding parent link to submenu [duplicate]

menu a link to its parent, for example: I have the following menu: Parent 1 - Child 1 - Child 2 - Child 3 I wish to add to it (on the fly, not throw the wordpress cms) link to the parent: ...
0
votes
1answer
1k views

Sticky menu for WP custom menubars

This seems simple, except that I am not able to figure it out. In a wordpress theme, how can I make a custom menubar below the header image stick at the top after scrolling down the page? Example ...
0
votes
1answer
126 views

How can I change the title of the Home link in the navigation bar?

I use Bones theme with a static front page. The header.php calls the bones_main_nav() function without parameters, while bones_main_nav() only calls the wp_nav_menu() function.
0
votes
0answers
39 views

Getting recent posts corresponding to category items in custom menu

I'm trying to create a tabbed navigation, each tab containing 5 recent post excerpts of category items that are listed in a custom menu. I'm planning to load all these posts at once and put each ...
0
votes
1answer
38 views

How we show pages in dropdown

I show the all menu which i have on the top in dropdown style when site is open in mobiles. I successfully display them in dropdown style but the problem is that how can i indend my subpages. or make ...
0
votes
1answer
152 views

How do I move menu to the bottom in Custom Community theme?

I am new to Wordpress and created the following website: www.sugarhausbyamy.com I would like to move my menu to the bottom of the screen. Is there an easy way to do this? I would also like to ...
0
votes
1answer
41 views

Custom Menu based off custom header

I'm using my Child of TwentyTwelve Just for your knowledge, I have two sections to my one WordPress site... one is called pain, the other called anesthesia (It's a medical site for the curious). I ...
0
votes
1answer
134 views

Hide pages depending on role

I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel. I looked in the edit.php file and noticed: } elseif ( 'page' == $post_type ) { ...
0
votes
1answer
50 views

Redirect url in plugin to somewhere else?

I am using WP-SNAP Extended! v1.0.0 and I want to use this alphabetical menu as a sub-menu beneath my header. I managed to get the alphabetical menu in place, but now, if I click on a letter, it will ...
0
votes
1answer
280 views

How to retrieve depth of menu into template

In wp_nav_menu i use for the menu, with custom walker, i can get the $depth parameter in the start_el function function start_el(&$output, $item, $depth, $args) but, outside this ...
0
votes
0answers
25 views

Building Menus with the latest posts included

Im looking to build a menu system much like that off the huffington post or washington post, with links on one side and the latest articles or other dynamic content on another. Before i go crazy and ...
0
votes
1answer
56 views

wp_nav_menu: indicate by id page grandparents

I have an web site with top-header menu and sidebar menu. Situation, like: header menu: books music movies (if we are now under music) sidemenu: blues jazz dance (if we are now under "Jazz") ...
0
votes
0answers
41 views

WP_Nav Highlight Parent Issue

I'm trying to figure out how to highlight the parent nav of a page and becoming stuck. I've seen something like this : <li <?php if(is_page('services')) { echo 'class="current_page_item"'; } ...