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

Custom walker menu , add class link before

I'm trying to implement a responsive jQuery navigation but I need to extend the default output of the WP menu. I believe I need to use a custom walker but honestly, I don't know how to get it to work ...
0
votes
0answers
16 views

Add menu section and items to the Appearance > Menus page

I am writing a plugin that creates some virtual pages according to How do you create a "virtual" page in WordPress. I want to be able to add these virtual pages as options in the Appearance &...
0
votes
0answers
33 views

Custom nav menu current item custom link problem

Because I want to add <span class="dashicons [class]"></span> inside each link of my menu I needed to create a custom made nav menu. I did this by the code below which works great, but ...
0
votes
0answers
28 views

working with wordpress theme

I am trying to create a wordpress theme, actually I am very new to wrodpress theme and plugin and currently learning wordpress theme, so I have a html design with me and I am trying to convert it to ...
0
votes
0answers
54 views

Way to add archives as a menu item?

Is it possible to add an Archives dropdown -- like the Archives widget -- as a menu item in Menus?
0
votes
0answers
28 views

Simple modification for menu structure

I'm trying to make a menu for my website, but I want it to be easily modified through original WP menu(dashboard > appearance > menus). I want to add some small thing to the structure of my menu, ...
0
votes
0answers
16 views

Add parent link to its submenu

How to add parent link to its sub menu in navigation bar? I mean any hook, filter or custom navigation Walking? You may know, this problem is coined from the feature of mobile menu, I cannot go to ...
0
votes
0answers
20 views

Creating a geo-region Homepage and having Cookie Options

We have a website and we would like to have a feature similar to the HuffPost website. The website shows if the user went to switch to that regional edition and keep the cookie that when they go to ...
0
votes
0answers
11 views

How to add a custom menu to a certain post?

So with menus i know you can setup and have multiple different menus, but how can i set a particular post to use a certain menu? I'm doing this LearnDash - and i'd like to have a different menu for ...
0
votes
0answers
72 views

Dropdown menu with Foundation 5

I've had a heck of a time getting Foundation dropdown menus to work. I've got the menu itself together but can't figure out to integrate Foundation's needs for formulating dropdowns to the Walker. ...
0
votes
0answers
14 views

How do i get the menu id currently being edited in the nav-menus.php page?

I am trying to get the ID of the menu currently being edited in the backend menus page( nav-menus.php ) under appearance. Is there any filter that returns the id of the current menu being edited ?
0
votes
0answers
27 views

Menus Removed from Custom Widget Area

I’m hoping someone out there can help me out with this issue I’ve been scratching my head about for some time now. At my place of employment we have a WordPress site on our intranet, running a child ...
0
votes
0answers
22 views

Make menu page not add to click count from homepage to comply with Google indexing practices

Hi WordPress StackExchange, My goal is to make my website be compliant with having 3 clicks or less to the homepage for the services section. I am trying to resolve this error: Documents more than ...
0
votes
0answers
31 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
86 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
21 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
76 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
13 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
58 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 partially ...
0
votes
0answers
66 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
26 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
76 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
42 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
41 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
15 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
50 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
108 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
105 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
36 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
39 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
22 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
41 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
98 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
57 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
10 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
38 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
54 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 : ?> <p>...
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
133 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 navbar-collapse"...
0
votes
0answers
115 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 ...