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

0
votes
0answers
16 views

custom script category in a menu not showing

I have a custom script to create a menu and a category everytime a user register for multisite. Below is the code where I create a menu and category. switch_to_blog($id); $_nav_menu_selected_id = ...
0
votes
2answers
33 views

Page and Posts loading as index page? Not loading the content

I've been developing a website on wordpress for some time now and came across some issues but until now I could figure it out, not today... Yesterday I've worked some more on the website and today ...
1
vote
1answer
22 views

Center and hide overflow of WP toolbar custom links

I have made 22 custom links in the WP toolbar for my site but when I reduce browser/screen width they are completely un-resposnive in terms of CSS and stack instead of simply not displaying links that ...
0
votes
1answer
30 views

WordPress Custom Menu Admin helper plugin

I'm creating learning system in WordPress and I have a lot of pages instead of post. Those pages needs to be in a custom menu with two sub items. It gets really confusing to add pages to the menus ...
0
votes
0answers
8 views

Add author archives to Wordpress Appearance Menus Screen?

I am trying to figure out how to add a list of all blog authors to the Appearance Menus screen, so they can be added to menus with the same functionality as Pages and Posts, etc. (Not custom links.) ...
0
votes
2answers
51 views

Custom walker with hashes instead of links (one-page layout)

I am currently developing a one-page based layout with WordPress where the actual content is split up into separate pages in the backend, which are all knit together to a one-page layout in my ...
0
votes
3answers
131 views

Add sidebars to navigation menu?

Is it possible to add a sidebar to navigation menu? I'd like to be able to add sidebars in Appearance > Menus, like I add pages. I have a way of creating extra sidebars, so that's not an issue (I ...
0
votes
0answers
38 views

wp nav menu without label

I have a menu on wordpress using this <?php wp_nav_menu( array( 'sort_column' => 'menu_order','menu_class' => 'navlink', 'container' => false, 'theme_location' => 'header-menu') ); ...
0
votes
0answers
31 views

How to filter Wordpress menu by tag name of the post

I have a simple wordpress theme installed on my server. The url is : http://urhalpool.com/wp/ I have used tagging against my post and those post added to my top and left menu. When I am filtering by ...
0
votes
0answers
20 views

How to add class and span to

First of all this is my first wordpress theme where im making So i want to add class to <a> and <span> in navbar and want to looks like this <a class="menu_top" ...
0
votes
0answers
63 views

Help needed for custom walker menu

need a help. I developing a WordPress woocommerce template with yamm 3 megamenu . but i am having some problem with my complex navigation structure. can anyone help me how to convert following code ...
0
votes
2answers
45 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"> ...
1
vote
1answer
33 views

How to Overwrite/Customize wp-admin/nav-menus.php in Wordpress

I was wondering if is there a way to customize wp-admin/nav-menus.php so that I could add my own extra fields or tab. For example, I want to have a new tab (Menu Settings) created for each menu ...
0
votes
1answer
30 views

Reduced Menu in Mobile with Twenty Twelve and Polylang

Situation: Theme: Twenty Twelve Plugin: Plolylang, German & English URL: http://astronomisches-konzert.de Menu is nested Requirement: Mobile Menu not nested Solution: For Mobile set ...
0
votes
0answers
18 views

Menu won't stay nested when I click 'Save Menu'

For the footer I have a top Link and the rest below it are supposed to be nested underneath. It used to work fine but when I tried to change it now none of them stay nested and they all snap back to ...
0
votes
0answers
67 views

converting a bootstrap vertical menu into wordpress menu

I want to convert this menu: http://www.bootply.com/uBoT3zP1P2 into a wordpress menu. I'm not good at working with walker menu and using menu hooks like "nav_menu_css_class" I couldn't read the ...
0
votes
2answers
54 views

WordPress doesn't recognize submenus as <ul> so I can't style them properly

I'm quite new to WP theme development so I'm sorry if the answer for this question may seem obvious. I'm developing a custom WordPress theme from scratch, and I'm stuck working on the menus. My ...
0
votes
1answer
12 views

Count Level 1 Childs for Custom Nav Walker Wordpress

I have three levels of my menu created in custom walker class. Output is like below: home (parent) about (parent) item 1 (level 1 child) item 1-1 (level 2 child) item 1-2 (level 2 child) ...
0
votes
2answers
68 views

show only a given level in nav menu

I want to display only a given level of menu items in my main nav menu when on that page. Currently sub menus of my main menu are part of the main menu HTML being an unordered list within the nav link ...
0
votes
2answers
31 views

Nav menu classes 'has-dropdown' but no 'active'

I have a nav menu with a depth of 2. wp_nav_menu( array( 'theme_location' => 'primary_navigation', 'depth' => 2 ) ); When I am active on a page in the nav menu ...
1
vote
1answer
89 views

how to change the output of wp_nav_menu using css classes

When we add a class to a menu item through dashboard, the css class is added to "li" tag of that item. Is there a way to add these css classes to "a" tag of that item, instead of "li" tag? As you ...
0
votes
0answers
68 views

Show sidebar only if widget has content

I'm using the Scaffolding theme and the Advanced Sidebar Menu plugin. The plugin works correctly but the theme always shows an empty sidebar because the widget is active. I believe the code that does ...
0
votes
0answers
43 views

Dropdown Settings API for get_terms Menu option

I am using get_terms to display a list of available menus and then display those menus for a plugin settings selection - that part works fine - but I can't retrieve and display the value. I am not ...
0
votes
0answers
56 views

Add custom menu item metabox in Navigation Settings

I've been imagining a piece of functionality that would extend the WordPress drag and drop menu creation. Essentially adding a custom menu item button that would be used to add different types of ...
0
votes
1answer
241 views

How to get a different mobile menu than desktop menu in the twentytwelve child theme

I would like to use a different menu for my mobile website than my desktop website. With different I mean the content not the layout. I just want to use the mobile menu of the twentytwelve theme. ...
4
votes
2answers
2k views

Adding line breaks to nav menu items

I need to add line breaks to the nav menu item titles. I didn't realize this was a problem as when I am logged in as a Super Admin, I can add <br/> just fine, but apparently regular-level ...
0
votes
0answers
18 views

Add a menu to a specific page when specific page

I have a separate page. An additional menu should come in that page. How i can get this done? Any help or links which I can try would be a really help!
0
votes
1answer
13 views

Contact form field in wordpress menu

I am trying to insert a simple 1 field contact 7 form into my menu. I have this code working for just text, but if I try to insert the shortcode for the form, I get an error. What am I doing wrong? ...
0
votes
0answers
6 views

Select a widget from appearance menu

i'm creating a mega menu in WordPress and i need to add a widget field to select a widget area form appearance menu than show the selected widget width the_widget( 'widget_name' ) function
0
votes
0answers
25 views

Can I change the “swipe-to-open” functionality of hamburger menu on iOS (UberMenu 3)

I hope I phrased the question right. Feel free to edit if thought necessary. It seems like UberMenu 3 is designed in a way that requires iOS devices to swipe the hamburger menu container to open the ...
1
vote
1answer
2k views

Error “The given object ID is not that of a menu item” on menu with 40+ items

When ever I try to add menu items past about 40 I get an error "The given object ID is not that of a menu item" and many of my menu items will disappear from the menu at random. The site I am working ...
0
votes
1answer
20 views

How to assign plugin to top level menu?

wp-content/plugins/myplugin.php how to assign this plugin to top level menu? E.g. menu on my website: about us contacts, services my plugin. I'm using add_menu_page but I dont know why its not ...
0
votes
2answers
414 views

Add session or cookie to remember last menu location

I have a site that is pretending to be three sites. This is done by a series of conditional statements and page templates to make it look like the user is on a different site depending on their menu ...
0
votes
0answers
9 views

Need solution for search or menu with choice of category and specific month/day

I'm in need of a search or menu option on a wordpress site where the visitor can search by a category and specific date (month-day only).... OR, a way to make a chained select menu like I had on an ...
0
votes
2answers
66 views

Adding PHP in the menu

So, I have following php code: <?php global $my_profile; ?> <?php if (is_user_logged_in()) : ?> <div class="img" data-key="profile"><?php echo get_avatar( ...
0
votes
0answers
39 views

Adding icons next to categories in wp_nav_menu

Is there a way to add a category icon next to a menu item? I'm using the Category Thumbnails plugin to allow each catagory to have their own icon. However I'm struggling to incorperate this into my ...
0
votes
2answers
46 views

Adding content inside the anchor tags within WordPress main nav

I'm using FontAwesome and hence I need to include some extra code next to parent menu options that have a sub-menu, such as: <li> <a href="">About <span class="fa ...
-1
votes
2answers
67 views

Replacing a specific menu item

So, I understand how to target a specific menu using the following to add a custom code. <?php wp_nav_menu( array( 'menu' => 'Project Nav', // do not fall back to first non-empty menu ...
30
votes
2answers
15k views

How to add a custom field in the advanced menu properties?

Is it possible to add a custom field to menu items? What I want to do is be able to add a field for 'French Navigation Label' and a 'French Title Attribute' in the wp menu interface.
1
vote
1answer
37 views

Filter for Admin Nav Menus Drop Down

In short, is there a filter for the Admin Panels Nav-Menu Dropdown List? For non-administrators I need to remove access to modifying / selecting a specific menu but still allow access to other ...
1
vote
1answer
64 views

Change list item content in menu navigation to add a child element with specific class

I have been away of wordpress for quite a while and never practiced that much. I have a few problems even tho I looked on the internet for an answer... regarding the wp_nav_menu behaviour. Hope you ...
0
votes
0answers
32 views

Drop down items not displaying on mobile device

I have been reworking a site that has the FlexNav code implemented already. I have added drop down menu items per the menu dashboard in the backend of WP and I can see the new dropdown and select it ...
0
votes
1answer
22 views

Two questions about CSSing inside the menus

First, I would be glad if u tell me how can I assign a class(css) to default span tag that include the links inside the menu, created by WP control panel. And second question is how to use @media ...
0
votes
0answers
18 views

Deleted empty posts - menu gone

I just discovered that my site had a lot of posts with no title and content. I thought it was empty posts I had created when misclicking on create post instead of create page, so I sent them to trash. ...
0
votes
1answer
43 views

WP Admin Bar - Get current theme name as custom menu title

I wish to echo the current theme in text in my WP Admin Bar sub menu. How would I go about display a snippet of PHP inside the 'title' => 'php snippet here', ? ...
0
votes
1answer
60 views

How to move menu next to left of the search box?

I use Woocommerce plugin and StoreFront theme to build my demo website at http://52.74.97.64/wordpress/ I want to move the current menu to another place - on the left next to the search box on the ...
0
votes
1answer
241 views

How to create menu in Word Press 4.2.2?

How to create menu in Word Press 4.2.2? I have opened a dashboard and there are no so options visible. How to fix that? I want to make a menu for all pages I`ve created. Thank you.
0
votes
0answers
18 views

Edit HTML for Custom Link in Menu

I would like to add Google analytics code - via 'onclick' event - to a custom link that resides in my menu. However, there are only limited items I can customize (URL, Label, Title). Is there a way ...
0
votes
1answer
37 views

How can I edit submenu headings using wp_nav_menu walker?

The whole world of menu walkers is still murky waters for me, so I'm hoping someone might be able to help me here. I'm able to produce an auto-generated list of menu items on my page using the ...
4
votes
2answers
2k views

Add a custom walkter to a menu created in a widget

I know how to add a Walker to a custom menu created by the theme (menu named primary in this example), but how can I target a menu thats created in a widget with the default wordpress custom menu ...