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
11 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
1answer
12 views

Responsiveness break after converting the menu into wordpress [on hold]

I am converting a static template into wordpress template . It works fine , except the menu . My menu is responsive , it work fine when it is static template , but after I have converted into ...
-1
votes
0answers
13 views

How to make custom menu widget to have dropdwon function?

How to make custom menu widget to have dropdown function? I am to avoid put into sidebar, because I had long product category list and I would like to put custom menu widget (with dropdown) before ...
0
votes
0answers
5 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
10 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
1answer
10 views

Navigation menu does not scroll the user to the proper anchor points [on hold]

Soundbyte problem: Navigation menu does not scroll the user to the proper anchor points. This quick video illustrates the problem. https://www.youtube.com/watch?v=JWVc4yViRbM&feature=youtu.be Or ...
0
votes
1answer
28 views

Remove nav menu or menu item

I try to remove a nav menu programmatically but I didn't find the way to do it. I knwo how to create it but I don't know how to delete it... I've got the menu name and I wan't to delete it like in wp ...
0
votes
0answers
18 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
1answer
26 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 ...
0
votes
1answer
14 views

wp_page_menu not working right?

I try to create simple menu in custom theme. WordPress version is 3.9.1 So I taking code from here http://codex.wordpress.org/Function_Reference/wp_nav_menu, just change menu and container class / id ...
0
votes
1answer
42 views

WordPress 3.9 two menus in same position?

I have a new WordPress theme and I want to add extra menu, but as WordPress 3.9 allows only one menu to add in one position/places in theme? How can I add two menus in one position? I purchased the ...
0
votes
0answers
24 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 ...
-3
votes
0answers
21 views

how to create a logo on top of header and change the menu effects? [closed]

I am trying to build a website using WordPress's twenty twelve theme. I need to make a few changes, as below: I need a logo on top left corner of page. Which is on top left corner of header or blog ...
0
votes
0answers
22 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
17 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

WordPress filter to hook into menu <li> items and add a custom attribute

I have a WordPress template (I'm using Foundation as a base and https://github.com/olefredrik/foundationpress/ as a starter theme) I'm trying to build and I can't seem to figure out how to hook into ...
0
votes
1answer
13 views

Add <span> within the <a> output of <? wp_nav_menu() ?>

Currently i am using: <?php echo wp_nav_menu( array( 'menu' => 'main-menu','depth'=> 1,'items_wrap' => '<ul class="navigation_ul">%3$s</ul>' ) ); ?> I want to achieve: ...
0
votes
1answer
24 views

Check if wp_nav_menu items have submenus

I'm looking to output the following markup for a menu through wp_nav_menu, <ul> <li><a href="/">Home</a></li> <li> <a href="/" ...
0
votes
0answers
8 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
20 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
11 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
18 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
11 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
1answer
7 views

Highlighting Main Navigation Menu With Two or More Class Matches

I believe this doesn't happen very often. I am working on a project in which a child page can show up under several different parent pages. The page actually belongs to just one parent, but in the ...
0
votes
0answers
23 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
1answer
8 views

Customise the custom menu widget

Is it possible to customise the custom menu widget? All I really want to do is change the text where it says "select a category". Thanks
0
votes
1answer
39 views

WP nav menu + Bootstrap, add role=“menu” to UL

For one of my projects I'm trying to add a nav_menu to my WP theme. It should work as a quick menu (sidebar). The only problem remaining: How do I add a role="menu" to the < ul >? <?php ...
0
votes
0answers
18 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
1answer
50 views

How to display list of child pages with parent in wordpress?

I have following format of sub-pages in WordPress: About Us -Services -Products -Surgery I want to list all sub-pages with parent page like above but the code that I am using from ...
1
vote
2answers
49 views

Add Javascript to Wordpress Menu

Is there a way to put javascript in the URL portion of a Wordpress menu item? I have a live chat function on my site, and I am supposed to put this code onto the site to make a link to open the live ...
0
votes
1answer
24 views

Display a tag before the menu list content

Is that possible to insert a text before the menu items? In this case, I want to lead a <h3> tag for the list content (like a menu title). I tried the if/else to recognize that the menu have ...
0
votes
1answer
38 views

Insert a div class inside wordpress menu

<ul id="menu"> <li><a href="#">About Assetline</a> <li><a href="#">Products & Services</a> <div id="mega"> ...
0
votes
0answers
39 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
24 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
2answers
24 views

Query for menus in backend (BE)

I want to create a simple plugin (already started) to have in one place recurring tasks (for me as webdesigner) e.g. take site offline, set backend icon, don't show updates and so on... Now I want to ...
1
vote
1answer
51 views

How to remove admin main menu name repetition

I have added an admin menu using add_menu_page. When there is a sub menu with add_submenu_page, The main menu name is repeating. How to remove this repeating menu ? This is my code ...
1
vote
0answers
24 views

Insert menus in the database

I want to create a large menu structure, and the admin pages time out, so I cannot insert them via the admin screens. How can I insert the menu entries directly in the database? Thank you
0
votes
1answer
40 views

Create search form in menu as in Twenty Fourteen theme

I would like to replicate the search form in Twenty Fourteen's menu. I have tried to hide and show the search button with jQuery. My Problem is that the button is not sliding from left to right and ...
0
votes
0answers
12 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 ...
2
votes
1answer
25 views

Creating a menu page in a Object Oriented developed plugin

I am trying for the first time to build a plugin for Wordpress following OOP way. I am having some problems while trying to create a submenu page using add_users_page() function. Here is a simple ...
0
votes
0answers
15 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
1answer
10 views

List of WordPress menu item indices?

The following code will rename the "Posts" menu item to "Blog Posts" in the WordPress Dashboard: function lc_change_post_menu_label() { global $menu; $menu[5][0] = 'Blog Posts'; } add_action( ...
0
votes
0answers
14 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
23 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
22 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
21 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
2answers
35 views

Change HTML structure for custom menu in sidebar

I've been digging for documentation on how to change HTML output for the "Custom menu" which you place in optional widget. So its clear what I meen I have attached an image of the widget block here: ...
0
votes
1answer
22 views

How to Emulate Default Navigation Menu Behaviour in a Custom Theme?

I'm trying my hand at developing a custom theme, and I've got navigation menus working (with the help of this walker, but only if they're explicitly defined in the menu settings. The default themes ...
0
votes
0answers
14 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 ...
1
vote
1answer
168 views

Run a filter when a walker runs

Is there any way to run a particular add_filter function whenever a specific Walker_Nav_Menu class runs? The function always needs to run when the walker goes, and I'd like them to share variables, in ...