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

wp nav menu set limit only on top levels

I wonder if anybody knows this! How to set limit to toplevel menu items in wp nav menu. Example i have this menu in my admin dashboard. IMAGE PREVIEW I would like to count ONLY top level items and ...
0
votes
1answer
56 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
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
1answer
34 views

Function Reference for custom link in Admin Menu Management Page

What is the function reference for the text within the URL field in the Admin Menu page? I have a PHP function that is utilizing the_content function reference to look for specific file paths and ...
0
votes
0answers
60 views

Menu item disappears when logged out [closed]

I have a very peculiar issue with Woocommerce products category menu item. The problem is that when I log out the menu item disappears, I can still access the page via categories widget in the ...
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
1answer
22 views

Is there an action for save_menu and/or update_menu?

I want to "save" my menus into transients. I want to update those when there's been any changes to the menus via the admin custom menus. I've looked for an action but can't see to find anything. ...
0
votes
1answer
81 views

Display all submenus

For a custom jquery menu I'd like to show all submenus and hide / show each on demand. However my problem is to show all submenus in the first place. As of now I am managing the first level through ...
0
votes
0answers
41 views

“Add to Menu” Button for Custom Menus Not Working [closed]

I am having an annoying problem. When I try to add a new page to a custom menu on my site, the little indicator graphic just keeps spinning and the process never completes. It seems from this search ...
0
votes
1answer
39 views

Showing Custom Menus in the sidebar

I want to get custom menu in my top level page and the sub pages which are not child of the top level pages. I got many examples using wp_list_pages but it requires the sub pages should be the child ...
0
votes
1answer
36 views

wp_nav_menu - Collapse with PHP

How can wp_nav_menu be used to collapse and expand elements with PHP? Some walker function? Plugin maybe? What it looks like in wp-admin menus About Customers Cases Contact Contact us ...
0
votes
1answer
74 views

replace current_page_item class in menu

I want to replace below class with active class in menu: .current-menu-item and .current_page_item I am already using a menu callback which add a class dropdown in child menu: class ...
0
votes
0answers
28 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
1answer
85 views

How do I hide one menu item link for logged in and logged out users

Using bbPress and s2Member, I need to hide the registration link in the menu for logged in users and the members directory link for non logged in users.
0
votes
0answers
10 views

How to remove limit on the wordpress menù? [duplicate]

On the Www.wrestlingitalia.it website is the latest version of WordPress, and I have a problem: In the menu above this there are limits: if I insert other items, others are hidden. I would like to ...
0
votes
2answers
74 views

How can I disable sorting/dragging of a menu item in the custom menu admin?

I think my problem is partially a javascript problem, but if someone knows of a better way to do this I'd love to hear it. Basically the goal is to "save the client from themselves" by not allowing ...
0
votes
1answer
52 views

Where would I find Custom menu attributes in the database?

In what table would I find the title of a custom menu in MySQL for Wordpress 3.5.x?
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
1answer
108 views

How to register custom menu widget

I'm trying to register a custom menu widget programmatically with wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm ...
0
votes
1answer
72 views

Costum walker with sub menu item count

I have a menu like: -Item1 --Sub1 --Sub2 --Sub3 --Sub4 --Sub5 --Sub6 -Item2 -Item3 and want to do some costum stuff after x subitems, so I have to determine when x is reached. I tried to define a ...
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
1answer
42 views

Should the caching of WordPress menus be specific to each page?

Introduction In optimizing large WordPress Websites for performance I always look at caching certain parts of the Website, mostly (of course) those that require a lot of Queries/calculation. For the ...
0
votes
1answer
85 views

Container class not appearing on navigation menu

I want to render a menu with a container like this: <nav class="nav"> However, the container is just rendering with the default class name applied which I don't want. <nav ...
0
votes
1answer
86 views

Remove first separator in wp_nav_menu

I am using following code to get my menu. My problem is Span is not getting added and I want to remove the first separator. <div id="sub_nav"> <?php $menuParameters = array( 'container' ...
0
votes
2answers
44 views

WP Nav Menu: String replacements

I have a short function to clean up the WP Nav Menu. add_filter('nav_menu_css_class','strip_classes'); function strip_classes($a){ return (in_array('menu-item-71',$a))? array('contact') : ...
0
votes
1answer
230 views

Custom Nav Walker menu - Display children count

I have a custom walker menu.( See the code below) I would like to have my nav menu like this ---------------------------------- Home | link1 | link2 | link3 (5) ---------------------------------- ...
0
votes
1answer
101 views

Nav Menu and display post count

Iam looking for a solution that the number of child post displayed, like so: Parent (14) - Child - Child Parent (2) - Child I have played with the custom walker and tried the function with ...
0
votes
1answer
555 views

Tab menus with horizontal and vertical tabs [closed]

Has anybody seen more examples of tab menus like the one on this page with horizontal and vertical tabs? http://www.hmag.com I need to create a page with tabs where the tabs at the top are the ...
0
votes
1answer
116 views

How to change the menu color

I need to change the menu color of the wordpress 2011 theme to transparent. this is the header <nav id="access" role="navigation"> <h3 class="assistive-text"><?php _e( ...
0
votes
1answer
41 views

Can't remove menu items added by plugin

I am trying to remove menu items from the backend but for some reason I can't remove specific menu items added by plugins. For example, I can use this line to remove the plugins page and it works just ...
0
votes
1answer
99 views

who to limit number of li in wp_nav_menu

need help regarding wordpress navigation i am using if ( has_nav_menu( 'main_nav' ) ) { wp_nav_menu( array('menu' => 'guest menu' )); } from back end if i keep the menu empty(do not any ...
0
votes
1answer
259 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 ...
0
votes
1answer
221 views

How to change theme header to support multiple nav menus?

I'll try to be brief.... I have a theme that only supports one navigation menu. At this point I'd like to add 2 or 3 more menus. I have successfully registered my menus in functions.php with ...
0
votes
2answers
35 views

How to insert link to the default post archive into a menu

I can add categories, I can even add a custom post type archive, but I can't add the original posts archive. It's not among the page list. I worked around this by creating a page, creating a ...
0
votes
0answers
19 views

How do I add the menu item description to the menu? [duplicate]

Possible Duplicate: Menu items description? Custom Walker for wp_nav_menu() I know this question has been asked before, but I haven't quite found the answer I'm looking for. This handy ...
0
votes
2answers
21 views

Styling Active Links Within Wordpress

I wish to style the active link (ie. when home page is selected that the home page link be a different colour) .current-menu-item a { color: #36c; } My test site is : www.milknhny.co.uk/ShopTest I ...
0
votes
2answers
79 views

How to add a menu that belongs to parent blog to all child-blogs?

I want to add a menu that belongs to parent multisite blog to all child-blogs. I need the menu displayed in all child-blogs, I mean the same menu on all multisites blogs. How I can do that?
0
votes
1answer
130 views

Date range filter for manage posts list on edit.php

I need to add some custom submenu links to the Posts menu in WordPress admin so content managers can click on a link and get a list of posts from today, yesterday or this month. The default date ...
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' )); ?> ...
0
votes
1answer
86 views

How to use wp_list_pages on a grandparent page

I am using wp_list_pages to show the page structure on a website. For instance, if I use this code, it will show me the complete child / grandparent heirarchy of the current page the user is on: ...
0
votes
1answer
40 views

Custom Links in Walker Class

I am creating a custom walker class. I need to identify the custom links that will be added to the menu from Appearace > Menu > Custom Link so that they will have a different format to the page/post ...
0
votes
1answer
242 views

Get menu item slug

I use custom menus and I’d like to get the menu item slugs. Is that possible? // Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_nav_menu) // This code based on ...
0
votes
1answer
159 views

Controlling sub-menu within sub-menu

I have a menu setup at the moment for a site I'm building that I'd like to change a little the way it pops up and doesn't popup :P At the moment, I hover over my main menu items if there are sub ...
0
votes
1answer
308 views

How to use wp_category_checklist()?

I've recently discovered that we can insert a dropdown list of categories like this: <?php define( 'WP_USE_THEMES', false ); require( './wp-load.php' ); ?> <?php ...
0
votes
1answer
305 views

Adding attributes to <a> link in wp_nav_menu using custom Walker function

I am trying to generate a menu using wp_nav_menu. My expected output is this: <!-- Main Menu --> <div class="navbar navbar-blue navbar-fixed-top" style="margin-top:74px"> ...
0
votes
1answer
44 views

WP MU: Using pages from main site in other sites’ menus

Is it possible to use pages created on the main site in other sites’ menus? For example it would be excellent if all pages from the main page not only appear in the Custom menu section of the main ...

1 14 15 16 17 18 20