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

Second Level Menu

I'm trying to figure out how to do, Second Level Menu as a template function, that persistent when visiting any level, whether its a top level page, or a grand children Page. Any Ideas?
0
votes
1answer
257 views

Using front-page.php need new blog page

I'm using front-page.php to generate a static frontpage for a Web site I'm working on. I can't seem to get Wordpress to display the blog posts on any other page. I tried creating a custom template to ...
1
vote
1answer
2k views

Unclickable Menu Item Label in Custom Menu with Clickable Children

I need some help with a custom menu. I'm using WP 3.1.1. I need to create an unclickable placeholder in the nav menu. So, the children will be clickable, but the "title" in the nav bar is not. For ...
0
votes
1answer
162 views

menu in different page in different style

I have a one column page for the home page where I have a mega menu and in side the site there is another page called about us where the mega menu is present but it is in small format just like it ...
1
vote
4answers
1k views

How to set classname for <li> tag in wordpress menu?

I am using. <?php wp_nav_menu($args); ?> for get menu from wordpress.it returns the menus with <ul> and <li> structure. In that i need to set class name for every <li> tag ...
0
votes
4answers
317 views

How to set classname for <li> tag in wordpress menu?

I am using. <?php wp_nav_menu($args); ?> to get menu from WordPress. It returns the menus with <ul> and <li> structure. How can i set class name for every <li> tag ...
0
votes
1answer
122 views

How to substitute old wordpress menu by wp 3 menu the right way?

I have a wp theme with this menu in header: <div id="header_nav"> <ul id="nav" class="clearfloat"> <li><a href="<?php echo get_option('home'); ?>/" ...
2
votes
1answer
357 views

how to assign more permission to wordpress author

I have installed jw player plugin so that users of my site could upload their videos. Right now, admin can only see jw player menu on the admin panel and he can only upload videos and use this plugin. ...
2
votes
5answers
729 views

How do I highlight the menu for a child page?

EDIT: This used to be How do I force a page to be is_archive == true? I was trying to solve the wrong problem. Instead of forcing the post/page to have a particular attribute, I should have ...
0
votes
1answer
414 views

wp_nav_menu and its fallback

When I use wp_nav_menu(array( 'theme_location' => 'mainnav', 'container' => 'nav', 'container_id' => 'mainnav', 'container_class' => 'clearfix', 'depth' => 4 )); ...
1
vote
1answer
92 views

Change name & menu_name for Profile in the default menu, w/o altering core files?

I want to change the name and menu_name of the profile menu in the default menu without altering the core files.
1
vote
2answers
1k views

Show recent posts in menu?

I'm building a menu which contains categories. Is there a way to make each menu option show a list of recent posts in that category when you hover over it?
1
vote
2answers
4k views

How to add (css) classes to only one wp_nav_menu()?

Edit I removed the original Question as this Q has far above 1.000 views now - which means it's important to a lot of people - to show you something that works a) without a custom Walker & b) is ...
1
vote
1answer
851 views

simple expandable vertical menu, java script problem

I am trying to create a simple expandable menu in wordpress. Bellow you can see the javascript I am using (copy and mix from internet). <script type="text/javascript"> ...
1
vote
1answer
214 views

What is the best way to create a menu item that links to all posts with a certain tag?

I guess the title says it all. Short of creating a page with a custom template that links all the posts with a given tag (this is NOT a scalable solution, particularly if you want to let a customer do ...
0
votes
2answers
81 views

Pick out specific menu item from code

I'm using this bit of code to generate a menu: <div id="menu"> <?php $args = array( 'depth' => 1, 'show_date' => '', 'date_format' => ...
0
votes
1answer
1k views

Different Menus based on Category Page

I was trying to set up different menus based on what category "page" you were on using the built in Wordpress menu editor. In my header file I set up: <?php if (is_home()) { $menu = ...
1
vote
1answer
4k views

Remove li from wp_nav_menu

How can I remove the li from wp_nav_menu? I know I can remove ul but is it also possible to remove the li? I would want to do this on just one menu not all the menus on my site.
2
votes
1answer
271 views

Accesibility problems with dropdown menus in twentyten theme or others

Some time ago I discovered that dropdown menus that do have clickable links on parent nodes are confusing for the users. Often they are not seeing that they can click on the parent, they just assume ...
3
votes
4answers
3k views

remove last separator?

using; $args = array( 'menu' => 'mainmenu', 'container' => 'ul', 'menu_class' => 'span-10 clearfix', 'after'=>'/'); wp_nav_menu($args); which gives me; london/munich/artists/fairs & ...
1
vote
1answer
841 views

has_term if/echo else/echo function

ok so i have a nav menu with the top level of menu items being static pages. When you highlight or visit one of them there is a sub-menu that pops up. Each one of them has there own sub-menu and each ...
0
votes
1answer
150 views

plus sign not working in widget “Header: Nav Menu”

I installed a new WP site with 3.1.2. The way I set menu/header on my other sites was with the widget "Header: Nav Menu". When I go to that widget now, clicking the + sign to the left of "Items" ...
0
votes
1answer
692 views

Show All Children of WordPress Menu

The code below shows the active sub menu of the Main Menu. It's nearly perfect, however, I need it to show ALL subitems of these sub items, and their children. AKA unlimited depth. Thanks in advance! ...
1
vote
2answers
1k views

How to insert custom code into wp_nav_menu structure?

I was able to use <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => false ) ); ?> to create the menu within my theme. Messed around with 'items_wrap' but ...
0
votes
3answers
510 views

Page menu with one image link instead of page title?

I have the following code generated by wordpress for my nav1: <div id="nav1"> <ul class="menusm"> <li class="page_item page-item-6"><a title="Inicio" ...
10
votes
4answers
4k views

Adding an Archive of Posts to the Navigation Menu in WordPress 3.0

Hay all, I'm playing around with WordPress 3.0 and two (2) of the new features, Custom Post Types and the Menu Editor. I've started off by creating a new post type called "products", as you've ...
0
votes
1answer
886 views

removing the list container <ul> from the custom menu output

any suggestions on how to get rid of ul tag wrapped around li tags in custom menu here at http://www.blueoceanportfolios.com/careers/ the custom menu is outputted with nested tags around like ...
1
vote
2answers
241 views

Adding existing links to custom navigation menus?

When I visit Appearance → Menu, I can add custom links, but not any links I've already created under Links. How can I do this?
0
votes
2answers
1k views

Make menu items open in new tab/page

How do I make menu items open in a new tab/page instead of replacing the current page?
0
votes
1answer
331 views

Do not hyperlink menu heading

How do I make a menu entry that's just plain text, not a link? My kludge workaround is linking to "/", but I'd prefer no link at all.
1
vote
3answers
284 views

Default menu editor with automatic page list

How can I add a page to the menu and define for the menu item that all subpages should be included by means of a simple checkbox?
0
votes
1answer
197 views

Can't display custom menu using name?

I want two menus using the new WordPress 3.0 feature. In functions.php I have: function register_my_menus() { register_nav_menus( array( 'header-menu' => __( 'Header Menu' ), ...
1
vote
2answers
1k views

Force PDF download from custom menu?

I added a link to a PDF in my custom navigation menu. Is there a way to force it to download instead of open?
1
vote
1answer
2k views

How to remove class attributes from custom menu markup?

Just playing around with adding "custom menu" support to my theme. I'm super excited about it. HOWEVER, Check this out > <ul id="menu-my-main-menu" class="menu"> <li id="menu-item-12" ...
2
votes
2answers
398 views

adding .current* tags to custom post types and taxonomies

TwentyTen adds some classes to custom menus, for instance: #access #menu-item-262.current-menu-item, #access #menu-item-262.current-menu-ancestor All the top-level links in my primary navigation ...
0
votes
1answer
121 views

Problems in creating a static site with WordPress

I want to create a static, company brochure site. I created a page called "HOME" and I was able to change the reading settings to static, and select "HOME" from the drop down box. I then created a ...
0
votes
1answer
334 views

Lightword Theme - only one menu item

Since I am pretty new to WP and the whole stuff i ran into a problem. I am using the pretty-well known "Lightword" Theme. And today i've upgraded to the newest version. It's now possible to add/edit ...
1
vote
1answer
662 views

wp_nav_menu google analytics event tracking

I've got a WP3 custom menu, with a custom link in the menu, How can I add google analytics event tracking to that custom link. Thanks Alex
0
votes
1answer
1k views

Menu page with minimum capability as 'Subscriber' doesn't allow 'Admin' to access it?

I've added a separate menu page (an object page) with minimum access level required as 'Subscriber'. I'm doing this because I'm registering new users and they'll be 'Subscribers' with an extra ...
-5
votes
1answer
757 views

How to create an automatic MultiColoumn MegaMenu with Categories WordPress

I'm looking for an easy to use step by step guide on how to create a MultiColoumn menu for categories on wordpress. Actually in my blog I have 10/12 "main" categories and a couple of them have ...
0
votes
1answer
91 views

Prevent custom post type from showing up in custom menus

How do I do that? Any custom post type I register shows up as a meta box on the menu page...
4
votes
1answer
588 views

Attaching a navigation menu to the admin bar?

I have seen a number of solutions of how to manually attach links to the new WP admin bar, but I need to make this much easier for my site admins. It occurred to me that the easiest solution would be ...
1
vote
2answers
1k views

Custom CSS class or ID on menu items that have a Submenu

If I want to apply a style to only an item in a menu that has a submenu, how can I select that with CSS?
0
votes
2answers
797 views

Add a “has-children” class to body tag?

I need to add a "has-children" class to the tag if the current page's or post's menu item in fact has children. As this "logic" has to work with Pages, Posts, Categories etc. menu items it seems it ...
0
votes
1answer
379 views

Determining the “current_page” in WordPress Custom Menus

I am using WordPress Custom Menus. I have links like Home - Rendered using home.php Blog - Rendered using page-blog.php with WP_Query to get blog posts Services - Page Portfolio - Rendered using ...
3
votes
1answer
3k views

Whats the difference between current_page_item and current-menu-item

Whats the difference between current_page_item and current-menu-item when using Custom Menus .current_page_item{} // Class for Current Page .current-cat{} // Class for Current Category ...
0
votes
2answers
312 views

Creating Multiple Menus in the Thesis Theme?

How can I add three menus to the Thesis theme? I want a menu above the header image, one below the header image and one in the footer. A neat step by step instruction like this for Twenty Ten would be ...
1
vote
1answer
1k views

Dynamic sidebar nav with current page highlighting

My sidebar loops through all of the child pages based on the parent page. For example, if you're in the "About" section you'll only see "About" child pages in the sidebar. My problem is that I have ...
2
votes
4answers
1k views

How to fix strange 500 Error after Editing Menu?

I have strange situation which just started which I seem to be unable to resolved. I am not sure what this might be related to but I think I remember reading somewhere that this has happened to ...
2
votes
1answer
152 views

Add a specific category at a specific place to the menu that uses wp_list_pages

I have a main menu where I display pages. All the pages have associated sub-pages, however in the menu some of them are displayed by themselves without sub-pages and some are displayed with a submenu ...