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

0
votes
0answers
12 views

Enable “CSS Classes” for menus by default

I'm wondering if it's possible to enable "CSS Classes" for Appearance > Menus by default when a theme (or a plugin) is activated? Like: function my_theme_activate_css_classes_for_menu(){ // What ...
0
votes
0answers
15 views

getting specific items from menu

In trying to build 2 linked menus, lets say the hierarchy is like this (In the menu options) - A -- B -- C -- D -- D1 -- D2 - A1 The first menu I want it to be fixed so I fetched it with ...
0
votes
0answers
21 views

Nav Walker: Set ul id to current item's title

I'm trying to assign an ID to a sub-menu ul that matches the associated items li in my nav-walker. Here's the output I'm looking for: <ul> <li> <a href="menu-item-1" ...
0
votes
0answers
12 views

Custom Link Not Registered as Nav Menu Parent

My issue is that I have a horizontal menu, with a few hashed - '#' - custom menu links to prevent users from going to empty pages (the main categories were just made pages for the link structure). ...
0
votes
0answers
22 views

Showing just the menu toggle next to logo in twenty fourteen

For mobile, I want to eliminate the black menu bar, search box/icon and move the menu toggle up so that on mobile, my site just has the logo and the menu toggle. This gives a bit more room for ...
0
votes
0answers
23 views

Add class to menu

I want to add a css class in menu list with this code: function my_special_nav_class( $classes, $item ) { if ( has_nav_menu( 'socialmedia' ) ) { $classes[] = 'btn-social btn-outline ...
0
votes
0answers
15 views

Custom generated WordPress menu using get_pages renders the proper HTML but doesn't display all elements

I have created a menu with the hopes of listing all of the child and grandchild pages of a page (see link below) it works great except that it is cutting off the menu at about 15 children pages, most ...
0
votes
0answers
37 views

Twenty Eleven child theme anchor top menu not clickable

I am working on child twentyeleven theme. I have to do three things to my child theme. 1-Using page.php coping in my child theme.I added the code in page.php at top of the code <?php if ...
0
votes
0answers
126 views

How to add “data-toggle” to wp_bootstrap_navwalker?

I'm writing one pager for my client. I made Child Theme from Twenty Thirteen. All is made on Bootstrap 3.2.0. I use tabs, accordion. And i also want to use jQuery Smooth Scroll plugin. Unfortunately ...
0
votes
0answers
29 views

Walker Nav Menu - down arrow for top level, but right arrow for below

I'm using Donald Harvey's solution with Custom Walker_Nav_Menu to show an arrow where submenu items belongs. It worked for me in a project where I had a left sidebar vertical menu. But when I'm ...
0
votes
0answers
25 views

Backend menu that shows pages with specific page template and their child pages

I've set up a menu in the backend that shows a list of pages that have a specific page template assigned to them. I've managed to do this using the code below, but I also want to display the child ...
0
votes
0answers
16 views

Alter menu item parent relationships with walker?

An example custom menu structure I would like users to see About Interests - Movies - Toys - Fun Job Hangouts The end result outputted menu ready for dropdownage would be About - Interests - ...
0
votes
0answers
47 views

Add menu/submenu items programmatically

Newbie question here. I'm hoping to modify a menu programmatically and am having trouble figuring out the right way to do it. My site uses a membership plugin. Users pay to become members, and ...
0
votes
0answers
20 views

Manually add navigation items to a menu

I tried to add a link manually to my menu, but something not works. I register my menu: register_nav_menus( array( 'main_nav' => 'Main', )); I try to add the ...
0
votes
0answers
37 views

Current state to a button when on a single page

I am having trouble figuring out how to keep the current state active once on a single page of the post. For example: Recipes displays a list of all my post that are under a specific category. Once ...
0
votes
0answers
31 views

Create an auto-populated menu that is automatically assigned to the primary menu in twentythirteen?

A similar question was asked about buddypress here , but I tried applying it to a twentythirteen, and I am getting this error. Cannot use object of type stdClass as array in ...
0
votes
0answers
20 views

add classes to wordpress menu links

As the title already says, I am trying to add classes on the WordPress menu item links (so not the li, but the a element). If it is possible to achieve something similar to WordPress its own function ...
0
votes
0answers
20 views

Nested Admin panel sub menus in single menus

i know how to add custom menu in the admin panel and how to add multiple sub menus in the custom menu. But i want to know can we add nested sub menus in the custom menu (WordPress admin panel)? Means ...
0
votes
0answers
89 views

show/hide menu item(s) on specific pages (not on user roles)

I wish to keep a menu item hidden on homepage & vice-versa (user roles don't matter here). Scenario In my Primary Menu, I have created two menu items Get Quote (menu-item-1) and Get Quote ...
0
votes
0answers
30 views

Show sub menu item from main menu on mobile devices

The parent menus of my wordpress main menu (horizontal) navigation shows up on mousever. I created a toggle / collapsing menu for screen sizes under 768px. Any idea how to show up the parent menus ...
0
votes
0answers
20 views

Loading wordpress menu in an external server

The scenario is like, I have two servers: Server A : Hosts WordPress Server B : Hosts Some PHP Scripts Now, I want to load the wordpress menu on server B. Is there any way to achieve this? ...
0
votes
0answers
19 views

Secondary menu > Active item: How can I output the class “current item”?

I'm using wordpress for my website and i have created a secondary menu. I'm using this secondary menu to work as filter for categories (filter different type of content). -> root website: ...
0
votes
0answers
27 views

WordPress HTML Menu

I'm trying to get the menu on my WordPress site to append the class like so: <ul class="nav navbar-nav navbar-right"> <li><a href="/">Home</a></li> <li ...
0
votes
0answers
30 views

Ubermenu cant handle my menu, how to deal with large number of menuitems?

I have a webpage with a large number of pages, around 250-300, and I output these in Ubermenu at the moment. Needles to say, my menu backend is very slow, and sorting is a pain in the.. well you know. ...
0
votes
0answers
52 views

How to add a code for lastpostdate after/inside a specific menu link?

So, I have a news website. The designers want me to have a link in the menu that says "Latest News - [time of the last post]". I know I can get the datetime of the latest post with ...
0
votes
0answers
51 views

Wordpress Shortcode in Menu Item Title

I've looked and have not found anything that works. I am trying to include a shortcode in a menu item's 'Navigation Label'. Basically Iwould like to have a dynamic title displaying the user's name ...
0
votes
0answers
23 views

Extending the walker class to add a top level list item to the nav menu in a different order

I've seen functions to append to the beginning or the end of the menu, but how do I add this list item right after the first? So it would come second in the menu order. Is this possible? If so, how ...
0
votes
0answers
25 views

Sub 'Page' Child Menu Order

I cannot seem to get the order of my sub-page Menu items in the correct order. They will only display in alpha or numerical order - even if I specify the menu order. To be clear - I am not referring ...
0
votes
0answers
20 views

menu hierarchy not working

I have created a theme from scratch and was using a custom menu with no problem. Somehow, I lost the ability to create a hierarchy in the menu -- all menu items show up at the same level. I have ...
0
votes
0answers
48 views

how to implement the slide and push menu in wordpress

new to this forum & new to wordpress. I have read about Slide and Push menu functionality in http://tympanus.net/codrops/2013/04/17/slide-and-push-menus/ How to implement this on a WordPress ...
0
votes
0answers
43 views

How to add extra items in wp nav menu

I have a menu in wordpress where each menu item has an extra item. For example: I have a "Home" menu item where I have an extra item "come see us", I have an "About Us" menu item where I have an ...
0
votes
0answers
30 views

Why is the Walker_Nav_Menu self closing tags added in start_lvl

I'm creating a custom Walker based on Walker_Nav_Menu for a megamenu I'm working on and the issue I'm having is that it seems the tags I open on start_lvl are being automatically closed. Here's my ...
0
votes
0answers
19 views

Wordpress custom url menu items being overwritten

I am fairly new to Wordpress development. Using a site that runs 3.91 with a custom theme that I have inherited from someone else. My question is fairly simple: I want to add custom menu items that ...
0
votes
0answers
15 views

check_admin_referer always false when I use on add_action('load-'* hook

I have try to add hook on load my plugin page. But every time i save my config, it always return "Are you sure want to ..." message. Is there something i missed? Here's my code: <?php class ...
0
votes
0answers
274 views

wordpress mega menu without plugin

I created a mega menu on my site using wordpress native wp_menu. I wanted to display 4 columns in each mega menu. each column contains 5 links you can see it live here (it's in hebrew but check the ...
0
votes
0answers
13 views

Drop Up Menu with a twist

I am trying to make menu tabs slide up like a bookmark on hover so that the main menu item is still on top and the submenu slides up with it. I am using TwentyTwelve WordPress theme. Is this possible ...
0
votes
0answers
49 views

If menu has submenu, add parent as first child

I am using CSS framework (Metro UI, but this is a problem in Bootstrap too). When I set parent menu, the item itself isn't clickable, it's only toggle for its submenu. I tried to change JS and CSS so ...
0
votes
0answers
24 views

Disappearing items in menu

I have problem with disappearing items in menu. I added php_value max_input_vars 7000 php_value suhosin.post.max_vars 7000 php_value suhosin.request.max_vars 7000 to my .htaccess but it doesn't ...
0
votes
0answers
36 views

How to programmatically add login form to wp_nav_menu X position

I have a menu I created in WP that registers 'main_nav' so the user can still use the Appearance > Menus screen to edit their menu. However I need to add the login form to the 4th (main) menu items ...
0
votes
0answers
61 views

Get the menu name or location of current menu item

I am having a hard time trying to get the name of the active menu and, apparently, I cannot find any solutions to this issue. Basically, I have several menus that follow this pattern: Menu Name ...
0
votes
0answers
21 views

How to display counter for post in navigation?

I have custom post type called Booking. It have custom post status : "waiting confirmation" and "confirmed". I want to display counter in navigation menu to count total post which status is "waiting ...
0
votes
0answers
23 views

How to hook new args into a Custom Menu Widget?

I am trying to add some code before the list items in a sidebar Custom Menu Widget. Maybe I'll add an image, maybe I'll add some text. Not sure yet. But I'm having a hard time trying to figure it ...
0
votes
0answers
26 views

Menu not saving in dashboard

I've created menus in wordpress dashboard countless times and never had a problem saving them until today. Getting this error: "The menu name Main Menu conflicts with another menu name. Please try ...
0
votes
0answers
31 views

how to keep currently selected menu item while selecting another menu item in second menu

In wordpress 3.9.1 I'm trying to create my own theme. One of the things my theme should be able to deliver is to have two menu's. I do have that. It is working. So no worries there. One of the ...
0
votes
0answers
19 views

Creating Secondary Menu - all steps required?

I am using retro hipster theme and have been able to add secondary menu with details. I've read regarding adding array in functions.php and then calling both nav in the header.php. However one menu ...
0
votes
0answers
47 views

automatically adding submenu items

Here's the solution that @bainternet has posted here: Add child pages automatically to nav menu /** * auto_child_page_menu * * class to add top level page menu items all child pages on the fly * ...
0
votes
0answers
22 views

wp_nav_menu: current_post_ancestor-category parent

I have a nav like this: page 1 -- page 1.1 -- category 1.2 page 2 page 3 When I am on a single post in the category 1.2, the category-menu-item gets the correct class current-post-ancestor and ...
0
votes
0answers
46 views

Post label “new!” in wp_nav_menu using class?

I'm looking for a function to add a "new" label in front of my custom post type name in my navigation menu. The code is : <?php $args = array( 'numberposts' => '1' ); $recent_post = ...
0
votes
0answers
29 views

When submitting more than 200 menus, I get “Service Temporarily Unavailable”

I have a site with a large number of nested menus. I solved the problem after following the solution proposed here Menu limit, cannot add new menu items and including max_input_vars setting. For ...
0
votes
0answers
76 views

Custom Menu echo own HTML

I've registered a custom menu and got all that set up, however the formatting of the HTML that the menu uses doesn't fit with the CSS/HTML menus I had previously and want to keep. Therefore I was ...