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.
2
votes
1answer
455 views
Using a menu walker add a custom item at the end of the menu's items
I need to add a search field at the end of a menu in a list item.
I've been looking at walkers but finding it really hard to figure out what is the last item (or even get the total). Also where would ...
0
votes
1answer
69 views
Navigation menu displays permalinks
I am creating a theme from scratch and the navigation menu is disturbing
me because it is displaying the permalinks after the menu item name. See this
picture
http://imagebin.org/212406
Link name ...
0
votes
1answer
1k views
register_nav_menus and wp_nav_menu issue, not displaying independent menus
My problem is that wordpress isn't showing the two menu's as separate menus, it just outputs on menu to both positions.
URL:
http://www.msc-media.co.uk
Check the header and footer for the links - I ...
4
votes
1answer
472 views
Highlight parent menu item when child is not in menu
I want to highlight the parent of a child page in the menu when the child page itself is not in the menu.
I know this would work if you add the child as a sub page but that isn't the case.
Any ...
0
votes
1answer
94 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 ...
1
vote
1answer
95 views
custom menu widget where menu title is a link
I am looking for, like the title of this question indicates, a custom menu in wordpress where the menu title itself is a link. It seems like a very simple thing, but after a lot of searching I've come ...
0
votes
2answers
938 views
remove class “sub-menu” from wordpress drop down menu
I am building a wordpress website with dynamic wordpress menu + one level drop down menu (sub menu). since my drop down is a bit tricky and required special CSS I tried to remove the styling that ...
2
votes
1answer
356 views
Best practices: Custom theme sidebar menu - hardcode or widget?
Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
0
votes
1answer
212 views
Links do not open from click, only in new tab [closed]
I'm fairly new to Wordpress, but I'm encountering a strange issue. I have a menu set up, and I've put links to some of my pages inside of it. But, when I try to click on any of the menu items, nothing ...
0
votes
1answer
393 views
wp_nav_menu doesn't show on index page
I'm using calls to wp_nav_menu() in my header.php file. They're conditional, based on whether a user is logged in.
This is in header.php:
<?php if ( is_user_logged_in() ) :
wp_nav_menu( ...
0
votes
1answer
234 views
Custom Menus Description Stripping HTML Tags
Spent two days researching this. I need to be able to add HTML to the Custom Menus Description. Everything I can find (including on this site) is from Feb 2011 and mentions using a strip_tags filter. ...
2
votes
1answer
340 views
Menu highlight custom post type archive
I am a WP beginner and hope if anyone can help me out.
I have recently installed WP 3.3.2 and Jigoshop 1.2 to see how things works if I can use WP as an ecommerce website.
The problem I am facing at ...
0
votes
1answer
88 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
2answers
637 views
How to add nofollow to wp_nav_menu
I need to add an option in my theme options panel to set a specific custom menu's links all to nofollow.
Does wp_nav_menu() allow this or does it require a custom walker to manually ad ...
0
votes
2answers
68 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
1answer
442 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
269 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 ...
5
votes
1answer
338 views
How do I add nested categories to drop-down menu in twenty-eleven?
I know how to do it by writing a separate ul/li css for wp_list_categories, but I find menus of "twenty eleven" already well designed and flexible, so I`d like to use them.
Custom menus, when I have ...
2
votes
0answers
137 views
wp_list_pages sort order is different for different languages [closed]
I'm using the following code
wp_list_pages(array('exclude' => '','title_li' => '','sort_column' => 'menu_order'))
If I switch the language the sorting is different. One of the main menu ...
5
votes
1answer
582 views
Use navigation path from menu for permalink
I now switched to permalinks and defined my own structure
/%postname%. If I click on a menu item it takes the path from the parent page (hierarchy defined directly when editing a page).
What I want ...
3
votes
1answer
2k views
show current navigation path from menu
I want something like this
Home > Products > Steel > Nails
This information should come from the menu structure! I installed Breadcrumb NavXT but it seems that it only takes the path I defined (this ...
0
votes
1answer
251 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 ...
1
vote
2answers
374 views
How do I create predefined menus for my theme?
This is my code thus far:
function register_my_menus() {
register_nav_menus(
array(
'header-menu' => __( 'Header Menu' ),
'extra-menu' => __( 'Extra Menu' ...
0
votes
1answer
138 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
254 views
Limit the menu child levels under “admin > appearance > menus”
in my effort in making the WP backend as user friendly as possible, I'm looking for a way to limit the amount of child (or submenu items) of the menu(s) under "admin > appearance > menus". They idea ...
0
votes
2answers
472 views
Unregister Nav Menu from Child-Theme
I like to use the Starkers Theme and build child-theme.
So, I`d like to remove the this primary menu
Starkers (functions.php)
function starkers_setup() {
// This theme uses wp_nav_menu() in one ...
3
votes
3answers
407 views
One site, 2 distinct sections: two different top nav menus?
I have a site that is in two distinct halves. I'd like the same template to apply to the whole site (from a look & feel perspective), but for each 'half' of the site to have its own top nav menu. ...
0
votes
1answer
81 views
Displaying wp menus by name without using theme locations
I used wp menus in the past but always registering a location and then using:
<?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
To display a menu on that location on my ...
0
votes
1answer
183 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
537 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
217 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
367 views
Jquery submenu display problem [closed]
I'm using default wp menu and I added some jquery for drop down slide effect. My problem comes when I hover <li> item because it displays all sub-menus in the same time.
Here is my Jquery which ...
3
votes
3answers
3k views
Add a .last class to the last <li> in each ul.sub-menu
I've seen a lot of code on how to add a first and last class to a WordPress menu, but in my instance I would like to add a last class to the last li in the sub-menu that WP generates. Here's what I ...
-1
votes
1answer
505 views
Why don't my custom menus show up in WPtouch Pro?
I'm using WPtouch Pro to create a mobile theme for my wordpress installation. I've activated it, but the custom menus I've created don't show up in menus drop down.
Note that I'm using a different ...
0
votes
1answer
118 views
nav sub menu display problem [closed]
I have used WP nav menu in my website. It works fine. I have added the sub link under the home link. But it is not properly displayed. Please refer the screenshot.
In the above image, "support our ...
0
votes
2answers
151 views
a better menu, menu options assistance for WP
So long story short, im a noob WP dev and im like on my 2nd custom WP site so sorry if i sound a bit lost.
As i was doing my first WP custom site, i noticed that for example, on the default theme and ...
2
votes
2answers
313 views
Automatically generated menu
I have a menu:
Activities
Projects
About Us
News
(not counting submenu items).
Now "Activities" has no submenu.
I created custom content type "project".
My boss want to fill the menu ...
0
votes
1answer
154 views
exclude pages in custom menu
I am creating a custom theme for wordpress, which will have a settings page. i am adding the option to exclude pages from the navigation, which will simply work on the page id separated by a ","
here ...
0
votes
1answer
446 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, ...
-1
votes
1answer
245 views
How to add a hash tag to the menu URLs? [closed]
I currently use AJAX in my theme to load the main content. I want the menu to be highlighted on the current page.
The script I'm using for AJAX puts a "#" in the URL .. (ex: http://localhost/#/bio/)
...
0
votes
2answers
74 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
547 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
314 views
3 blogs on one site with the same header menu?
Person X has default SITE with an integral blog. Person X also has SITE 2 with Blog 2 and also SITE 3 with Blog 3.
Is it possible to have on the DEFAULT SITE HEADER MENU something like this:
HOME ...
1
vote
1answer
216 views
Show only 2nd level of navigation depending on active navigation
For example, suppose a menu like so:
Parent 1
Child A
Child B
Parent 1
Child C
Child D
Child E
Parent 2
Child F
In a certain part of my template, I want something to show depending on ...
2
votes
0answers
80 views
Strange behavor of wp_nav_menu by not appearing [closed]
It is in header.php
wp_nav_menu(array('theme_location' => 'top-nav','container_class' => '', 'fallback_cb' => ''));
in functions.php
function register_custom_menus(){
...
0
votes
3answers
1k views
Removing specific menu items?
I used the following to remove certain menus for the "editor"
function remove_menus () {
global $menu;
if( (current_user_can('install_themes')) ) {
$restricted = ...
1
vote
2answers
1k views
Custom Post Types don’t highlight in menu nav
Working on a theatrical events site. The structure requires several separate events areas, each with a top page listing events in the particular area, and corresponding individual events pages ...
1
vote
4answers
404 views
Remove Metabox from Menus screen
Been digging into WP files for a bit and think I just might be missing something. The end-goal is to remove the Theme Locations metabox from the Menus screen if someone doesn't have a certain ...
1
vote
2answers
630 views
Get parent page/menu id of current post
Basically, after setting up the initial "page for post" on the Reading Options, and then add that page to the menu I get the posts when I click on that menu item as expected.
On there I know the post ...
0
votes
2answers
82 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 ...