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

0
votes
0answers
11 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
26 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
22 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
9 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
25 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
9 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
5 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
8 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
17 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
12 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
19 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
19 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
4 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
25 views

Making hamburger clickable to open a menu

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
12 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
5 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
30 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 ...
-1
votes
0answers
21 views

How do I get my parent page to include posts? [closed]

I'm using Wordpress.com, the menu appears to look fine but every time I click on a parent tab it doesn't include any articles that I've posted. This is my website : http://jumpthemagazine.com/ ...
0
votes
0answers
14 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
30 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
34 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 ...
-1
votes
1answer
11 views

How can I edit the width of my menu? [closed]

How can I make the menu items stay on one line in my menu bar? I believe that I can edit the CSS somehow however I am confused as to where this is available for editing. Here's a link to my website ...
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
18 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
23 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
12 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
17 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
39 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
15 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
20 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
32 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
51 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( ...
0
votes
1answer
16 views

Adding buddypress profile menu items in wordpress primary menu

Is it possible to add buddypress profile menu in primary menu of the wordpress them. If is possible please guide me how can I do this. I also want to remove counts in primary menu only. Thanks
0
votes
1answer
10 views

nav tag wrapping around dropdown

I am trying to display my menu, while menu is displaying perectly, it does have open within nav, which hide everything behind it, as navbar-fixed has come style. what should i be doing to fix the ...
0
votes
0answers
18 views

“Project” post type to “Page”

I need the user to go to a Page when he clicks on the menu that is managed in "Projects" section (backend). Situation I have a kind of a menu managed in "Projects" section (backend), made with ...
1
vote
1answer
32 views

The best way to customize “nav-menu-template.php” to add <input> if the 'link_before' is “checkbox”

I would like to add a 'link_before' control for a wp_nav_menu(), like that: if ( strpos( $args->link_before, 'checkbox' ) == true ) { $args->link_before = '<input id="toggle' . ...
0
votes
1answer
41 views

Get custom category image from menu

I've got myself into a little pickle, and while I'm so close, my understanding of PHP is letting me down. I want to display the image associated with each category in the menu - working from the ...
0
votes
0answers
7 views

How to set page to be a parent of a custom post?

This question is regarding the navigation menu (wp_nav_menu). The nav menu has two classes that depicts the current page: .current_page_parent, .current_page_item. This works great for both Blog and ...
1
vote
2answers
59 views

Hide a menu-item and its submenus and display a 'Log in' link if the user is logged out

I need, somehow, to enable that when you logout, that 'My Account' item is getting hidden from the navbar, and instead it displays a 'Log in' link. The item 'My Account' also have submenus with the ...
2
votes
1answer
16 views

Does the menu item ID ever change?

Does the ID Wordpress gives each menu item ever change? id="menu-item-1234" I've linked to it within my CSS, however this will be no use if this ID may change, for instance when the page is ...