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.
1
vote
2answers
989 views
Filter out built-in wp_nav_menu classes but keep custom class
Im trying to remove / filter our all the classes from the wp_nav_menu, EXCEPT the custom ones that i insert (in the "CSS Classes (optional)" field) when creating the menu in the admin.
I found a ...
1
vote
2answers
938 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?
0
votes
1answer
773 views
Menu with Automatic Pages Included from Custom Post Type
Question - How can one utilize the wordpress 3.0 Menu system to automatically have new pages from a custom post type included within the menu (I am referring to the Menu Management area of wordpress ...
12
votes
1answer
975 views
add_menu_page() with different name for first submenu item
The add_menu_page documentation says to pass the menu title as the second parameter:
add_menu_page('Page Title', 'Menu Title', ...);
When adding more pages later via add_submenu_page, the main page ...
3
votes
4answers
2k views
How to add current, parent, and ancestor menu item IDs to body_class()?
(just got reccommended to post this over here from stack overflow...)
I am just starting with Wordpress (defecting from Joomla)- having a bit of difficulty getting started.
One thing I am trying to ...
3
votes
2answers
645 views
Overwriting Core Wordpress Functions with Plugins
Is there a way to overwrite a core function is the Wordpress core using a plugin? I don't need to inject code, I need to replace the function entirely with a re-written version.
The specific function ...
2
votes
1answer
137 views
Determine if a navigation item has children
I am trying to determine if an item has a sub-item with depth 1 or higher. I cannot find anywhere if there is some function/query I can write that grabs the current item looks in the database if it ...
2
votes
2answers
2k views
Dynamically exclude menu items from wp_nav_menu
I tried looking for info about how to exclude/remove nav menu items from custom menus, and the only thread I found did not have any answers that were useful to me.
1. Background:
I put together a ...
1
vote
3answers
1k views
How to add meta box to backend menu page
I need to add a meta box to the backend menu page, in Appearance->Menus (/wp-admin/nav-menus.php), to list all the available post types, both the defaults & the custom ones.
It will contain a ...
1
vote
1answer
681 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
1k views
change front end menu depending on user login
How can i change my front end menu depending on if the user is logged in or not?
For Example:
View 1: user is not logged in
menu is : home , about us, testimonials
View 2: user is logged in
menu ...
0
votes
1answer
148 views
How to make a plugin auto-add item to nav menu
I'm building a contact information plugin that writes data to a page. So far, so good. What I would like is to build a function into the plugin that adds a navigation item to the main nav bar on the ...
0
votes
2answers
707 views
Adding html elements to wp nav menu
I know how to create wp menus using the functions.php and diaplay it in my sote wherever the menu is required (e.g top menu, footer menu)
I even know how to style it using custom CSS.
I would like to ...
0
votes
2answers
678 views
Conditional custom menu?
I'm trying to create a custom menu that displays a <li></li> when a user is logged in, and not display it when they're not. I have this so far, but it's not working. Does anyone know how ...
0
votes
2answers
647 views
How to add pages to custom menus on the fly [duplicate]
Possible Duplicate:
Can I add pages to my custom menu via script?
My theme has a custom menu called "Custom Header Menu" and i've got a plugin that sets up site defaults and creates my ...
5
votes
2answers
2k views
remove “edit your profile” from admin menu bar
How can I remove "edit your profile" submenu under "my-account-with-avatar" admin menu bar, while still keeping the avatar and logout?
4
votes
1answer
516 views
How to get IDs for objects in menu branch?
Is it possible to print content of all menu items, when displaying menu (or branch of menu as in question about displaying menu branches) ?
Once I click on About Us I wish for new page to display ...
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 & ...
3
votes
6answers
3k views
Large WP 3.0 menu times out and won't save
I have a large menu containing 10 parent items with roughly 7 child items each that I am trying to build using the WP-admin > Appearance > Menus.
I have nearly all the menu items added but now my ...
2
votes
2answers
945 views
How to use a WordPress' existing admin icon?
I use the add_menu_page function to add an new admin menu:
add_menu_page(
'Custom_menu',
'Custom_menu',
'edit_posts',
'custom_slug',
'',
'wordpress_existing_icon',
5
);
...
2
votes
1answer
994 views
BuddyPress - How to add logout in nav menu
How to add a logout option to the main nav menu (not to the top bar) in BuddyPress?
2
votes
2answers
515 views
Organizing by super-categories (or nested categories)?
Suppose I want to blog about three somewhat unrelated main topics: Money, Languages, and Information-Technology on the same blog. How should I organize things for the best user experience? How does ...
1
vote
2answers
140 views
Select menu on browser resize
I have seen on some wordpress themes that if the browser width is less, the normal menu becomes a select menu. Can someone tell me how it is done?
I know there is a plugin for that, but I want to ...
1
vote
1answer
470 views
Custom search filter causes menu and query_posts problems
I'm using a custom search filter (using my custom query var type), like so:
function fteh_pre_get_posts( $query ){
if( isset( $query->query_vars['type'] ) )
$types = explode( ',', ...
1
vote
2answers
489 views
Wordpress Menu Disappears when $query->query_vars['meta_key'] is set
I've set some meta variables on my WP posts. I want to be able to sort by these variables, and everything is working great except when I sort by either "views" or "likes". When I sort by either of ...
1
vote
1answer
587 views
insert element inside wp menu list item
I am not sure if it is clear from the title what I want to achieve here so let me try to clarify this.
I wanna make use of Wordpress's menu system and need to adjust it to my needs, which means that ...
1
vote
2answers
370 views
Is it possible to add classes to list items in wp_nav_menu()?
I am using
<?php
wp_nav_menu(
array(
'theme_location' => 'header-menu',
'menu_class' => 'nav-bar',
'container' => 'nav'
)
);
?>
to output my ...
1
vote
1answer
1k views
register_nav_menus() won't register menus
Please help with menu registeration:
I have followed this guide (http://codex.wordpress.org/Navigation_Menus) step by step.
Added the following code to functions.php:
function register_my_menus() {
...
1
vote
2answers
440 views
Adding a Nav menu to post admin
i want insert a dropdown menu with list of menus, that i've created in nav-menu.php, to post-admin...
For example, when i'm creating a post, i want insert a menu "Paul" in a post (only a post that i ...
1
vote
3answers
2k views
How to count nav menu items?
I'm creating a custom walker for my nav menu. The goal is to split the menu in to columns like so:
I can easily determine where I am in the list by looking at $item->menu_order. What I don't ...
1
vote
2answers
9k views
How to Create a Custom WordPress Navigation Menu with the Code?
Without using plugins, how to create a custom WordPress navigation menu with the code?
I have Wordpress ver 3.2.1
and Buddypress ver 1.5.1
I would like to create a menu like this:
click here
I would ...
1
vote
1answer
1k views
jQuery Hoverintent plugin in TwentyEleven Menu [closed]
The default menu in the TwentyEleven theme is quite nice, pure CSS, but unfortunately, way too responsive and quick. It would be so nice to have it respond the same exact way with which the admin bar ...
1
vote
1answer
197 views
Replacing WordPress menu functionality with a plugin
I asked this earlier on StackOverflow.com before realizing there was a StackExchange specifically for WordPress. Here is the link to the old question (for moderator deletion):
...
1
vote
1answer
596 views
Change image based on menu item id
My client request to put header images, but the images must be unique based on what menu the click.
Let say i have 2 menus. First is What is A and second is What is B.
I can know the menu id when i ...
1
vote
2answers
3k 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
443 views
How to specify or extend the CSS-class of a menu item?
is there a way to allow admin users to add classes to individual menu items in the back end? we have done some individual javascripting and CSS using the title tag, but that is not flexible as it is ...
0
votes
1answer
22 views
Move Sticky Nav Menu Below WordPress Tool bar when tool bar enabled
I've created a sticky menu but its hidden behind the WordPress Toolbar when logged in. How do i move it below the toolbar when enabled and logged in?
I was looking for a conditional tag but couldn't ...
0
votes
0answers
26 views
How to remove max elements menù
On my website www.wrestlingitalia.it, the menu at the top there is a maximum limit of items you can add, after which, if it is integrated with other, some are hidden. I would like to remove this ...
0
votes
1answer
98 views
Nav Menu and display post count
Iam looking for a solution that the number of child post displayed, like so:
Parent (14)
- Child
- Child
Parent (2)
- Child
I have played with the custom walker and tried the function with ...
0
votes
0answers
19 views
How to get the excerpt in nav menu walker? [duplicate]
Possible Duplicate:
How can I access the “description” of a menu item?
This leads on from my previous question. I now need the excerpt instead of the nav menu description as not all pages ...
0
votes
1answer
743 views
wp_nav_menu - show children of current menu item only?
I am trying to create a menu structure with a simple concept:
A horizontal, 1-level deep main menu
A vertical submenu, that contains children of the current main menu item (2 levels deep)
Of ...
0
votes
1answer
659 views
Adding a unique class to wp_nav_menu
How would I go about adding a unique class to the direct child li elements of the main parent ul element generated with wp_nav_menu?
<nav id="access" role="navigation">
<div ...
0
votes
1answer
1k views
3 Level Deep Navigation Menu Not Showing All Levels
I have a 3 level deep navigation menu which will show beside all pages on the site except the homepage. The issue is only 2 of my 3 levels are showing in the menu when displaying it using the ...
0
votes
1answer
384 views
How to create different menu's for not logged in visitors and for logged in members?
I'm creating a website which will provide services to members and I want to make it so that when a not logged in person comes to the website the menu is specifically designed for sales pages to make ...
0
votes
2answers
171 views
custom menu not found
I am trying to use a menu which I have partially working, I have setup functions.php:
if (function_exists('register_nav_menu')) {
register_nav_menu('main-menu', 'Main Menu');
}
I have configured ...
0
votes
2answers
2k views
How to style current page menu item when using a walker
I have designed a custom menu and would like to be able to style the individual li dependent whether it is the current page or not? I believe this is normally pretty straightforward using a class such ...
0
votes
4answers
1k views
Hide menu items for visitors and filter based on role
In my menu i've got some menu items that i don't want to show to people who aren't logged in. One of these i only want to show to logged in users of a certain roles the other to everyone logged in.
...
0
votes
2answers
1k views
How to show only parents subpages of current page item in vertical menu?
I just can't find a way to make it possible to show only current parent items down to current page item in a vertical menu the "wordpress way".
What I want to achieve is the following dynamic ...
0
votes
1answer
71 views
Styling child custom menu pages
I have a custom menu created using Appearance > Menus which contains top level and child pages.
I would like to be able to indent my child level pages to give some sort of visual hierarchy to the ...
0
votes
4answers
764 views
How can I remove a menu item programmatically?
I'm using the built in menu manager to create my menues and I disaply them by using wp_nav_menu().
I'm wondering, is it possible to remove certain menu items from being displayed based on some ...