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
1answer
78 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
426 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
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
0answers
70 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
2answers
167 views

How do you center the main menu in CSS? [closed]

Do any of you know of a way to center the main menu on my company's site? I have been trying all day and am frazzled! I've tried editing the stylesheet but nothing has fixed it. I've tried throwing ...
0
votes
1answer
105 views

Menu - custom structure

<ul> <li><hr class="menu-dotted-line"/></li> <li class="menu-button-bg"> <div ...
1
vote
2answers
39 views

Menu Limitations

I am coming here for advice mainly, because I am stuck on what to do next. Within my latest project, I am using Wordpress at the backbone, as a fully fledged CMS system. I have styled every single ...
0
votes
1answer
70 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 ...
2
votes
1answer
4k views

adding some custom html code to the wp_nav_menu function

I would like to implement some custom html code to the wp_nav_menu function in WordPress so that I can add a bootstrap modal box to a navigation menu link but I am unsure how to go about it. The post ...
0
votes
1answer
790 views

Add log in link to menu in Twenty Twelve

I can't find a way to add the log in link to the new theme of WordPress, Twenty Twelve. I did find a lot of answers on the older theme, where they suggest to add some code in the functions.php file. ...
0
votes
1answer
610 views

CSS Classes (optional) on menu is not showing

As you know, there are input boxes for CSS Classes (optional) on each menus. But it's not showing (coming out) in source. Is there any function for disable for CSS Classes (optional)? I need to find ...
1
vote
1answer
163 views

HTML list menu to Wordpress menu

I have purchased an HTML theme that I want to rebuild into Wordpress. I'm having trouble making the menu work. Beneath is the HTML for the menu. (without the beginning and end of the UL). <li ...
0
votes
3answers
933 views

WP navigation list classes

I'm using this code to display my menu: <?php $menu_args = array( 'container' => '', 'menu_class' => '', 'menu_id' => 'main-menu', ); ...
1
vote
2answers
1k views

How to change the admin menu “Pages” to something else

When one creates a custom post type you have the ability to define various elements related to that post type which essentially allow you to define things such as the menu title, "add new post" text ...
1
vote
1answer
893 views

How to put a Menu on the left side of a particular page in Wordpress 3.5

I am creating a website. The website already has a main menu which appears on the top. But in one of the pages I want a side menu to appear on the left side of that page. I have gone through many ...
0
votes
1answer
20 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.. ...
2
votes
2answers
1k views

Adding line breaks to nav menu items

I need to add line breaks to the nav menu item titles. I didn't realize this was a problem as when I am logged in as a Super Admin, I can add <br/> just fine, but apparently regular-level ...
0
votes
0answers
506 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
129 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
2answers
784 views

I want remove last after wp_nav_menu

My code call menu: $defaults = array( 'theme_location' => '', 'menu' => '', 'container' => 'div', 'container_class' => true, 'container_id' => ...
0
votes
1answer
1k 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
48 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 ...
1
vote
2answers
71 views

Create a select drop down of available menus

I'm attempting to create a custom field on my page creation that allows a user to choose which menu to display on the page. Right now I have my custom meta field setup, but can't figure out how to ...
0
votes
0answers
49 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
249 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
3answers
992 views

How can I disable sorting/dragging of a menu item in the custom menu admin?

I think my problem is partially a javascript problem, but if someone knows of a better way to do this I'd love to hear it. Basically the goal is to "save the client from themselves" by not allowing ...
0
votes
1answer
132 views

Simple form to add custom links to menu?

I currently have a menu set up called "sidebar links" with 5 custom URLs. In my widgets section I have a Custom Menu which shows my "sidebar links" menu. This basically gives my sidebar 5 links. ...
0
votes
1answer
112 views

Why Isn't My WP_Nav_Menu returning false?

I'm using wp_nav_menu for a submenu that I only want to display (including the surrounding html) when there are sub-menu items to display. The problem is, the function is always returning with either ...
0
votes
1answer
122 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
1answer
709 views

How to check if current page is a parent item or child item in a given menu

I'm trying to build a submenu into my theme, and I've got it working except it shows even on top-level pages that don't have children. How could I check that the current page (or current menu item) ...
0
votes
1answer
188 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
0answers
192 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
162 views

Generating wordpress menu - cant understand the config

I created html template based on bootstrap css and am trying to create wordpress theme from it now. Created my own menu function for it, which basically just sets default config for wp_nav_menu ...
0
votes
1answer
146 views

Custom menu linking to page not found

I have built a series of pages and sub pages in wordpress. Then, using custom menus with 5 x top level menus and then sub-menus under 3 of these top level menus: Menu 1 Menu 2 - Sub Menu 1 - Sub ...
0
votes
1answer
97 views

custom walker class for own menu?

i have designed a html template for own blog, in my theme my menu is this structure, <ul class="right"> <li class="has-dropdown"> <a class="active" href="index.html">Home</a> ...
0
votes
2answers
1k views

Add “drop-down arrow” for menu items with sub-menus

WordPress doesn't add parent class to menu items that have submenus. Therefore this is required to extend this: function add_parent_css( $classes, $item ) { global $have_children; if( ...
0
votes
1answer
846 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 ...
1
vote
0answers
95 views

Customizing Primary Menu to include custom taxonomy description

I've a hard time implementing the custom primary menu behaviour. I've already: Created a custom post type: products that has a custom taxonomy: product_category associated with it. Activated and ...
3
votes
3answers
2k views

How do I pass an argument to my custom walker?

I've set up a custom walker, and it works as desired when I hard code my variable. What I want is to be able to call my walker and pass it a variable that is used in the walker. For example: ...
-1
votes
1answer
26 views

Some informations about the use of statics pages in WordPress

I am pretty new in WordPress world (I came from Joomla) and I have some questions about the use of static pages in WordPress. I have to use WordPress to implement a mainly static site (maybe in the ...
0
votes
1answer
590 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
2answers
38 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
119 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
195 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
0answers
103 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 ...
1
vote
1answer
368 views

wp_get_nav_menu_items order doesn't work

I am using this function $args = array ( 'order' => 'DESC', ); $items = wp_get_nav_menu_items( $custom_menu, $args ); then, if I change args to $args = array ( 'order' => 'ASC', ); ...
0
votes
2answers
129 views

Adding a tag to wp_nav_menu

I am using wp_nav_menu and I have a need for custom implementation. The default markup is like this: <ul> <li id="menu-item-59" class="menu-item menu-item-type-post_type ...
0
votes
1answer
48 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' ...
1
vote
1answer
1k 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
258 views

wp nav menu: show submenu below li item

I'm trying to figure out if it's possible to show the submenu's outside of the relevant li tag. For example, this php: wp_nav_menu(array( 'menu' => 'side', 'container' => false, ...