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)

1
vote
0answers
15 views

Menus don't work after 4.4

After I updated to Wordpress 4.4, I noticed that the menu links on the front page of my website don’t work anymore. The website is: http://rantaboutfilm.com/ the theme is: swagger When the user ...
1
vote
0answers
18 views

Sub menu indicator that links to sub menu

I am trying to create a custom mobile menu for my wordpress site. I have looked around the net for an answer and found similar things or different ways that I can accomplish this but not in the way ...
1
vote
0answers
39 views

Custom navigation structure with walker class

I'm trying to make the navigation with different structures using walker class but I got stuck. Here's the code of what should the html output <nav class="main-nav"> <div ...
1
vote
1answer
231 views

add span class and i tag inside wp_nav_menu link anchor tag

I found examples adding a class to top level items, so we can display an arrow in menu items with sub-items, but is seems terrible to cope with the already built in WordPress classes, can't display ...
1
vote
0answers
57 views

Uber menu, manual integration, disable Mobile

i use uber menu plugin for my theme. my theme (pointfinder) require manual integration code.It works perfectly, but I would turn it off completely on the mobile I used the following form (if else)to ...
1
vote
1answer
14 views

Different fields available for different sites when when customising Menu's

I have 2x websites, both running identical versions of the same theme, yet when I try to customise the menu's I'm met with different field options. On Site A I am able to add settings to fields such ...
1
vote
1answer
60 views

get_query_var('post_type') not returning in a filter

Trying to highlight custom taxonomy pages in the main nav, so I am trying to get the post_type of the current rendered page (to compare to the menu item): add_filter('nav_menu_css_class', ...
1
vote
1answer
14 views

Hide sub menus sometimes

I have the following css: nav ul ul { display: none; } It hides sub-menus for me. It works too well. I'd like the sub-menu to be visible iff the parent menu item is the parent of the selected ...
1
vote
1answer
20 views

category permalinks

i am quite confused about the permalink stuff. So here is whats up... I have a page called tours as well as custom post type called mc_tours. At first i just changed page permalink to ...
1
vote
0answers
18 views

Creating a menu containing categories and authors

I'm looking for a way to make a menu that contains all categories and when an author has 1 or more post in said category they appear in the dropdown for that category, the links could look like this: ...
2
votes
2answers
2k views

Assign Menus to Theme Locations with theme activation

A site is using "child1" named child theme. When this site switches to other child theme named "child2", their widgets are moving too but theme locations are not moving. How can i auto assign menus to ...
1
vote
0answers
23 views

Responsive menu gone on wordpress Responsive theme

The responsive menu on my website is gone (homepage only). I am not sure what caused that and don't know how to fix it. Can you please help? I will really appreciate it. The website is ...
1
vote
1answer
27 views

I am facing a problem with the navigation menu of my website

The link to my website is http://ashevilleandbeyond.com/ and when you load it on your browser, for a few initial loading seconds, you will notice that the menu items are visible at the top left side ...
1
vote
0answers
47 views

Create menu / submenu from category subcategory and posts

I have a custom menu made up of pages and categories and I am trying to output the category and subcategories as well as the last 4 posts from each category/ subcategory. In trying to use a walker ...
0
votes
0answers
50 views

Add each Wordpress menu item into individual Bootstrap column

So basically what I'm trying to do is create a custom menu that has icons the user can add/edit. Each menu item has two pieces to it, the top has an icon and then the base has the name of the ...
1
vote
0answers
72 views

Custom Loop through category menu to include sub categories

In my custom wordpress theme I currently have the below loop to the main categories <?php $menu = wp_get_nav_menu_object('navigation'); $items = wp_get_nav_menu_items($menu->term_id); ...
1
vote
0answers
22 views

Categories as main menu items and subcategories as nested lists

I am new to WordPress and am trying to make my website. Would it be possible to list categories and subcategories as a nested list with links in the main navigation menu. What am i trying to achieve ...
1
vote
0answers
14 views

Navigation doesn't render when wp is hosted

I have created a theme on my local host and it works fine. I am using the walker function in order to get the bootstrap navigation. However when I upload the site on godaddy the navigation doesn't ...
0
votes
0answers
58 views

Issues adding icon(s) to menu items

I am trying to add icons as additional items in the menu. So for example, it should look output as follows: Home | About | Blog | Contact | ICON | ICON | ICON I installed the Menu Icons plugin ...
0
votes
1answer
16 views

Calling wordpress menu outside ignores custom menu item

I have a wordpress website and I want to use wordpress menu outside the installation. So I created a file called nav.php and put the following code include( '../wp-load.php' ); wp_nav_menu( ...
1
vote
0answers
36 views

CSS_Menu_Walker not showing on mobile view?

I found this example on perishable press. My menu works fine and all the submenu items display properly. For some reason, when scaled below 769px, it disappears. I figure it's CSS, but I can't make ...
0
votes
0answers
277 views

Best practice for blank top level menu item?

I create a LOT of WP sites and therefore tons of menus. A lot of times there is no sensible page for a top level menu item. For instance I was creating a site with internal learning. The top level ...
0
votes
1answer
31 views

Show post titles within Wordpress bootstrap Dropdown menu

I created custom bootstrap navwalker class for my wordpress theme all things work correctly i has this code below within function start_el(){} When i put <h2>Hellow World!</h2> within ...
0
votes
1answer
44 views

`start_el` depth argument in custom nav walker always evaluates to zero

I have a custom nav walker I'm trying to use to output only the first level of a menu: <?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'depth' => 1, 'walker' ...
0
votes
0answers
35 views

Custom Post Type category nav isn't highlighting active category

I used Types from wp-types to create my custom post type. I have category archive pages and individual post pages set up. The category navigation is highlighting the active category like it's supposed ...
1
vote
1answer
59 views

Programmatically set current-menu-item using wp_nav_menu

I'm calling wp_nav_menu programmatically on a class and I'd like to be able to set the field that will be shown as the current-menu-item but I don't see an argument for that. It seems like I may be ...
0
votes
0answers
8 views

Why does <li class=“default-menu”> appear? I'm trying to remove a generic link called navigation on my main menu

I really didn't know where else to turn to. It really seems like major overkill to have to manually set class=default-menu to display:none and twice as much ditto to build a filter on functions.php ...
0
votes
2answers
344 views

wp_nav_menu add class to child item with sub child

I need your help, am trying to add class dropdown-submenu to a <li> element which has children. Not sure if I was clear enough, so here is an example: |-Home (Parent Item) |-Services ...
1
vote
1answer
49 views

Get number of root elements in walker class

I extended Walker_Nav_Menu class as below class YPE_custom_navwalker extends Walker_Nav_Menu{} I want use the get_number_of_root_elements( $elements ) function that place in to Walker class within ...
0
votes
1answer
51 views

Adding custom fields to Wordpress nav menus

I'm added new custom checkbox field to the nav menu items. the check box added without any problem when i check it it's work but when i want uncheck it not work and stay in checked state. the code ...
-1
votes
2answers
118 views

Hamburger Navigation Menu

I have a Wordpress menu that I am using as a Hamburger menu for smaller mobile devices. Since there really isn't a "hover" event for touch devices, I have changed the main menu items to show their ...
0
votes
0answers
26 views

Issue in adapted Twentyfourteen-child Functions.js (add toggles)

I am trying to add one (and maybe more) toggle buttons and menus on a Twentyfourteen-child theme. As the behaviour of search toggle is defined in twentyfourteen/js/functions.js I copied and adapted ...
1
vote
1answer
43 views

Where am I doing wrong in my theme menu?

Every thing works fine out of WordPress but the theme's dropdown menu doesn't work. Here is my functions.php code : register_nav_menus(array( 'primary' => esc_html__('Primary', 'codeha'), ...
0
votes
1answer
42 views

Fragment URL in navigation item without a custom link

Some of the pages in my navigation are fragmented urls that shouldn't actually go anywhere. In other words, I have a couple parent nav items like <a href="#">Services</a> that serve only ...
0
votes
0answers
60 views

Admin Custom Menu Editor Disappeared

The custom menu editor on my site has disappeared. It used to be under the Appearance menu. Any idea where to find it, or how to fix this problem?I have registered and init the menu properly in theme ...
0
votes
0answers
180 views

Extending Nav walker with Yamm menu

Here is my navigation code where only service tab should have col wise layout of menu. I am using bootstrap nav walker menu which is working fine for other nav except services menu which should have ...
1
vote
1answer
21 views

Blog Posts in Custom Menu

I have a custom menu but would like to put specific posts on each one. for example: my menu consists of: cooking, beauty and style. How can i put all cooking posts on the cooking tab, and all beauty ...
1
vote
1answer
26 views

Custom menu output

If the menu is with Pages then how can I display the menu item links like this: http://example.com/#/page/id I want to use the menu with Angular routes. I believe this can be done with a custom ...
3
votes
1answer
47 views

Programmatically adding menu items function replicates in multiple menus

I have the following code: add_filter( 'wp_nav_menu_objects', 'dynamically_add_shop_categories_to_submenu' ); function dynamically_add_shop_categories_to_submenu( $items ) { ...
3
votes
1answer
121 views

How to call “page specific menu items” in template

I have installed a plugin for giving custom command for menu to display on each Page Specific Menu Items, now I need to display these menus on theme header. Can I use anything like wp_nav_menu(). ...
1
vote
4answers
7k views

How to create a category menu?

I am new in WordPress world (before now I always used Joomla and some other old CMS) Now I am testing WordPress and I have some doubts about how create a navigation menu in my WP Site. This is my ...
0
votes
1answer
46 views

How to check custom fields from functions.php

I'm trying to hide certain menu items based on the custom fields on a page. I could use CSS or a script to hide the items, that's not the problem. What I don't know is how I can check the custom ...
1
vote
2answers
356 views

wp_nav_menu including Skype URL

If I try to add a skype username as the URL for a wp_nav_menu item, the item is saved but the URL is not. The username URL is in the following format: skype:example?call Any thoughts on add skype: ...
0
votes
1answer
534 views

How to construct a custom html for submenus

How to write a walker class for constructing a new submenus. for my wordpress theme the submenu is looking like this: <li class="drop"> <a ...
5
votes
2answers
5k views

WordPress Settings API, Implementing Tabs On Custom Menu Page

I've been following the WordPress Settings API tutorial series of this guy: http://wp.tutsplus.com/tutorials/theme-development/the-complete-guide-to-the-wordpress-settings-api-part-1/ So far, I've ...
0
votes
2answers
1k views

How to remove UL class in wp_nav_menu?

How to remove ul-class in wp_nav_menu? 'items_wrap' => '%3$s', 'container' => false Adding above does not work.
5
votes
2answers
220 views

Add custom html to last sub-menu item

I'm adding a custom menu to my wordpress theme. I need to add custom html to the final submenu item - before the primary sub-menu closes </ul> I have registered my new menu //functions.php ...
0
votes
0answers
110 views

wp-nav menu with custom walker , how to remove a tag if it has any submenu

i want to do wp_nav_menu custom walker ? can i convert wordpress menu this html if it has any submenu remove a tag from list item for example below galleries item I tried to leave empty link . but ...
1
vote
0answers
9 views

Navigation label for page in custom theme

In Appearance -> Menus, one can change a page´s navigation label. The label is what shows in the menus. However, i´m using a theme with a custom menu, always showing the full page´s title in the menu. ...
0
votes
0answers
16 views

How to know which menu trigger a link?

I have two menus locations in my WordPress self hosted Blog. Both menu locations (Header, Footer) have the same menu items Contact Us. Now, when an user click this link. It will take him to the ...