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
28 views

Get parent item using Walker function

When using the Walker function I found out that the $item parameter contains the properties current_item_ancestor and current_item_parent but both are empty in all cases no matter if its a menu or a ...
0
votes
0answers
77 views

How can I add a custom list item to the start of sub menus?

I'm trying to change the output of the Wordpress navigation through a custom nav walker, but I have a some issues I'm not managing to work out. If an item has children I want to add two list item ...
0
votes
0answers
19 views

Reproduce sub-navigation drop down

We have a navigation bar that when you hover over it there is a drop down on 3 out of the 5 menu items; I'm trying to add the other two. I have added what looks like the right code but I can't figure ...
0
votes
0answers
21 views

How can I achieve this menu structure?

I need two main sections which have subsections. Let's call them "Main section" and "Secondary section" Main section is the main page when users come to my blog, its name is "COSAS QUE HAGO" (THINGS ...
0
votes
0answers
19 views

Link to specific content

I'm messing around with an existing theme at the moment, trying to strip away as much of the WordPress 'environment' as possible to only preserve the text-editing functionality. So, essentially, I ...
0
votes
0answers
13 views

Thumbnails in my album pages

I'm going to insert a navigation bar (with thumbnails) in my album pages. I've tried in different ways, but no one is working. The code, for "template-album" source, is the following. <?php ...
0
votes
0answers
69 views

Add custom dynamic attributes to menu items

Hello I would like to add a data-hover attribute to each element in a specific Wordpress menu. I found the following on the codex. However I don't know how to call each specific nav item to have the ...
0
votes
0answers
12 views

Wordpress API menu theme location assign doesen't work for second+ item

I'm trying to create 2 menus, one main menu and a footer menu. The script below creates the menus and assigns the pages but it cannot assign the second menu and onwards to the theme menu location. It ...
0
votes
0answers
48 views

Render a Wordpress menu from outside Wordpress?

I would like to render a menu in another system outside wordpress using SQL to fetch the menu contents and some logic to build the actual menu. I turned on mysql logging to see what wordpress was ...
0
votes
0answers
23 views

Walker Menu with Parent, Children, Children

This website has the menu I have been working on I used the suggestions from a question that was posted about a walker menu and it really helped and the site no longer crashers and the menu ...
0
votes
0answers
51 views

Create a Wordpress menu with accordions elements

I need help to create a menu with the accordions elements. I use Visual Composer to create an accordion and creates elements with random ID's, it's possible to create a menu with links to open each ...
0
votes
0answers
24 views

How to make btn nav work with secondary menu: wordpress header

I'm very noob with code but somehow (lol) I was able to change a secondary menu to a btn which I expect to open and close on click but I have not been able to make them (btn and nav) work together. ...
0
votes
0answers
70 views

Apply Twenty Fifteen Menu Functionality to a Secondary Menu

I'd like to apply the same dynamic, category-to-subcategory dropdown menu that's used in WordPress's Twenty Fifteen theme to a new secondary menu that I've registered in a different WordPress theme ...
0
votes
0answers
17 views

geting a string containing all the url's of the main menu

I write a simple plugin. Inside it I need to get a string containing all the url's of the main menu(and submenu) items. On the run time, the code doesn't know any details on the main menu of the site. ...
0
votes
0answers
37 views

Rewrite url from /page to /custom/page

I have a situation where I need some custom routes in my Wordpress set up. In my menu, there is an 'about us' item (which I set as a custom link) but it is not clickable, and just has 2 sub items in ...
0
votes
0answers
38 views

Add custom taxonomy archive (not a term) to menu

Is it possible in Wordpress to add a taxonomy (not one of its terms) to a menu? I havea taxonomy called "downloads" which contains some terms like "pdf", "psd", etc. I want to add the "downloads" ...
0
votes
0answers
13 views

Multiple menu overriding

I have two menu, next to each other but when i wp_nav_menu() my first menu broke down, as its dependent on jquery. Am i missing something in my code> function register_my_menu() { ...
0
votes
0answers
42 views

Scrolling feature in top menu drop down

I am creating a site with wordpress having six primary menu options and out of the six, two have 26 sub options under them. As the number of options in the drop downs are more than what my PC screen ...
0
votes
0answers
23 views

How to separate a nav with child levels into full length menus?

I am using the wordpress underscores theme taken from https://github.com/automattic/_s I have tried to use a custom walker but am getting confused with it. All I want to do is create a list of links ...
0
votes
0answers
92 views

Add custom functionality from admin menus to customizer menus field?

With the new wordpress 4.3 we have Menus included inside the Customizer (Appearance > Customize), which is a part of a move to put everything that can be live changed inside the Customizer (better ...
0
votes
0answers
99 views

Navigation (wp_nav_menu) refuses to nest within parent element

I have a shortcode that (among other things) echoes out a menu using wp_nav_menu like so if ( ! function_exists( 'foundationPress_main_nav' ) ) { function foundationPress_main_nav() { ...
0
votes
0answers
34 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
37 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
20 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
0answers
40 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 ...
0
votes
0answers
18 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
0answers
97 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
0answers
56 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
0answers
9 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
36 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
15 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
22 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
0answers
30 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
53 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
0answers
23 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
0answers
121 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
0answers
104 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
0answers
38 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
89 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
144 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) ...
0
votes
0answers
64 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
29 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
84 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
91 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
92 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
0answers
51 views

Dynamic admin submenu

I'm creating a plugin for WordPress with dynamic sub-menu's fetched from the server. Putting the dynamic loading of sub-menu's into the menu_setup() hook function would slow down other WordPress ...
0
votes
0answers
53 views

How to add a 2nd Top Level Menu bar at my Blog/website?

I want to add a 2nd Top level menu bar at my blog TechBemaers.com There is already a primary top level menu in the Blog which I want to keep only to display option for Home page, About, contact info ...
0
votes
0answers
22 views

How to add code to a top-level menu

I found a custom Nav Walker that is used to modify the wp_nav_menu() function and display a sub-navigation. Everything works as expected but the only issue is that it adds an additional The sample ...
0
votes
0answers
19 views

Menu distorted on browsing or logged in

I have no idea what is going on but when site goes live (any domain pointed to the server) menu is getting distorted (part of submenus became parent menus). All is working fine on a local development ...