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
1answer
33 views

Where to implement custom walker class?

I have created a custom walker class for changing the output of menu items. Where do I place my custom walker class file at? I have tried to ask on the Wordpress forum but it has gone 3 days with no ...
0
votes
1answer
36 views

WordPress menu>Custom Link: removing my link formatting and adding %20

I am pasting this url: <a href="#" id="event_inquiryToggle">TEST</a> into WordPress Custom Link menu item. When I hit save it saves it as such: http://a%20href=#%20id=...
0
votes
1answer
50 views

switch_to_blog() and wp_nav_menu() not functioning properly

I have an MU plugin active on the network with this small function to query menu 4 from the main site in my network. On the main site in the network (1) things work as expected. On the sub sites in ...
0
votes
1answer
117 views

Loop through Navbar, Output Icons

I'm trying to loop through my Navbar in WordPress so that I can output some Icons at the end of the last link. I have this working but I end up outputting a Navbar and a list. I think this is because ...
0
votes
1answer
17 views

Calling wordpress menu outside ignores custom menu item

I have a wordpress website and I want to use wordpress menu outside the installation. So I created a file called nav.php and put the following code include( '../wp-load.php' ); wp_nav_menu( ...
0
votes
1answer
49 views

`start_el` depth argument in custom nav walker always evaluates to zero

I have a custom nav walker I'm trying to use to output only the first level of a menu: <?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'depth' => 1, 'walker' =>...
0
votes
1answer
45 views

Fragment URL in navigation item without a custom link

Some of the pages in my navigation are fragmented urls that shouldn't actually go anywhere. In other words, I have a couple parent nav items like <a href="#">Services</a> that serve only ...
0
votes
1answer
22 views

Show more menu items to registered members

I need help with my membership site. I would like to some menu from visitors from my Main Navigation and make it visible to logged in members. How can I achieve this, something like : Home-Login-...
0
votes
1answer
74 views

Dynamically add sub menu items

I have been able to add menu items with this statement, this however creates a flat menu. The menu has been created already. I just need to add items. wp_update_nav_menu_item(4, 0, array('menu-...
0
votes
1answer
257 views

Show different menu on each woocommerce category page

I have created several custom menus that appear under the main menu on the shop page. Each category (and its subcategories) should display a different custom menu like below: custom menu: ...
0
votes
1answer
22 views

Mark a page of a queried menu as active

Im trying to mark as active a page of a queried menu --> (I found the answer) function render_main_menu(){ $args = array( 'post_type' => 'a_cpt', 'tax_query' => array( array(...
0
votes
1answer
41 views

How to add a toggle on the left side of my page?

How to add a toggle on the left side of my page and the content on the right side of my wordpress page. The toggle should behave like a menu on the left side(the arrangement)and each heading would ...
0
votes
1answer
32 views

Menu not appearing in custom theme

I made a custom theme, but the menu is not showing in appearance section. I created a separate function file named function.php and the code is: add_theme_support( 'menus' ); function ...
0
votes
1answer
39 views

how to change single post link

I have made a website for a client which involves products tab in navigation. Products are the posts that being posted in "posts". I have a front-page.php which is static. posts are displayed in ...
0
votes
1answer
44 views

Any simple way to show 10 previous pages by id to current page in links as a menu

I've been reviewing any plugin that may help in this but I got nothing. For a web using pages instead of posts, I may need to show in each page a menu consisting of 20 previous pages, or maybe 10 ...
0
votes
1answer
31 views

Is it possible to separate all submenu items?

I'm using FoundationPress as a starter theme and I'm trying to separate the submenu. My theme basically generates menus like this: <ul> <li class=" first-level has-dropdown"> &...
0
votes
1answer
12 views

Can't change link for navigation item

I'm customzing a wordpress theme so problem is that i've to change a link. its in arabic for example instead of this <a href='somelink.com'> i want to make it like this but problem is that ...
0
votes
1answer
28 views

Site-wide tabs at WordPress website?

Is there a solution to add tabs at the whole site (site-wide) and not just in posts and pages? For example: I need one "tabs group" consisted of 3 tabs, and I like to add it sitewide (the same ...
0
votes
1answer
27 views

Frontside menu based on custom roles logged in permission

I have two phases to my site, the first is menu, i want my site to hide (normal) menu items if the user isn't logged in e.g when someone visit my site, the menu should be Home About us Products ...
0
votes
1answer
52 views

How to make menu output links absolute

The page and post links added to WordPress menus are relative in nature. I need a way to force them to be absolute without using the "Custom Link" option. Is there some function or maybe a modifier ...
0
votes
1answer
89 views

How to dynamically alter all the links in menu via function.php

I have been searching and reading for 3 hours and still couldn't find anything that come close to what I needed and I am still trying understand how wp add_filter, rewrite, etc works. Just started ...
0
votes
1answer
18 views

Custom location for menu

Does anyone know why when I the code to implement the menu it displays the menu right after the body tag. And this is where I add my code <div class='nav'> <a href='#' class='menu_btn'&...
0
votes
1answer
53 views

wp_nav_menu_items for one menu

I tested this tutorial. It works great. The problem is that in the tutorial there is one menu while I have 2 menus. Let me know how I can customize this function for the feature only applies to ...
0
votes
1answer
27 views

Wordpress menu and plugin installation problem

Am I the only one who is getting this problem or is the problem in wordpress new version. Please someone clarify. The version is wordpress-4.2.4
0
votes
1answer
94 views

Using wp_list_categories or other function inside a menu walker?

I'm new to messing around with menu walkers in WP, so I might be trying to do something that's not possible, I'm not sure. What I'm trying to do is insert a div containing a list of my product ...
0
votes
1answer
175 views

Walker_Nav_Menu Add Strings and Class Name

How to make this pattern using Walker_Nav_Menu? <ul class="nav navbar-nav"> <li><a href="portfolio.html">Portfolio</a></li> <li class="dropdown"> ...
0
votes
1answer
87 views

add login menu with submenu

I need to add "Login" to main nav-menu. with sub menu "register" (link http://www.vcanade.ca/register/) After user logged in, "Login" has to change to his username with sub menus "profile" (link http:...
0
votes
1answer
189 views

How I can add div to menu?

I have div structure <div class = 'main-menu'> <ul class = 'menu'> <li class = 'item1'></li> <li class = 'item2'></li> </ul> </div> But I want ...
0
votes
1answer
41 views

Creating custom Menu for custom theme

I want to create a custom menu for my theme. The default menu architecture created by wordpress wp_nav_menu() function is made by <ul> <li> tags. But my custom Menu architecture is: <...
0
votes
1answer
94 views

Adding CSS-class to WordPress Menu in backend

I am wondering if its possible to add CSS-classes to WordPress menu in backend. If building complex menus, the overview gets lost - would like to style it a bit. Normally it would be fine to add the ...
0
votes
1answer
117 views

Adding buddypress profile menu items in wordpress primary menu

Is it possible to add buddypress profile menu in primary menu of the wordpress them. If is possible please guide me how can I do this. I also want to remove counts in primary menu only. Thanks
0
votes
1answer
89 views

Check in walker if current page is descendant

I hope this isn't a dup -- I wasn't able to find it! My goal is to, in my custom walker, append the current-menu-ancestor class to a menu item if it's an ancestor (no matter how deep) of the page/...
0
votes
1answer
144 views

Appearance -> Menu -> Menu Structure : Add plain HTML code as an element

I have the following Header Menu: When you look on my wp-admin panel: You can see that the last <li> element containing the images of the german and english flag was not inserted to the ...
0
votes
1answer
23 views

Add a non-dynamic phrase/character after a page title?

I have a client that has an idea to add a coma after the main page title. Sure, this sounds simple to do-but it makes the navigation see 'WELCOME,' as well. Basically I am adding a phrase in the same ...
0
votes
1answer
41 views

Eliminate menu collapse button on website

I have a website I'm working on sandyhookfoundation.com/wp. It loads on desktop browsers with a "menu" button in the top left corner of the main menu. I cant seem to find how to eliminate it. I ...
0
votes
1answer
65 views

wp_nav_menu prints children with parent name

This code echo wp_nav_menu( array( 'theme_location' => 'primary-menu', 'depth' => '2', 'echo' => false ) ); prints Parent - Parent - Parent - Parent instead of: Parent - Child 1 - ...
0
votes
1answer
71 views

Menu Responsive

How do i make my menu bar responsive? The menu doesn't change together with the header when I crop my window to mobile size, leaving an empty space between header image and menu bar or showing menu ...
0
votes
1answer
38 views

Best way to build a 500 item menu

I have a site that needs to have about 500 menu items. It's a sports site that has the following types of items League (NFL, NBA, etc) [ About 8 top level items] Division (NFC East, NFC West, etc) [...
0
votes
1answer
35 views

Use the page picker from wordpress menu creation page

Is it possible to use the page picker from the menu creation page on other pages in admin mode? (This thing: ) I am creation a custom page type that will show specific pages in a list, and to ...
0
votes
1answer
84 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
1answer
89 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
1answer
26 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
1answer
317 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
1answer
64 views

Iterate through each menu item into a shortcode

Since i cant easily use short-codes in the menu, is there a simple way to iterate through all a menus label through a short-code? For example say i created a few custom link menus with labels of home,...
0
votes
1answer
143 views

How to pass menu slug as a variable to wp_nav_menu?

I need to show a menu depending on what user selects on Page Options. I take menu name from a user to a variable and now i need it to parse through wp_nav_menu. Im trying it like this but it doesn`t ...
0
votes
1answer
46 views

How to display custom post type in a submenu?

I am adding a submenu named as "Articles" using add_submenu_page() under a custom menu. I want to display the custom post type="page_article" in this "Articles" submenu. Whenever I click on Articles ...
0
votes
1answer
19 views

Permalinks linking to similar named site

I'm having a problem with the permalinks on a testing site linking to live site. Basically the hosting company set up this separate site for testing so that edits could be made without affecting the ...
0
votes
1answer
225 views

How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?

I'm trying to build a hierarchical directory using custom post types and custom taxonomies as I've described in another question. My problem is that I cannot figure out how to make those posts ...
0
votes
1answer
232 views

If test for “has_nav_menu()” does not return echo when no menu exists

I have a strange issue with my if/else test for "has_nav_menu()" I have three menu locations in the template and each is tested if a menu exist in the defined location. However this example below does ...
0
votes
1answer
168 views

Change header menu login-logout without changing main menu

I'm trying to change the header menu, such that it looks different when it is logged in and logged out, without changing the main menu. function my_wp_nav_menu_args( $args = '' ) { if( ...