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.
0
votes
1answer
241 views
How to open a lightbox form from a navigation menu item
I want to add a custom menu item to the main navigation menu, On clicking this item I want to open a lightbox form. I have the form-shortcode ready to be placed but on a page but I don't know how to ...
2
votes
1answer
28 views
How to highlight the current page in the nav menu?
I'm customizing a WordPress theme for my school, and I'm a bit annoyed by the fact that the current page in the nav menu is not indicated.
For example:
You can clearly see that I'm hovering over a ...
0
votes
1answer
183 views
Display link with current user's username in it in Custom Menu
I'd like to add a link to BuddyPress' My Favourite Topics in a Custom Menu. Is there a way to use the current logged in user's username in the link?
I mean like the %category% in the permalinks.
1
vote
1answer
1k views
Using wp_get_nav_menu_items() to list children of children pages
I'm working with a Genesis Based Theme and I'd like build a Page/ Child Page menu structure. That part I can do with the help of some code produced by Bill Erickson.
Essentially what I'm trying to do ...
0
votes
1answer
41 views
Add <span> within the <li> output of <? wp_nav_menu() ?>
Im currently printing out:
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
Which outputs:
<div class="menu">
<ul>
<li ...
0
votes
0answers
113 views
collapse twenty twelve submenu in mobile version
in the twenty-twelve theme, the following code will collapse the sub-menu ul/li of the mobile version...the problem is that it also brake the normal version of the menu! how can i use it only when the ...
1
vote
1answer
34 views
Custom dashboard menu does not stay open for the custom Taxonomy within it
Short Version:
Custom menu with a custom post type that supports a custom taxonomy. The custom post type works, the menu for it works and stays open. The custom taxonomy works, but the sidebar menu ...
1
vote
0answers
28 views
One item not showing when programmatically Generating Navigation Menu
I am programmatically generating a navigation menu with the following....
add_action( 'init', 'register_navmenus' );
function register_navmenus() {
// Check if Top menu exists and make it if not
if ...
0
votes
0answers
32 views
Solution for menu limit in wordpress theme twenty twelve?
I just hit a limit for menu items in Wordpress theme Twenty Twelve. The issue is described here, but is largely unresolved:
http://core.trac.wordpress.org/ticket/14134#comment:63
I edited my php.ini ...
-1
votes
1answer
36 views
Why there is a gap between <UL> and it's container (A drop down menu in wordpress) [closed]
This drop down menu works well in HTML but when i move it to wordpress template, there is a gap between and it's container (.menu-top-container).
when the mouse on the menu you will find the gap.
...
0
votes
0answers
35 views
Does wordpress add their own classes into nav menus?
I am building a theme and have noticed that when I create a menu with just html or have it dynamically add menu items based on pages it looks how it was meant to be. Although when I change the code to ...
1
vote
2answers
113 views
Building a Sub-menu: Display Parent Category/Page's Children When Viewing Children
I would like a sub-menu in which the user visits a page, post, or category (in this example, "info") and is then displayed a list of children categories/pages. Not a dropdown menu, but a menu that ...
8
votes
3answers
3k views
Programmatically add a Navigation menu and menu items
Through API functions, I want to define a new Navigation menu, select it in the current theme, and then insert a few Pages as menu items. This is to be done for instance on a theme activation.
...
-1
votes
0answers
27 views
How to make image menu items responsive as a combined group in twenty-eleven [closed]
I am using a twenty-eleven child theme for a static website (www.notquitenormal.net) using images as menu items rather than the default text and there are up to five images on any page menu.
My ...
-2
votes
0answers
31 views
get parent product category id in wordpress pages
I am using woocommerce for my wordppress site. I have included a product category as main menu and subcategories as it's sub menu using get_categories( $args ). How to set active state for that parent ...
0
votes
0answers
24 views
Create Nav Menu on theme activation not working
I am running multi-site, i have an activation file which looks like this....
//First check it make sure this function has not been done
if (get_option('this_has_run') != "yes") {
add_action( ...
0
votes
1answer
19 views
Lost admin “manage_link” capability WordPress. No “Links” menu item in admin menu
Going slightly mad. In the process of upgrading a client's website to WordPress 3.5.1 we've decided to use the built-in WordPress "Links" system to manage their affiliations.
I am using the "Admin ...
1
vote
0answers
13 views
Navigation menu not being assigned Theme Location
I am setting my navigation menu up using the following snippet in my functions.php.
add_action( 'init', 'add_menus' );
function add_menus() {
register_nav_menus(
...
0
votes
1answer
51 views
Show different menus for login / logout user [closed]
I am try to show different menus for login and logout user. Here is perfect solution to do this and also work on Twenty eleven theme. But when I try to add this code to my woo theme's defination (in ...
1
vote
1answer
40 views
How to remove a metabox from menu editor page?
I am not sure if it is much different for any page but I am wondering how to remove a metabox from the appearance>menu page without having to go into the wordpress core files and remove it. Is there ...
1
vote
2answers
125 views
Add nav menu CSS class to body
I would like to add the CSS class of the current menu item (and the classes of its parents & ancestors) to the current page body classes.
For example, if the current menu item has a CSS class ...
1
vote
1answer
17 views
Unregister Nav Menu with fallback?
I am trying to create a child theme so theme updates are much easier. I want to remove the parent theme menus and add my own. I know I can modify the header.php file (where these menus exist) and ...
1
vote
1answer
31 views
Add CSS to head depending on nav menu walker
I have a custom walker for a navigation menu on my website, and within it I have some custom CSS that I want to apply to each menu, however, I cannot simply echo it there because even though it works ...
7
votes
1answer
651 views
Custom Nav walker display current menu item children, or siblings on no children
I've been messing around / searching for hours and still can't get this to work, so i'm finally giving in and asking for some help.
I'm trying to write a custom walker that shows only the current ...
1
vote
1answer
226 views
wp_nav_menu() mark current item ancestor of custom post type
This solution does almost what I want it to.
Only thing is, I have my menu set up as follows:
Menu item 1
Menu item 2
Custom post type 1
Custom post type 2
Custom post type 3
Menu item 3
...
0
votes
0answers
31 views
Custom Nav Walker menu - Don't display children count [closed]
please can you help me not to display those posts quantity in WP nav-menu's brackets?
Nav menu code goes like this:
<nav id="menu">
<?php wp_nav_menu( array(
...
1
vote
1answer
161 views
Plugin menu addition in multisite
$wp_admin_bar->add_menu( array(
'parent' => $menu_id,
'id' => $menu_id . '-example',
'title' => __( 'Example Menu Item', 'example' ),
...
1
vote
1answer
768 views
Wordpress 3.5 dropdown menu
I'm pretty new with wordpress and I want to create my own dropdown menu without the use of any plugins. I have a few questions about this. I already did some research but there are some things i do ...
0
votes
1answer
32 views
Keeping 'current-menu-item' highlight of navigation menu?
The navigation menu of my site is generated via
wp_nav_menu( array( 'theme_location' => 'primary') );
Some menu entries are category pages (say /category/news/). This page contains links to the ...
1
vote
2answers
483 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
206 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 ...
0
votes
0answers
24 views
Unable to add post to the custom menu?
I added custom menu in wordpress 3.5.1 from Appearance-Menus-Menu name. After saving it does not appear on the site. Also the post is also not showing. What are the additional configuration I required ...
0
votes
1answer
120 views
Menu disappears after attaching [closed]
When I go to [Appearance > Menus] and attach menu to its area and refresh that page it disappears. This happens only on one WordPress theme (but not on default).
Do you have any ideas what could ...
0
votes
0answers
27 views
Group post archive by last two weeks and months
I want to show an archive menu in each page in the following manner:
Today
Yesterday
This week
Last week
This month
Last month
Earlier
How could I do that?
0
votes
1answer
119 views
How to looping taxonomy terms?
is there any way to loop terms in a way they display in menu?
Eg:
Let say I have 2 taxonomies in a post type - tax1 and tax2.
They are not hierarchical to each other.
If I have posts that have ...
0
votes
1answer
121 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
0answers
23 views
Menu support for touch devices
I've noticed that on touch devices like the iPad or Surface the menus in my WordPress site do not work. When using a mouse on a desktop, as soon as I move over a menu item, the submenu automatically ...
0
votes
1answer
193 views
Missing current_page_item in custom menu
I'm using the new custom menus in my side navigation and it only creates a class sub-menu in the UL's but does not use the current_page_item like when you use wp_list_pages(). I have 3 levels and only ...
2
votes
1answer
194 views
Menu Items Disappearing
I'm running WP 3.5.1 and I've a menu with about 100 items. When I add new items to the menu older ones disappear.
I'm not running Suhosin or similar stuff. What can be the cause?
Note: I'm on a ...
1
vote
1answer
392 views
How to add sub-menu to a menu generated by wp_nav_menu by using plugin
I have a menu generated by wp_nav_menu which look like
<ul class="nav-menu" id="menu-top-nav">
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
1
vote
2answers
110 views
Unable to create or edit menus
I'm running 3.4.2 on Ubuntu. I'm unable to make any changes to menus at all. Also I'm unable to upload anything (flash or browser uploader) to the media library. However plugins have no problem adding ...
0
votes
0answers
51 views
woocommerce horizontal menu parent cat and subcategories as vertical menu
I have looked a while to find a solution for this and cant get a clear path on how to do this.
basically i would like the child categories listed as a vertical menu but only the ones who belong to ...
0
votes
0answers
69 views
Menu li on hover reveals a Div styled with CSS special effects like transform shapes gradients or a background image
I was asked to make this a more obvious WP question, sorry.
It is about the WP NAV MENU I think...
Is there a way to have every menu item get listed and have a div correspond to it that is within the ...
0
votes
0answers
31 views
Wordpress adding in site URL to header links
A little information: I am developing a one page theme that uses posts as sections on the main page. I have created code that allows users to add a menu item in the post page from a meta box when they ...
0
votes
1answer
31 views
Conditional menu display
I have the line of code below with the intention to display the called menu in every other page except the home page but it still shows up on the home page. Any ideas what the problem could be.
...
0
votes
1answer
25 views
Make three menus with three category levels
I want to have 3 menus of categories, and each menu with diferent level of categories.
First menu with First level categories:
category 1
category 2
category 3
If I go to the first category, I ...
0
votes
2answers
121 views
Handling complex multi-level architecture / menu for large site
I am trying to get feedback and ideas for solving an information architecture / content management problem using wordpress.
I have a large site ( 1,000+ pages, hundreds of posts ) made up of ...
1
vote
2answers
1k views
how can i manage buddypress's navigation baar
hi i have create a community by using buddypress. but i am in problem.
i want to manage buddypress navigation bar. which have these pages My Home , my profile etc..
actully i want to put these two ...
0
votes
0answers
15 views
customizing jquery with ubermenu jquery API's
I am having a heck of a time trying to get this simple function to work in WP using ubermenu:
My goal is to have dropdown menu-itm-156 fire when the document.ready and control it based on which page ...
1
vote
1answer
229 views
how can i add css class on current page in wordpress wp_nav_menu
how can i add css class on current page in wordpress wp_nav_menu
For Example I Want To Use It In Wordpress wp_nav_menu
<li><a href="index.php?id=index&colortheme=green" class="selected" ...
