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

Wordpress Menus - How to add inline styles to UL menus

I've just converted my HTML version of a theme over to Wordpress, and I'm currently converting the dropdown menus over. What WordPress processes: <ul class="dropdown"> <li ...
0
votes
1answer
920 views

wp_list_pages not showing cpt as I expected

I have a CPT called 'vacancies' here is the code that registers it: function register_cpt_vacancy() { $args = array('labels' => $labels, 'hierarchical' => false, 'supports' => ...
0
votes
2answers
695 views

Remove the <ul> Tag from wp_nav_menu

I want to remove the <ul> tags from the wp_nav_menu. I already found different posts about it here but they don´t seem to work for me. Here is what I did: First I registered the menu in ...
0
votes
1answer
178 views

Menu not styling. New menus functionality giving me a headache

I can't find a good tutorial on the new menu handling functions, and the ones I found don't seem to work for me. What am I doing wrong? In my functions.php: (I'm using the Blank Slate theme as a ...
0
votes
2answers
1k views

wp_nav_menu not appearing correctly on category page

this is the code i am using to call wp_nav_menu <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => '', ...
0
votes
1answer
540 views

How can I create an automatic drop down menu with my tags?

I have another post type which isn't the default one. I have four taxonomies attached to that post type. And I have many tags attached to these taxonomies. I would like to create a drop down menu ...
0
votes
1answer
431 views

add span to wp_nav_menu widget

Am using the custom menu widget to add a menu in the footer and i want to add a in the menu how can i do this ? like so... <li><a ...
0
votes
2answers
448 views

Styling an “active” link outside of Wordpress default menu

I want the background-color of the selected box on this page to display gray color once the user lands on the corresponding page. My link is currently setup inside of the page template itself as a ...
0
votes
1answer
762 views

Add span in top menu item with nested itens

I found examples adding a class to top level itens, so we can display an arrow in menu itens with subitens, but is seems terrible to cope with the already builtin WordPress classes, can't display the ...
0
votes
1answer
494 views

Buggy wp_nav_menu?

I hope somebody can show me some light on this. I am working on a site that has a 3 level menu which loads calling 3 different wp menus (let's say "main-menu", "projects-submenu", ...
0
votes
1answer
1k views

Custom nav menu not showing

I want to make a custom menu that will be a select-box, I registered a custom menu: add_action( 'init', 'register_my_menu' ); function register_my_menu() { register_nav_menu( 'primary', ...
0
votes
1answer
184 views

select a main navigation menu per user type from multiple main navigation menus

GOAL: I want to use custom menus for two different kinds of users. For instance, I want to Merchant users to be able to use Merchant menu, and Owner for Owner menu. I do not have enough reputation, ...
0
votes
1answer
754 views

remove everything from wp_nav_menu

My theme has three 3 menus: two that are dropdown menus and one that is different. I want to remove the div, class, etc. from the menu that is different. For Example: I have three menus topnav ( ...
0
votes
1answer
348 views

Can you exclude child pages of a specific parent within a navigation?

For example, I'm using wp_list_pages to display the navigation, the child pages (and their children) appearing on hover as is typical. However, I want one of these parents to not display the children. ...
0
votes
1answer
104 views

Custom post type post in custom menu

I created Custom post type named Regular pages. In that custom post type I created two pages About us and Services. Is there any way to add that posts into my custom menu I created in ...
0
votes
1answer
108 views

How do i specify a url to which to redirect the user after he logs out from facebook?

I need to specify a url that i will use after the user has logged out from facebook because i need to do some extra-cleaning and he is correctly logged out from our app. For this i need a url that ...
0
votes
1answer
1k views

How to create Loop code for Menu using Wordpress?

I have created a menu called "My Menu" in wordpress using Menus feature provided under Wordpress admin panel. I have added 3 pages into it named Page A, Page B, Page C. I have applied featured image ...
0
votes
2answers
87 views

What's the best way to customize the Wordpress Menu Page (in admin)

Helo, I would like to restyle/reorganize my Admin Menu Page (wp-admin/nav-menus.php). What's the best way of doing this? Can I just edit the page directly?
0
votes
2answers
468 views

Nav Menu – Add class based on meta keys

I'm trying to find a way that changes the classes of the different nav menu items, based on the value of a meta key in the page. The menu currently looks like this: <li ...
0
votes
1answer
550 views

wp_nav_menu li item empty

I created an menu by admin panel > Appearence > Menu. I have just one menu page in menu_lateral_1 . Or the result is <li id="menu-menu_lateral_1" class="menu"></li> <li ...
0
votes
1answer
235 views

Recent Posts widget missing current_menu_item class

Unlike the (WP standard) Custom Menu widget, the Recent Posts widget does not add the current_menu_item class when a post is selected (being displayed). This seems like a major oversight, am I ...
0
votes
1answer
212 views

Set first level items to <h5> in wp_nav_menu()

<div class="news-features"> <h5><a href="">News & Features</a></h5> <ul> <li><a href="">Industry ...
0
votes
2answers
1k views

Custom post type posts wont show in wp_nav_menu()

I have created a custom post type and registered it using this code $labels = array( 'name' => __( 'Portfolio' ), 'singular_name' => __( 'Portfolio' ) ); $args = array( 'labels' => ...
0
votes
1answer
434 views

Custom Menu in Themes not working even in Twenty Eleven theme

I am currently having problems with a Wordpress installation. The remote site I was supposed to theme uses WP 3.2 so I used 3.2 I created a theme that supports custom menus and it works fine on my ...
0
votes
1answer
681 views

dropdown menu, with walker

I'm using the following walker to create a dropdown menu that I will use on a mobile version of a project I'm working on... it works fine, however, when I select the page, it doesn't load the page, ...
0
votes
2answers
103 views

How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?

I need to change the color of some custom link elements in dropdown of my wordpress custom menu here. There 3 items in my dropdown that dont have any url associated with them: Air Duct Chimney Dryer ...
0
votes
1answer
1k views

How to get wordpress nav menu outside of wordpress system?

I want to get a specific wordpress nav menu as a list in my custom php page outside of wordpress. How to do that?
0
votes
2answers
128 views

Increase search results for Admin -> Appearance -> Menus -> Search (default is 10)

I have over 800 pages in WordPress which becomes a challenge trying to find a specific page to add it to the menu. View all works if you have only a few pages so the best option would be to search for ...
0
votes
1answer
173 views

2 item in a same menu pointing to 1 page

I have a menu containing 2 item that pointing to 1 page, my question is how do i highlight the top level item according to where i click it. <nav> <ul class="mainNavi" id="menu-main"> ...
0
votes
1answer
164 views

Add function to custom menu

I am am trying to add a function to my custom menu. The menu works, but I have no idea on how to get the custom_execute_shortcode() function to work inside the add_profile_link_to_nav() function. Any ...
0
votes
1answer
374 views

How do I remove this menu bar?

I just use the pages for navigation. I don't need the menu bar that has the single item - uncategorized. Here is the link to the theme being used. ...
0
votes
1answer
107 views

Catagorized hierarchy menu for PAGES!

Yes, I am a noob at all this so please excuse my ignorance! So, for the past couple of days, I've been searching for a drop down page menu widget, but I would like to have the pages separated into ...
0
votes
1answer
449 views

Show menu based on parent & ancestor

Trying to show a wp menu based on parent. Works great on parent / child pages, but on grandchildren pages its failing. How should i restructure the menu selector to include the sub nav menu based on ...
0
votes
1answer
149 views

Difficulties filtering manage_nav-menus_columns

I realize I've asked similar in the past, but I've currently running in some difficulties editing/removing the admin nav menu advanced menu properties. (without using jQuery) add_filter( ...
0
votes
1answer
59 views

Registering a static menu?

I have a website with a very large sidebar menu that uses an accordion plugin to keep everything compact and organized. Unfortunately, my menu has grown so big that I am unable to save any new ...
0
votes
1answer
311 views

Using CSS ID's and Classes with images in a Wordpress Horizontal Menu

just found this marvelous website, so, I'm new in Wordpress. I have a HTML/CSS website developed from a PSD file. Everything was going OK, Header, Footer, but when I came across the WP menu, I'm just ...
0
votes
2answers
5k 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
116 views

Hide custom menu when when no menu selected

The title might not a 100%, feel free to correct... I'm building a custom theme that has a couple of costume theme locations for menus (1 main menu, 1 footer menu, 1 "Follow Live" button). These are ...
0
votes
1answer
432 views

wp_list_pages() not showing on posts

I have the following code showing up a sub-menu on my website (in my header.php file) that shows all well and good, however when I open up a post it dissapears: <div id="dep-menu"> <?php ...
0
votes
1answer
578 views

Populate wordpress menu with link to custom field value (file download)

I have an additional menu that appears on some single.php pages. To this menu I would like to add an li with a link to a PDF which is uploaded to the post by a custom field (advanced custom fields ...
0
votes
1answer
887 views

How to Use the Function is_user_logged_in To Display Different Menus?

So, I want to create different menus for people who are logged in or not. I got a reply that i should use a function if (is_user_logged_in()) { wp_name_menu(array('theme_location' => ...
0
votes
1answer
2k views

How to add div to top menu itiem

<div class="menu"> <ul> <li class="page_item page-item-15"><a href="link.html">XXX</a></li> </ul> </div> Where "XXX" I want to put ...
0
votes
2answers
235 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
1answer
313 views

How to create menu spread over four lines including images

I would like to create a dynamic WordPress menu using wp_nav_menu() divided over four lines or rows as the static website. I think I should either force the menu to do this using CSS and width ...
0
votes
1answer
350 views

Add session or cookie to remember last menu location

I have a site that is pretending to be three sites. This is done by a series of conditional statements and page templates to make it look like the user is on a different site depending on their menu ...
0
votes
1answer
196 views

Is custom menu name and category name linked in wordpress?

I have created a custom menu for each of my categories (to show subcategories of each category on that category page) and that menu will have the exact same name as the category name. The weird ...
0
votes
2answers
670 views

Hard-coding a shortcode as the last menu item in primary navigation?

I have Genesis framework installed with a child theme. My client wants their themes "shopping cart" shortcode to be the last menu item, in their primary nav, no matter how many menu items there is. ...
0
votes
1answer
374 views

How do I render a navigation menu like my theme does?

I am using the theme suffusion, and I'm trying to add a custom navigation menu to only one of my pages. I've managed to get it almost working using this in my page template: if(is_page('123') { ...
0
votes
2answers
447 views

Dynamic menu with custom post types

I'd like to create a dynamic menu with a mix of static pages and custom post type archives that applies a class of "current" to the current tab. The example below uses 1) Static page set as Home 2) ...
0
votes
2answers
951 views

wp_list_categories() Exclude All Categories Except One

Is there a way to exclude all categories except one? I want to show a category and it's sub-categories as a dropdown menu, but the admin might add more subcategories to it so I don't want to limit ...