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
votes
0answers
30 views
Ajax tabs not animating content
I am having some trouble with jquery ajax in Wordpress. I want Ajax to load content from other pages in a div called "place-content". They are loading but it jumps to the top of the page every time a ...
-2
votes
0answers
26 views
WP create menu items from all category and its sub category [closed]
i'm developing a theme which automatically use categorIES as menu item,
1
vote
1answer
577 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
1answer
103 views
Menu Custom link - using relative link when WP is in a subdirectory
I tend to develop sites in a subdirectory, and I tend to use a fair amount of custom links in my menu ( the "Custom Links" option in the WP admin Appearance > Menus section) to display archive pages.
...
1
vote
1answer
136 views
Exclude Private, Draft pages from Primary Nav when using custom menu
I'm looking for ways to prevent "private" and "draft" pages from appearing (to non-logged-in admins) in a site's Primary Navigation menu which is based on a custom menu - other than manually removing ...
0
votes
0answers
31 views
How to create a dropdown menu on Origami theme
I'm doing a Wordpress website using the Origami theme; in this website i have a navigation bar with the page "Blog" in it. When I hover the cursor of the mouse on the page "Blog" I want to create a ...
0
votes
2answers
219 views
wp_nav_menu() loses 'current-menu-*' classes on single product page within category
I have my menu set up like so:
Shop Online (WPeC 'Products Page' page)
Product Category (WPeC Category)
Product Category (WPeC Category)
Product Sub Category (WPeC Category)
Product Sub Category ...
1
vote
2answers
803 views
Convert WP Menu to a Drop Down for Mobile browser
I'm working on a wp project with responsive theme.
I have single level nav menu at the top of the site, that I want to change to a Select Option tag for mobile browsers (small screens) with options ...
0
votes
2answers
287 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 ...
0
votes
0answers
15 views
Website Menu order change when we look in Iphone Drop Down menu
I am Working on A Site. their is showing some Menus in Header Like A, B, C,D etc.
Their is Also one More menu in header Like X, Y, Z etc.
When I am Looking this Site then Menu are Showing in ...
2
votes
0answers
67 views
Warnings in nav-menu when visiting query pages
Using query-wrangler, similar to drupal's views, I created some query pages.
When I visit these pages, in the top-navigation-menu there is this warning:
Warning: in_array() expects parameter 2 to be ...
0
votes
1answer
53 views
How to get or know the slug of home.php
I found this code from Different Main Navigation per category:
<?php
if(is_category('first-category') || in_category('first-category)) {
wp_nav_menu( array('menu' => 'First Category Nav' )); ...
0
votes
1answer
244 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
30 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
184 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
38 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
36 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
120 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
29 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
33 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
14 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
55 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
42 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
34 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
667 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
227 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
34 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
163 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
779 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
33 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
485 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
26 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
121 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
120 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 ...
