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
1answer
9 views

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

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
8 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
12 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
0answers
12 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
16 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
10 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
28 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
20 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
23 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
32 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
31 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
0answers
32 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
15 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
19 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
28 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
50 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
13 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
39 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
57 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 ...
-1
votes
1answer
34 views

removing extra mobile menu from the header

I have installed burger theme and modified some template files to my needs. when I came to header, I decided to go with a simple bootstrap navigation bar, that doesn't require an extra menu. I took an ...
0
votes
1answer
20 views

How to have multiple Wordpress Menus

If possible, could someone answer this in very easy steps as I am new to coding. I was wandering if there is an easy method for having multiple menus in any theme; I have been searching the internet ...
0
votes
1answer
30 views

Displaying Logged-In User Name in Wordpress Menu

I'm using Wordpress with UserPro, and want my menu to display the logged-in user's first name, linked to the user profile page. The problem is that in my menu structure, the "Profile" menu option is ...
0
votes
0answers
18 views

Getting an array of parent menu links and titles and all children links and titles

I am developing a theme with wordpress and trying to develop a sidebar that changes based on the users menu selection. So if a user clicks on the 'Fruits' link on the menu and it has children menu ...
0
votes
3answers
16 views

Adding a menu item to the main menu

Does anyone know how to ad an item to the menu on the right side of the page. Please see the photo attached. I basically want to add "ISSUES" as a menu item on the left side of page. Just like ARTIST ...
0
votes
0answers
16 views

Custom link menu including Javascript AND “if session”

I have menu links (such as this one below) which I need to implement in my WordPress menu and don't know how : <a href="javascript:void(0)" ...
0
votes
0answers
28 views

wp_is_mobile() inside js

I've stumbled upon a issue that i can't fix. I've implemented a autocollapse menu ..all works fine UNTILL i go to mobile version where the wp core's menu bugs out with my menu js code. Basicly i ...
0
votes
0answers
23 views

Need help to build a menu with WP_NAV_MENU function

I have a markup where using table tag for menu creation. This is quite simple but noticed when multiple submenu exist then structure is changed. In this case i don't get any appropriate way to build ...
0
votes
1answer
25 views

Different colors for navigation bar

I am facing this particular problem: How can I change the color of the navigation bar once the user clicks to one particular menu?, i.e., (I make click on the menu "Contact" and the navigation bar ...