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.
7
votes
1answer
695 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 ...
4
votes
1answer
538 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). I want that ...
3
votes
1answer
67 views
Customize the menu by adding items
I need to display a simple menu like this:
<nav class="main">
<a href="/" class="home">
<span class="logo"></span>
<span class="company-name">My ...
3
votes
1answer
230 views
Extend walker class with custom post types
I'm using the walker class below, but I can't make it work with custom posts.
class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu {
function end_el(&$output, $item, $depth) {
...
2
votes
1answer
775 views
Vertical Sidebar Menu Parent and Child not displaying correctly
I am developing a WordPress site and trying to display my menu correctly. How can I display all Parent items but only show the Child items when it's Parent has been selected. I hope that makes sense. ...
2
votes
1answer
165 views
Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
Essentially I'm trying to add multiple sub nav menus and I'm pretty close but I just can't seem to find the right tack to solve my problem ...
I'm using a variation of a Stu Nichols CSS Menu ...
...
2
votes
1answer
2k views
How show sub menu only using wp_nav_menu()
I am using this code to show the custom menu subpages if you are on the parent page. But what this code also shows is a parent page on a page that has no sub menu, which I would like hidden. Basically ...
1
vote
1answer
162 views
Primary navigation menu & footer not showing in category / tag page
I tried to find a solution for primary navigation not showing in some pages, ie. archive.php.
I found one from here but it's still giving me notices.
I'm using Reverie Theme in WordPress ...
1
vote
1answer
47 views
list category posts under its item in menu
When adding category to Menu, I need it to list all the item that belong to that category in separate UL automatically. like this
http://i.stack.imgur.com/ulOOS.jpg
Of course I can do that manually, ...
1
vote
1answer
800 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 ...
1
vote
1answer
235 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" ...
1
vote
1answer
64 views
Main menu highlighting on subpage which is not in submenu but in hierarchy
I have my menu made of images. Therefore I use divs and with .current-menu-item I use CSS to change the image. This works if I'm directly on this main page. If I'm on a subpage I cannot use this trick ...
1
vote
1answer
412 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
1answer
81 views
pull non-wp site into content area of wordpress -or- pull wp header into non wp site?
I am building a site which has a ecommerce nature that is not able to be tied directly into wordpress. What my goal is to have a constant header that is generated by my wordpress header on all pages ...
1
vote
1answer
137 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 ...
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 ...
1
vote
1answer
42 views
cross-site custom menu
i have a multisite whice i want to separate because its unneccery as two of my sites are on the same DATABASE and all i need is actually the dynamic custom menus which i have built in the main site(to ...
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
...
1
vote
1answer
112 views
API for wp menu hacks
Question changed due to new developments!
I was loooking for a way to hack the menu items in the custom menu page to add a "hide" checkbox and other options. The only way I found is to override the ...
1
vote
1answer
91 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 ...
1
vote
1answer
207 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 ...
1
vote
1answer
586 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
17 views
How do I move menu to the bottom in Custom Community theme?
I am new to Wordpress and created the following website: www.sugarhausbyamy.com
I would like to move my menu to the bottom of the screen. Is there an easy way to do this? I would also like to ...
0
votes
1answer
23 views
Custom Menu based off custom header
I'm using my Child of TwentyTwelve
Just for your knowledge, I have two sections to my one WordPress site... one is called pain, the other called anesthesia (It's a medical site for the curious).
I ...
0
votes
1answer
27 views
Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
I am working with custom post types and I had trouble with the nav menu not getting the .current-menu-item on my custom post archive page menu item. In fact, when I was on that page or any of the ...
0
votes
1answer
22 views
Hide pages depending on role
I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel.
I looked in the edit.php file and noticed:
} elseif ( 'page' == $post_type ) {
...
0
votes
1answer
30 views
How to retrieve depth of menu into template
In wp_nav_menu i use for the menu, with custom walker, i can get the $depth parameter in the start_el function
function start_el(&$output, $item, $depth, $args)
but, outside this ...
0
votes
1answer
12 views
wp_nav_menu: indicate by id page grandparents
I have an web site with top-header menu and sidebar menu.
Situation, like:
header menu: books music movies (if we are now under music)
sidemenu: blues jazz dance (if we are now under "Jazz")
...
0
votes
1answer
24 views
How Can I add a menu to the theme from withen the function.php file
I have the following code I'm trying to automatically add a menu to a theme via overriding a function. So I won't have to edit the theme file
However the menu is being outputted at the top of the ...
0
votes
0answers
14 views
How to access menu items object from within plugin?
how to access menu items object from within plugin? When I try to use wp_get_nav_menu_items() I get : Fatal error: Call to a member function get_page_permastruct()
0
votes
0answers
74 views
How to add vertical navigation from Foundation 3 to a Foundation 4 based theme?
I am trying to add the vertical nav bar from Foundation 3 to a theme using Foundation 4. As an experiment I created a plain html file with Foundation 4's js and css and added the js and css from ...
0
votes
0answers
30 views
How to link to a custom .php file from wp_create_nav_menu?
I'm trying to create a custom nav menu for my theme that already has menu items included in it, such as a "Members page" and a "News page". I've already created the .php files, but I can't find a way ...
0
votes
0answers
17 views
Call back saved information in the admin menu and output in header - WordPress
I am trying to call the saved option from admin menu and display it in the header.
here is my code. but this code at lines
function headerout() {
echo "stuff{$opt_val}";
}
add_action('wp_head', ...
0
votes
0answers
26 views
How to add drop down sub menu from database fields in the particular menu slug
I am creating a menu(not in admin panel) in wordpress, and I want to add drop down menu from my database table fields in a particular menu slug?
How can I achieve that, using code?
I found the ...
0
votes
0answers
117 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 ...
0
votes
0answers
28 views
post count on toggel meny - product category
I want to add post count on product catalog at widget toggel menu. so product catalog menu will have post count examp computers (2), PC (15) etc.
below is the php lines
<?php
/**
* Your ...
0
votes
0answers
20 views
Adding new Settings Field to Appearence -> Menus using the Settigns API
I would like to add a 3rd text field to the admin page for custom menus called "Link Description" beneath the Navigation Label and Title Attribute Fields.
I know that I need to use the ...
0
votes
0answers
26 views
Theme menu items are added by latest items first
I am using a theme that is adding menu items and ignores the Wordpress menu editor. The way it adds menu's is like this:
It adds all pages to the menu, and in the order you add the page - So if you ...
0
votes
0answers
29 views
Looking for a way to give deeper links on the menus
Is there anyway to make links as sections?
for example:
www.mywp.com/en/company/about
www.mywp.com/en/company/contact
www.mywp.com/en/company/jobs
www.mywp.com/en/product/one
...
0
votes
0answers
66 views
Add elements to submenu using wp_nav_menu
I got to know how to add a menu and then create hierarchy till 2 levels. Here is my code:
//give your menu a name
$name = 'sets';
//create the menu
$menu_id = wp_create_nav_menu($name);
//then get ...
0
votes
0answers
22 views
Add a class ONLY to link tags of top level menu elements
Is there a way that I can add a custom class to the <a> within my custom menu but ONLY for top level links?
So, for example, this would be my basic menu markup;
<ul class="menu">
...
0
votes
0answers
27 views
restrict admin from viewing some pages
i have basically created a membership website where if A logs in on the top bar it says A'S ACCOUNT (which only he can see) then when B logs in on the top bar it says B'S ACCOUNT (which only she can ...
0
votes
0answers
48 views
Automatically Insert Custom Post type to menu
I use the Custom Post Types plugin to add galleries to my website. I would like the galleries to automatically be inserted into my menu, So the menu will highlight the correct link when a gallery ...
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
0answers
77 views
wp_list_pages with parent and children
I am making a wordpress theme for a company and I need to show the parent items with wp_list_pages(). The child items should only be shown if I am inside this parent.
Example:
Only show
menu a
...
0
votes
0answers
28 views
How can I make a custom menu with images for each link?
I would like to have list of thumbnail images (which can link to pages) permanently down the left hand side of this site.
The idea will be to have a set of photos of the people who work on the ...
0
votes
0answers
38 views
Editing menu bar by repositioning search bar
I am using a free WordPress theme named Pitch. I want to edit the main nav menu. I want to put the search bar into the menu bar. I did it by editing CSS, changing the top-margin. But when did this, ...
0
votes
0answers
124 views
wp_nav_menu showing taxonomies in a submenu with two columns
I have this wp_nav_menu:
<?php wp_nav_menu( array(
'theme_location' => 'mainnavleft',
'container' => '',
'items_wrap' => '%3$s',
'fallback_cb' => 'false'
)); ?>
...
-1
votes
0answers
33 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
34 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 ...


