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 (6)

0
votes
1answer
317 views

Wordpress menu: How to make www.link.com/#name never contain current_page_item class?

I am using the wordpress menus on a website, but the problem is that one of the links on that menu is www.homepage.com/#order So, when I am on the homepage, both "home" and "order" links on the menu ...
0
votes
1answer
953 views

Child pages don't become submenus (as in the twenty-ten theme)?

I'm using the theme Starkers, which is based on twentyten. My twentyten theme places child pages below its parent page. But the new theme (based on Starkers) I'm developing doesn't (it just places it ...
0
votes
1answer
107 views

Why do sticky posts show in this menu?

The code below writes out a list of the most recent posts. However, it does not appear to be skipping over sticky posts although I'm using 'post_not_in' => get_option('sticky_posts'). What am I ...
0
votes
1answer
734 views

Making a horizontal flyout menu from WordPress category listing

I'm looking for some options for creating a horizontal flyout/rollover menu from the WordPress categories listing when category items have child nodes. Ideally, all in css, but I can include ...
0
votes
3answers
566 views

Exclude all pages except a few?

I have a bunch of pages and I only want to include 2 or 3 pages on my main menu. How would I do that? Currently my code looks like this: wp_page_menu('include=156,572,542&sort_column=menu_order&...
0
votes
1answer
207 views

sub.menu's not working

working on a wordpress install that is in a subdirectory of another wordpress install (( thecloud99.info has wp in the root )) there is a folder in the root called clients w/ another wordpress install ...
0
votes
2answers
856 views

Add a “has-children” class to body tag?

I need to add a "has-children" class to the tag if the current page's or post's menu item in fact has children. As this "logic" has to work with Pages, Posts, Categories etc. menu items it seems it ...
0
votes
1answer
1k views

How to automatically generate custom menu item from categories?

I would like to display all my category items under a single parent but I failed to do so now I'm creating a new menu link for each category and dragging it into place in the custom menu screen. Is ...
0
votes
1answer
406 views

Placing Admin Post Metaboxes in Tabs

I am looking for what code one would need to add into the functions.php file which would allow specific metaboxes to show up in tags instead of within their individual metaboxes. Can anyone help with ...
0
votes
1answer
2k views

Horizontal drop down category with hover effect working

It will be difficult to explain what I need in words, so please see a live demo of the horizontal navigation menu here, http://cn.wsj.com/gb/index.asp I want to replicate it for wordpress categories. ...
0
votes
2answers
571 views

Archives and Categories in Custom Menu

What is the easiest way to place the Archives and Categories lists within my menu under a parent tab. I'd like both of the lists, such as "Archives" leading to the "archives" sub-menu, and the same ...
0
votes
1answer
116 views

Custom theme - pages in menu

I am glad for the opportunity to be a member of this community. Lately I decide to start learning wordpress and theme building so this is my first post here. I read some tutorials around the net about ...
0
votes
1answer
190 views

Unable to nest categories in menu

I have an issue with the new custom menu in WP3. Suddenly the nesting of categories stopped working and even though it's possible to nest them in the UI, when I press Save, then they all go back flat. ...
0
votes
0answers
6 views

there are two items in two different sub menu when i click on any item from them it redirect to the last item of menu in wp nav menu

I have big menu in this two items which is same and its is ina different sub menu. when i click on any item from them it redirect to the last item of menu. using wp_nav_menu walker... please tell me ...
0
votes
0answers
21 views

Trouble Implementing a Custom WordPress Menu with 4 Levels of Submenus Using `wp_get_nav_menu_items()`

I am creating my first WordPress theme for a client by converting an existing website coded in static HTML, CSS, and JavaScript, using the Underscores theme for the "1000 hour head start". I have run ...
0
votes
0answers
10 views

WP_Nav_Walker extending, need to know count of Sub Menu Items

I have 2 different displays here. 1 for mobile and another for desktop. I need to output different html for both for just 1 menu item (the last 1) in a menu. For example, given the following Menu ...
0
votes
0answers
14 views

Displaying menu outside site with WP API Menu

I'm new to REST API (and JSON in general) and am wondering if there's a way to display a menu from one site (a public facing site) on a private intranet so the client only needs update the menu in one ...
0
votes
0answers
11 views

How to restrict *editing* specific menus to specific roles

I have two roles: Site Publisher and Press Release Publisher. I have two menus: Main Menu and Press Release Menu. Is there a way to make it so that Press Release Publishers can only edit the Press ...
0
votes
0answers
15 views

How to remember category when using history.back?

I've set up a woocommerce store and ran into the following issue: Example: Tree-Menu-Structure: Products main-cat1 sub-cat1 sub-cat2 main-cat2 sub-cat3 Product 1: Permalink: ../main-cat1/...
0
votes
0answers
8 views

How do i add a post to custom menu?

I am trying to add one of my recent posts to one of my custom menus, i legit just did it but now have forgotten please help. (using mac)
0
votes
0answers
16 views

How do I remove copy of primary menu from footer on mobile?

Using wordpress 4.5.3 with the Twenty Sixteen theme. When viewing my site on mobile the "Primary Menu" appears twice. There is special mobile "Menu" button that displays at the top of my site, ...
0
votes
0answers
14 views

adding sub menu items make the parent menu item non clickable

Here is my menu structure link. And this is my website link http://www.clabiane.net/, you can see that menu is not working as it is supposed to work. The main thing here is that the parent menu item (...
0
votes
1answer
18 views

wp_nav_menu custom walker <a> class

So I'm learning about custom walkers and I've run into a few issues. I've got a custom walker set up. One issue I'm having is figuring out how to add a class to the <a> inside of the start_el ...
0
votes
1answer
53 views

How to add search to menu?

How to add search to menu? I want to have: add_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2); function add_search_box_to_menu( $items, $args ) { if( $args->theme_location == '...
0
votes
1answer
14 views

Tag Menu items based on their categories

Suppose I have a site with this menu-structure: food banana carrot apple lettuce where the fruit-items belong to fruit and the vegetables belongs to vegetable. Now ultimately ...
0
votes
1answer
21 views

menu-item class missing on wordpress menu

I have this code in my header.php and its working properly except showing li's without menu-item class, its showing them with page-item instead. this is when i dont have a menu created from admin and ...
0
votes
0answers
12 views

How to move sub menu ul outside of main menu li?

I am struggling to understand how the sub menu of wordpress works. I have set up a menu in the Appearance panel, and I am using bootstrap. When I add a sub menu item, the ul that enclose the sub ...
0
votes
0answers
10 views

Wordpress Menu Integration

I designed a html menu and tried to integration to Wordpress, but couldnt achieve. How i can integrate below html menu for wordpress? <ul class="cf"> <li class="index-collection ...
0
votes
1answer
25 views

Getting URL value from menu item by ID

I want to display a link on the Frontend, but the URL value changes over time. It'd be very easy for me to just change it manually in the Wordpress menu once (it's also displaying there), and then ...
0
votes
0answers
21 views

how to adding css classes when it has 2 level children true wp nav_walker

I need to create a website true bootstrap 2.3.2 ( cause of sub-menus). and it has 3 or 4 level in menus. <div class="nav-collapse collapse"> <ul class="nav go-right"> ...
0
votes
1answer
19 views

Is it possible to seperate wordpress menu by different div?

I'm looking for a way to display a WordPress menu separating its links into different divs like this: <div class="col-2-4"> <p><a href="">link</a></p> <p>&...
0
votes
0answers
10 views

Register a menu onclick function

I am trying to add this in an abc.php file where add_footer_menu() is a onclick function. This is showing me the "Menu added." but menu is actually not generating. <script type="text/javascript"&...
0
votes
3answers
29 views

How to disable permalink of a particular menu item?

I'm using WordPress Twenty Sixteen theme. Now I've a menu item named Product and it has a sub menu. The product page has a permalink as usual, but I want to remove it i.e., when I click on this menu ...
0
votes
0answers
34 views

Custom_Walker_Nav_Menu is repeating my navigation menu in wordpress

I am converting HTML Template to wordpress theme. I almost convert everything expect my navigation menu. I want exact same navigation menu that is in my HTML Template. I searched a lot on how to ...
0
votes
0answers
11 views

What is the best option to change menus automatically using cookies in a Multisite installation?

I am developing a Portal using the Wordpress Multisite option. I would like to create a portal's homepage with options that direct the user to his country's website (Subdirectory). And i would like ...
0
votes
1answer
44 views

Show posts count for Categories and Tags in wp_nav_menu

I'm trying to show WooCommerce Product Categories, Post Categories, Product Tags, Post Tags and Custom Taxonomy posts count in main navigation using wp_nav_menu. My WP_NAV_MENU code &...
0
votes
0answers
29 views

Disable Responsive Mobile Navigation Menu?

With my theme I currently have a 'hamburger menu' that slides in on a desktop screen, but with the responsive design, on a mobile or small screen, there is a dropdown menu instead at the top. (Cherry ...
0
votes
0answers
20 views

customize exisiting wordpress menu item

For a school project I am trying to manipulate the existing primary menu with a plugin. The result should be: if the plugin is activated, it edits the 'Login' button to be conditional: if something ...
0
votes
0answers
23 views

How to list the menu structure and tag with <li>

I have a menu with sub-items currently set as the Primary Header Navigation. -home (page) -products (category) -stick (post) -stone (post) -about (page) How can I print loop this menu inside ...
0
votes
1answer
32 views

How to add odd and even classes to all nav links through walker?

I kept finding posts that explain how to add even and odd classes to sub-menu items, but can't seem to find how to add it to the main menu items that do not have sub menus. I've already checked out ...
0
votes
0answers
27 views

add_query_vars_filter How to make my menu remember

I have a menu that can "open up" or "close" via JavaScript . This works. However when I click one of the menu entries the next page loads and the menu does not "remember" to be in the "open up" ...
0
votes
0answers
14 views

There is any hook that fires after/before updating menus locations in “Manage Locations” tab?

I'm looking for hook that fires before or after updating menus location. I want to fire function after saving on "Manage Locations" tab in Appearance > Menus. I know there is wp_update_nav_menu ...
0
votes
0answers
19 views

Fallback dosen't work when not using 'menu' attribute

I want my fallback function to be called when the menu doesn't contains any items. And if I specify the menu name, it works. But not when as I below comment away that attribute. Now nothing happens. ...
0
votes
1answer
15 views

Output sort number in wp menu list item?

I want to output the sort number of the list item in it, in the wp menu. No, not by using ordered list <ol>. I have tried search for answers about this by searching on wp forum an reading the ...
0
votes
1answer
27 views

Add newsletter signup element to navigation bar

I've been researching here and on other dev/WP sites to find the best solution for adding what is effectively a custom element to the navigation menu, and it seems like there are many approaches. ...
0
votes
0answers
22 views

How to add specific menu items to specific sub-level <td> with walker?

I want create a megamenu with four columns on 2nd level submenu (inside div and table). When I add class col1 to menu items, display them inside <td id="c1"> and when I add class col2 to menu ...
0
votes
0answers
13 views

Why does my menu disappear if I set it to something other than '--Select--'?

Trying to style it - so that it has a drop-down toggle button. So I wanted to change the files. But the other menus - that would have child elements - don't play nice with the customizer. I'll edit ...
0
votes
0answers
27 views

Is there a global page/post/product/anything ID?

I am working on compression plugin and need to save compressed styles in to a file. Compression process is done but I need a unique page ID for any WP page in order to save and name the compressed ...
0
votes
1answer
21 views

How to get submenu of admin menu?

I user global $menu in one of my plugins to get the list of menu items. But i would like to get the list of of items from a submenu for example from Posts i would like to get Add new, All, Edit ...
0
votes
2answers
37 views

Admin page and admin menu. Permissions plugin

I was googlin really hard but couldn't find any answers. What i'm trying to do is write a simple permission admin page plugin. So far what i did a page with every role where i can check a certain ...