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
0answers
6 views

Editable icons for a submenu

I have a main menu in my website and some of its elements have a submenu formed by different posts inside that category. Now, I have at the moment a harcoded menu with a list and each element of the ...
0
votes
0answers
11 views

Add submenu items programmatically in front-end menu

I have defined a front-end menu main-menu for my theme; this menu has been created in my back-end and filled up with some links. What I need to do is match a top-level menu item that is created in ...
0
votes
1answer
15 views

Extend Menu Walker Output

I've found a custom Menu Walker on the Internet that was perfect for my multilevel menu. It fitted almost like a glove. I've made some tiny improvements but now I need to limit the number of ...
0
votes
1answer
11 views

Buddypress: New Tab and Page (Members Profile)

I want to add some pages/tabs to the user's buddypress profile. I'm using the following function to get at least one page working: function my_bp_nav_adder() { global $bp; ...
0
votes
0answers
16 views

Custom Post Type below second level mainmenu

I want to have the following structure in my website menu: Home | for Beginners | for Experts | Contact | | Reports (CPT) Reports (CPT) Jobs (CPT) Jobs ...
0
votes
0answers
9 views

If header menu doesn't exist, show text block in same place?

I am using this code to show the navbar (menu) if it exists: if ( function_exists ('register_nav_menus') ) { register_nav_menus ( array ( 'primary' => 'Header Navigation' ) ); } It's a 50px ...
0
votes
1answer
15 views

Power Menus plugin destroys menu after adding new item

I use Wp 4.3 with Avada Theme 3.6.8.1. Avada support gives me a hint to solve a problem: I have a big problem with my menu items in Power Menu plugin. A lot are disappeared when updating (add) a menu ...
0
votes
0answers
5 views

How to obtain a list of root-level menu items that have children?

I'm working on an admin panel that offers some minor customization for nav items that have sub-menus - naturally, to that end, it would be really handy to get a list of all root-level menu items that ...
1
vote
0answers
12 views

No indication of menu

I imported a menu from my bootstrap to wordpress theme, at time of just static html, it showed and worked fine but when i used the wp_nav_menu, i don't have a 'text' or any indication to dropdown that ...
0
votes
1answer
15 views

Using wp_list_categories or other function inside a menu walker?

I'm new to messing around with menu walkers in WP, so I might be trying to do something that's not possible, I'm not sure. What I'm trying to do is insert a div containing a list of my product ...
0
votes
1answer
17 views

Walker_Nav_Menu Add Strings and Class Name

How to make this pattern using Walker_Nav_Menu? <ul class="nav navbar-nav"> <li><a href="portfolio.html">Portfolio</a></li> <li class="dropdown"> ...
0
votes
1answer
28 views

add login menu with submenu

I need to add "Login" to main nav-menu. with sub menu "register" (link http://www.vcanade.ca/register/) After user logged in, "Login" has to change to his username with sub menus "profile" (link ...
0
votes
1answer
27 views

How I can add div to menu?

I have div structure <div class = 'main-menu'> <ul class = 'menu'> <li class = 'item1'></li> <li class = 'item2'></li> </ul> </div> But I want ...
0
votes
0answers
10 views

How To Remove black space Drop down menu?

i have created Wordpress Site. My site based watch and Knife shopping . after created drop down menu. knife brands single drop down menu. watch drop down mega menu i had used 5 column menu.after ...
2
votes
1answer
31 views

How do i style the current menu anchor link's parent anchor link?

I have this code <div class="mainmenu"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li> <a ...
0
votes
0answers
11 views

Mobile layout/menu working on all devices, but Windows Phone

I came into a problem, which seems a bit too weird for me now. I have made the web site http://goo.gl/VDtmbk going into a mobile layout on handsets and this is working just fine on Android and iOS. ...
0
votes
0answers
6 views

Wordpress Menu w/ Foundation Reveal - Not Working

I am trying to work a solution for adding Foundation reveal modal to a wordpress menu. It is a footer menu for pulling up a privacy policy in a modal window. The only page that will pull up the ...
0
votes
2answers
10 views

Can you add shortcode as a menu item link?

I want to use the Ninja Forms pop-up modal from a link in my menu. I used this plugin to make shortcodes work in the menu but couldn't get it to work: https://wordpress.org/plugins/shortcode-in-menus/ ...
0
votes
1answer
18 views

Creating custom Menu for custom theme

I want to create a custom menu for my theme. The default menu architecture created by wordpress wp_nav_menu() function is made by <ul> <li> tags. But my custom Menu architecture is: ...
0
votes
1answer
11 views

Genesis - 1 page website - How to display secondary menu Navigation on Blog pages [on hold]

I have a 1 page website with a sticky menu. It scrolls down to different #ids(sections) of that page. My problem is the Blog section. When you click to go to the Blog (any post), the Primary ...
0
votes
0answers
15 views

Get page slug/id from position in menu

I have created a menu area(?) for use in my theme. The pages have been added to the menu in a consistent order via Appearance -> Menus This menu structure is used in multiple deployments, but ...
0
votes
1answer
32 views

Bootstrap dropdownl nav pills not working as wordpress drop down menu

I am using Bootstrap nav pills with drop-down items as WordPress menu, the menu without drop-down is looking good but when I add nested ul as drop-down the menu not working as expected.. HTML ...
0
votes
1answer
22 views

CSS won't style output of wp_nav_menu() correctly

I'm tyring to create a theme with a horizontal menu that is dynamically streched to fill the container element. I use wp_nav_menu() to fetch a menu from the backend and style it via CSS. Here some ...
0
votes
0answers
5 views

Parent menu not active anymore after page url rename

I updated some of my page urls and now the parent menu item is not active any more when I'm on a child page. Why's that? Do I need to refresh something?
0
votes
0answers
32 views

Making hamburger clickable to open a menu [on hold]

How can i make my menu like a hamburger menu,(i think that is what they call it). I have a menu, but there is no option to trigger it to dropdown? <nav class="navbar navbar-default ...
0
votes
0answers
13 views

remove current page from url in main menu

I am trying to develop a theme for my company. The website is a one-page-website although it has 3 seperate pages for disclaimer etc. The problem I'm facing is as follows. The main menu has url's ...
0
votes
0answers
7 views

wp_nav_menu highlight all parent categories

I have been trying to debug this problem and have been hard time finding a solution. My menu has been created with categories.I have few posts assigned multiple categories. When I go to that ...
0
votes
0answers
11 views

Selective menu is possible?

Is it possible to make selective category or page menu? For example category is Electronics and Sub Categories are ipod, ipad, iphone With regular menus you can choose either whole category ...
0
votes
1answer
31 views

Menu disappears with custom post type link

I’m working with Genesis Theme for a while but never got any problems:) This is my first big issue and I dont know how to solve it. I’m making a new website with Custom Post Types and WP All Import ...
0
votes
1answer
24 views

Replace anchor tag with span tag

I have created my custom menu having many items and sub items, the markup is like this <a href="#">Item</a>but for parent element I need to replace anchor tag with the span tag having some ...
0
votes
0answers
20 views

Problem creating menu shortcodes

I'm trying to setup three shortcodes, each to display its own unique menu block. Just two are shown in the code below because I ran into an issue. The problem I am having is that both [footera] and ...
0
votes
0answers
16 views

Menu widget not showing on search.php page via get_header(); function

I have the following code in the header.php file which renders the main menu: <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Main Menu')) : else : ?> ...
0
votes
1answer
32 views

Adding onclick event in custom menus

I have created menu from admin panel, now I have to add onclick event in li tag of each menu item like below: <li><a href="#m-track-suite" onclick="hide('drop')">Track ...
0
votes
0answers
11 views

How to separate website pages from the home page and make custom?

I have installed a theme on my wordpress and published some new links to my navigation. Until now i have my main "home page" customized and i want to costomize the next page "our products". But all my ...
0
votes
1answer
35 views

Problem to asign class to <ul> with wp_nav_menu()

I have some problems to asign a class to tag with wp_nav_menu() instead of asign the class to the tag it creates a and asign the class to that one. My register_nav_menu function: function ...
0
votes
0answers
24 views

How to style wp_nav_menu?

I am trying to style WP menu but i get some issues. This is the orginal menu and not a custom one. (css is already done and working). What I want is this: <div class="collapse ...
0
votes
1answer
19 views

WP mobile nav menu will not work

I'm working on a site which uses WordPress. The wp dropdown menu link not working in mobile view. I'll click it and the nav menu will open then immediately close. I thought it might be a glitch in the ...
0
votes
0answers
25 views

How to create a “menu item” on the theme customize screen?

My question is, how do I create a menu item as seen below but on the theme's menu customize page? "Theme Menu Options" Show's up here, But it does not show up here, Here is the code I used to ...
0
votes
1answer
14 views

has_children in custom nav_walker

I am trying to create custom menu nav walker. I added below code function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) { $id_field = ...
0
votes
1answer
18 views

Menu subitem doesn't keep its position

I try to hide some menu items (from an unique menu) dynamically in functions.php. I have some subdomains. I add CSS classes to menu items and then I hide them according to the current subdomain. Here ...
0
votes
3answers
34 views

Arrow down in menu not displaying

I tried to add arrow down when the menu has a sub-menus. But the down arrow not showing up. Please help me. Here's the link: http://bit.ly/1UH4FlT Currently using this script that I found somewhere. ...
0
votes
1answer
42 views

Adding CSS-class to WordPress Menu in backend

I am wondering if its possible to add CSS-classes to WordPress menu in backend. If building complex menus, the overview gets lost - would like to style it a bit. Normally it would be fine to add the ...
0
votes
0answers
13 views

How to inject HTML to secondary menu on front end?

So I have a main menu and secondary menu on my site. I need to add html for my 'live chat' icon and I want to add this to my secondary menu. However, it is not a basic link and contains JavaScript and ...
0
votes
0answers
24 views

Embed specific parts of external webpage [migrated]

So I am creating a website and want to embed a menu to it. We are currently using Leafly for our menu system and want to use it on the site too. However, there are 300+ products and I do not want to ...
0
votes
0answers
18 views

How to call the post thumbnails in a list of recent post in wp nav menu?

Thanks to Stack I found a code which allow to list recents posts of each of my categories into my wp nav menu. The code looks like this : // Front end only, don't hack on the settings page if ( ...
0
votes
0answers
16 views

How to add number of post to category menu items

I wanted to know how we can add number of posts for dropdown menu items that are categories. For example: Topics Category 1 (5) Category 2 (8) Category 3 (2) More Topics Category 1 (5) ...
1
vote
1answer
12 views

Making sub-menus exclusive [closed]

I don't really know how to explain what I'm looking for so bare with me here. On my site I have a side menu with a bunch of sub categories with a few items in each. I want to know if there's a way to ...
0
votes
0answers
25 views

Admin dashboard and admin top bar not showing

First off I am very new to making WP plugins...as a matter of fact I am working on my first plugin so please excuse me if this may sound so novice. I just can't get this to work. There are some ...
0
votes
0answers
33 views

Adding a menu item for a Custom Post Archive

I've created a Custom Post type (project) and it works perfectly. I have a custom archive page (archive-project.php), and that works great, too, but what's the best way to add a link to that custom ...
1
vote
1answer
52 views

Indirect modification of overloaded property WP_Post::$classes has no effect

I'm working on a child theme and while everything works the Walker_Nav_Menu and Walker classes are causing all the fuss. My parent theme overrides Walker_Nav_Menu as below: if ( ! class_exists( ...