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)

3
votes
1answer
9k views

adding some custom html code to the wp_nav_menu function

I would like to implement some custom html code to the wp_nav_menu function in WordPress so that I can add a bootstrap modal box to a navigation menu link but I am unsure how to go about it. The post ...
0
votes
0answers
17 views

When I set a xyz page as static front page it dosen't show up in main menu [on hold]

When I set a xyz page as static front page it doesn't show up in main menu it automatically hide from main menu so please help me out.
0
votes
1answer
772 views

How to add nav menu items to a specific position within a menu

I'm adding login/logout links to a nav menu using the following code: function rp_add_login_logout_links( $items, $args ) { $link = wp_loginout( get_permalink( get_option( ...
0
votes
1answer
642 views

Remove current class from sub menu items

I am building a wordpress website with drop down menu (sub menu). To achieve this here I am using wordpress walker class. This is the code which I am using in my functions.php class ...
0
votes
0answers
6 views

submenu item under other top level menu and change some fields

I would like to add the 'Add new' user submenu to have a different name(in the menu) and under a custom top level menu that I created. I have removed most of the standard admin menu and replaced it ...
1
vote
1answer
434 views

Remove nav menu item by script

I want to create my custom nav menu using a script in a wp plugin. I'm almost there using this tutorial. All I need is the option to delete menu entries. something like ...
0
votes
1answer
20 views

functions.php adding item to end of menu. I want to change position

I found a function in my template that is adding a register button to the end of my menu. I'm wondering if there is any way to make this function add the register button to the beginning of my menu ...
0
votes
1answer
47 views

Programmatically Create Menu Link For WooCommerce Memberships [on hold]

I'm using WooCommerce + Memberships and need to add a direct link to the Memberships "Member Area" in my primary nav. Due to the fact that the Memberships "Member Area" section contains the id of the ...
0
votes
0answers
12 views

Menu Item Post variable count way too high, can't save menus

I'm having trouble saving WP menu items and I've done all the usual things as documented here: http://sevenspark.com/wordpress/menu-item-limit and here: Menu Items Disappearing And I know that the ...
0
votes
0answers
8 views

Set rules for file uploads to dynamically hide/show menu items

I am curious if anyone has a clue about this? Upload a file. If file meets certain criteria, link the file dynamically to a menu item If file is linked, the menu item will show. Until an associated ...
0
votes
1answer
2k views

Use menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
3
votes
2answers
7k views

Using wp_get_nav_menu_items() to list children of children pages

I'm working with a Genesis Based Theme and I'd like build a Page/ Child Page menu structure. That part I can do with the help of some code produced by Bill Erickson. Essentially what I'm trying to do ...
0
votes
0answers
13 views

Foundation 6 Dropdown Menu & WordPress

I'm trying to incorporate the foundation 6 dropdown menu with WordPress's menu. WordPress currently outputs <ul id="menu-menu-1" class="menu"> <li id="menu-item-24" class="menu-item ...
0
votes
1answer
686 views

How to retrieve depth of menu into template

In wp_nav_menu i use for the menu, with custom walker, i can get the $depth parameter in the start_el function function start_el(&$output, $item, $depth, $args) but, outside this ...
-1
votes
0answers
16 views

Add menu content as hyperlinks on a page

I've Googled this, but keep turning up ways to add links to menus, which I fully understand. What I'd like to do is this: My client wants a page with links of certain pages right in the page ...
0
votes
2answers
8k views

How to show Home Page link in Wordpress Menu and how to add an icon to this?

I tried with this code: function home_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'home_page_menu_args' ); but gives me this error: Error ...
0
votes
1answer
449 views

How to translate menu items?

is there i way for menu to be translated when i choose website language? Can it be done without using a plugin? Does anyone have a solution to do it withot using the plugin? Thanks in advance
-1
votes
0answers
10 views

Add Search box on primary navbar, right side - Modern Business Theme [closed]

I'd like some help adding the Search box inside the primary navbar -(right side).I'm newbie here. I'm developing 4.5 version of wordpress. I use these below code for that purpose but search box not on ...
0
votes
0answers
27 views

Menu permalink structure

so I have this problem... it's stupid one, but I can't handle it properly. On my page www.example.com I need to put big menu structure. I want menu to be structured as ...
-1
votes
0answers
19 views

Javascript Functionality on Wordpress menu

I have a menu item on my site "LOG IN" which is directing the user to a sub domain site where they can login, however if user is already logged in we need to change the name of the button to "LOGGED ...
0
votes
2answers
49 views

switching test to production > main menu forgotten, background forgotten

the bigger question is: How to have a beta (test) site and production, and switch between them so easily that a user can do it. I wrote a script that does the move. Here's what the script does: 1. ...
1
vote
3answers
895 views

Debugging - trying to add search box to menus

I have already asked a similar question at stackoverflow (http://stackoverflow.com/questions/22492292/add-filter-in-wordpress-how-do-i-know-if-it-is-run), but maybe that was the wrong place? As you ...
3
votes
1answer
702 views

Change menu with language?

My problem is that I have used a plugin called polylang and now it doesnät work with another more importent plugin so I need to find a solution. I use WPML on other sites and that is not an option ...
3
votes
1answer
8k views

Add container to nav_menu sub menu

Is there a way I can wrap a div around wp_nav_menu's ul.sub-menu So for example the markup would go from <ul class="menu"> <li><a href="/">Item 1</a></li> ...
1
vote
1answer
2k views

Wordpress 3.5 dropdown menu

I'm pretty new with WordPress and I want to create my own dropdown menu without the use of any plugins. I already did some research but there are some things I do not understand. In my header file I ...
0
votes
2answers
32 views

Adding 'Original' URL for Custom links

I have a menu with custom links with the section of URL, however if I want to change the URL(to remove it) for some page(Sample Page) I can not, because I must provide specific URL. I want to put ...
0
votes
3answers
810 views

How to remove dropdown from wp_nav_menu

I dont want to have dropdown (select - options) in my wordpress menu, even in mobile or lower width devices. I know I can use css to hide it, but I want to remove it at all. I googled for an hour and ...
1
vote
2answers
31 views

Partial refresh of menu in customizer not working?

WordPress 4.5 supposedly enables live refresh of the menu in the customizer, though I cannot get it to work. If I reorder the menu (in customizer) I see no changes until I perform a manual refresh. ...
3
votes
1answer
24 views

Set blog archive to active when browsing archive

I have a link to my blog archive in my main menu. When the user clicks it and the blog is displayed (on /blog/ - I have a static front-page) the link receives the "current" class (or whatever the name ...
0
votes
0answers
15 views

WordPress dynamic paging - url conflict [closed]

I have downloaded theme which is static html & css template, now I'm trying to convert into wordpress dynamic template. the issue is that the static template is one page website and have some ...
6
votes
7answers
7k views

How can I display a menu on certain pages only?

Instead of using sidebar widgets to tell on what page they should be visible, I like to choose at the menu settings to appear on specific pages. Default Wordpress way: So projects is a page and ...
0
votes
1answer
15 views

How to add columns to wordpress menu editor

Wondering if someone can point me in the right direction. Currently, I'm trying to figure out how to add columns and headings to sub menus. Naturally I want to create a basic megamenu where I can add ...
0
votes
2answers
17 views

How to request container_class from wp_nav_menu

I'm currently trying to setup a custom nav walker that will use container_class from the menu as a prefix for the class names of the list items and children. $defaults = array( 'menu' ...
1
vote
1answer
439 views

custom menu widget where menu title is a link

I am looking for, like the title of this question indicates, a custom menu in wordpress where the menu title itself is a link. It seems like a very simple thing, but after a lot of searching I've come ...
1
vote
1answer
1k views

Unable to center menu and header image twenty twelve

I have a really simple site at cyriljoyce.com on the 2012 theme I created a child theme to center the header and menu bar but just cannot seem to make it work. The child theme text is below The line ...
0
votes
1answer
22 views

How to separate sub-menu output and keep associated with parent

I am creating a menu like this https://squareup.com/ I have the html,css, and jquery ready. Now, I am trying to: Create the menu items with it's sub-menu items via wp-admin -> appearance -> ...
0
votes
1answer
26 views

All custom links suddenly lack href attributes

Short version: before updating to WP 4.5 and on a day when the only known change was adding a page to a submenu via the navigation menu admin all of the menu links of type Custom Link where we specify ...
1
vote
1answer
3k views

Adding menu items dynamically using wp_nav_menu_objects

On my primary navigation, I want each top level page to have a list of the subpages. So I created code that dynamically adds menu items to the primary navigation. This works only on the first level of ...
0
votes
1answer
16 views

Custom menu with Walker class - what should the $db_fields be?

I'm trying to create my own custom menu using the Walker class and in the process of trying to figure out what's going on, I'm attempting to reproduce what wp_nav_menu() does by default, so, I've got ...
1
vote
1answer
22 views

Add div to specific sub-menu

I researched in google, yandex but had no success. With this code I can set a div to sub-menu but this code add to all sub-menus, I just need to add div to specific sub-menu. class Megratron_div ...
0
votes
0answers
25 views

Addressing Child Page from Custom Menu

I build the website of an association with centers in different cities. Each city's pages need their own sidebar. I want to program an automated solution where the editors dont need to select ...
1
vote
2answers
2k views

Nav menu items disappearing (but not immediately)

I'm working on a site where some of the nav menu items disappear (from the front end, the back end, and the database). However, debugging is extremely difficult since they don't disappear immediately! ...
0
votes
1answer
926 views

Splitting up a submenu into columns, or putting existing menus in another menu as submenu item

I have a menu with a long list of submenu items. I'd like to split that up into columns and the easiest way in my mind would be to have them split up into multiple . Is there a way to do this? ...
2
votes
2answers
1k views

wp_nav_menu() mark current item ancestor of custom post type

This solution does almost what I want it to. Only thing is, I have my menu set up as follows: Menu item 1 Menu item 2 Custom post type 1 Custom post type 2 Custom post type 3 Menu item 3 ...
1
vote
3answers
68 views

Menu item added in wp_nav_menu_items filter is never highlighted

In a Twenty Thirteen child theme I append a menu item (a link to /player-number page template, where the number is different for each user and represents her or his id in a game database) using the ...
1
vote
2answers
727 views

3 blogs on one site with the same header menu?

Person X has default SITE with an integral blog. Person X also has SITE 2 with Blog 2 and also SITE 3 with Blog 3. Is it possible to have on the DEFAULT SITE HEADER MENU something like this: HOME ...
1
vote
2answers
843 views

Using website header, menu and footer on Wordpress blog

I want to use the header, top menu and footer from my website on my Wordpress blog. The website itself is not a Wordpress site but the blog is and resides in a 'blog' folder on my server. So I guess ...
0
votes
1answer
19 views

How to add an attribute data-slug = “$specfic_page_slug” in WordPress menu item?

I want to add custom attribute in WordPress menu item which has specific page slug. like this - <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-101" ...
0
votes
2answers
1k views

How to add ul class on nav

I've been learning to convert HTML to WordPress and want to convert on to class like this: <div class="mainmenu pull-left"> <ul class="nav navbar-nav collapse navbar-collapse"> ...
0
votes
2answers
708 views

Handling complex multi-level architecture / menu for large site

I am trying to get feedback and ideas for solving an information architecture / content management problem using wordpress. I have a large site ( 1,000+ pages, hundreds of posts ) made up of ...