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
41 views

Item_wrap doesn't work when the menu returns fallback_cb

It seems the item_wrap() function doesn't work when a navigation menu is not created and it returns the fallback_cb (a list of pages). Actually, I just need to add an icon of a searcher to the ...
0
votes
0answers
52 views

Can't add optional class to menu item when using Walker_Nav_Menu

As a wordpress beginner. I'm creating menu also want to customized the <li> tag to be able to assign different class name to control specific behavior through CSS so I use custom walker to get a ...
16
votes
3answers
7k views

Adding an Arbitrary Link to the Admin Menu?

Is there a way to add a arbitrary hyperlink to the WordPress admin menu (I mean the menu on the left when you log into the admin dashboard)? For example, can one add a link to Google? In my ...
-2
votes
1answer
398 views

Is it possible to add a superscript trademark symbol to a menu?

Is it possible to add a superscript trademark symbol to a WordPress menu?
0
votes
1answer
48 views

How to build a navigation menu for long-form texts like this one

A menu like this one here (on the right–hand side) – http://tenxer.github.io/xcharts/docs/ – makes it much easier to navigate through long-form texts. Do you know of a way of implementing something ...
0
votes
1answer
76 views

Call posts of particular category in a page

As per my requirement I need to call posts in a page for example Iam having a menu item Current Tenders and having a posts category Current Tenders now I need lo display posts related to current ...
0
votes
1answer
17 views

Creating other page than page.php

I want to load other page than page.php. I mean following situation: Always when I click position from menu it is starting page.php. I want to special position in menu sutch that it load my.php (which ...
0
votes
1answer
280 views

If current menu item is child or parent with child?

Is it possible to check in WP if the current page/menu item is a child or a parent with child (in my wp_nav_menu)? So not if the page has a child page, but if the menu item is a parent with child or a ...
0
votes
1answer
119 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
0
votes
1answer
99 views

Add custom class to existing menu items from custom meta

I would like to add a custom class to my existing menu items. The problem is, that I would like to do something like this: <li class="<?php echo get_post_meta($post->ID, "_icon", true); ...
0
votes
4answers
933 views

How to add active state to the navigation links?

I am trying to add active states for my custom menu navigation, but so far everything I try is just not working. I have set the navigation menu in a separate file nav.php, then I included the nav.php ...
0
votes
1answer
79 views

Nav-Menu not showing up

I would love for somebody to please help me because somewhere I am really miss understanding what WordPress is telling me. Alright so within my header.php I have the following code. <div ...
0
votes
1answer
28 views

Is it possible to dynamically register menus?

I have a template, lets call it menu.php, which contains a menu. I would like the user to set the menu on this page by using WordPress's own menus, so I don't have to create something custom for it. ...
0
votes
1answer
129 views

Get current post's nav menu name (term name)

I want to get the nav menu name by the current post ID. After hours searching in my database I found out that navigation menus are basically just terms of the taxonomy 'nav_menu'. But for some reason ...
0
votes
0answers
103 views

Show Sub-Menu when main menu is hovered over

I am trying to make a sub-menu show when the main menu is hovered over. What I did is made both menus show on all pages, then added this CSS: Note: walking-menu is the sub menu, main-nav is the main ...
3
votes
1answer
779 views

Walker_Nav_Menu exeption

I'm currently working on a WordPress site and whenever in the admin I go the Appearance > Menus page I get the following error: ErrorException: Runtime Notice: Declaration of ...
5
votes
5answers
11k views

Add Class to Specific Link in Custom Menu

I know you can add a class in the custom menu options, but it adds it to the LI before the A. I want to apply the class directly to this specific A rather then the whole LI. So instead of the output ...
1
vote
1answer
219 views

Calling the Menu Title within wp_nav_menu array function

Been struggling with this for a little while. I want to call a menu but include the title of the menu above the menu list. The basic code I have is as follows - <?php wp_nav_menu( array( ...
3
votes
3answers
4k 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
117 views

How to select single category in menu if post have two categories?

My website's post have one, two, three etc categories depends on articles. My menu is made of categories. when i select post (open whole article) it shows post category in menu. Problem : when i ...
0
votes
3answers
89 views

Can we have a php “page” without a WordPress “page”?

Somewhere off of the homepage we need to show a container page which does some stuff with custom post types. Actually it doesn't matter what it does, my point is it needs to exist and be reachable ...
1
vote
1answer
121 views

echo same menu items across multi-site platform

I am trying to echo main theme's menu items across the headers of other sites in a WP multi-site environment and was wondering what is the proper way of doing this. I tried iframe which works but ...
0
votes
2answers
74 views

Menu Button that link to different pages for unique user?

Is there a way to create an menu button that link to different pages to each unique user? So far I have used the plugs-in: User Specific Content, Peter's Login Redirect and Them my Login. Basically, ...
1
vote
1answer
55 views

Correct classes for WordPress menu items

I have been trying to get the current menu item to my custom post types. I cannot get it to work, and when looking at my menu, I am wondering, that if everything is allright. Which are the correct ...
0
votes
0answers
104 views

add current-menu-item to multiple custom post types

I have two custom post types, and I have trouble adding the current-menu-item to both. In my functions.php I have following code: function additional_active_item_classes($classes = array(), ...
0
votes
0answers
120 views

Add custom menu link to Parent drop menu (Page Attributes)

if it possible to add custom menu link to parent drop menu in page? i am using custom menu link as parent item in menu (without really link). i have create this link using: Appearance -> Menus -> my ...
1
vote
1answer
373 views

How to add wechat (weixin) link to navigation menu?

The profile link of WeChat (or Weixin) has the following format: weixin://contacts/profile/username As you can see, it doesn't use http:// and that seems to be the reason that it cannot be added to ...
1
vote
0answers
342 views

WP custom nav menu problem

I've got a problem with a piece of code from a previous developer's website. He appears to have created a custom nav menu using the code from these sources: source source2 Now the code works fine ...
0
votes
1answer
25 views

menu is only pulling in one item

I have an issue where wordpress is only pulling in one menu item on a client's website... it was pulling them all in just fine until recently, so I'm not sure what changed. This is how the menu was ...
0
votes
1answer
312 views

Custom Menu Anchor Links Not Working

I've got anchor links in the nav menu of my site, and I can't get them to work properly. The site keeps prepending the siteurl before the anchor link. With the #rsvp anchor link, I've tried using the ...
0
votes
0answers
301 views

Wordpress add menu to page content using editor

I can manage custom menus in Appearance -> Menus Then, I can add any of these custom menus to the page content by inserting a shortcode like this in the editor: [menu name="Menu1"] Question: How ...
0
votes
1answer
121 views

Primery Menu Configuration problem

I am writing below code. $values = array( 'theme_location' => 'primary', 'menu' => 'efgh', 'container' => 'div', 'container_class' => 'xyz', ...
0
votes
1answer
62 views

Change “login/register” to “useraccount” when a user has logged in

I made a menu-button on my site's first page that show "login/register". I want to change its name from "login/register" to "user account" when a user has logged in. I tried changing codes in ...
0
votes
2answers
114 views

add taxonomy as one of menu items

I have created a custom Taxonomy called Documents and I want to show it as one of menu items, I am only able to choose from its posts. How shall I do that? As below picture I am not able to choose ...
0
votes
1answer
102 views

Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs

I'm trying to build a sidebar menu displaying child pages of a grandparent page, his siblings and their childs, and keep those siblings and childs available while navigating through them. I've been ...
0
votes
3answers
608 views

How to Structure Pages and Subpages

I'm trying to create a church site using WordPress. The following is a small sample of the page structure I'm trying to create: About Staff Statement of Faith Contact Ministries Furnace Prayer ...
0
votes
2answers
37 views

Question regarding register_nav_menus();

I got below code in TwentyFourteen theme's function.php file. register_nav_menus( array( 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 'secondary' => __( 'Secondary ...
0
votes
1answer
79 views

Installing compact search in the main menu?

Please tell me how to install compact Search in the main menu WordPress, just as is done in the themes: Avada, Vantage, Twenty Fourteen. Or plugin UberMenu. In the themes Avada I like most. Site made ...
0
votes
1answer
65 views

Show Wordpress Menu On External Site

So I have been working on a site using the theme Vantage and I am wanting to take the menu from the site and embed in another site in a subdirectory below, I have searched all over the internet trying ...
2
votes
0answers
168 views

How to add ID and class in nav menu walker?

I would like to set up a custom walker that produces the following output: <div id="navbarHolder"> <div id="navbar"> <ul> <li><a id="nav_about" ...
0
votes
1answer
93 views

How to Sync Menu, Widgets and other masters from Main Website to its Sub Site

I am using Wordpress Multisite Network and i am having problems regarding masters to its subsite. I am not able to see the widgets or Menus which were created on Main website to its Sub-site. When i ...
0
votes
1answer
40 views

Hide category links if there is nothing in the categories - Main Navigation submenu item

In my main navigation menu I have category links that are sub menu items: Example: Main Navigation: Listings Sub menu category items: Boating, Camping, Fishing So basically if there is no listing ...
0
votes
2answers
53 views

Show number of articles in menu

I want to display a number of articles in a certain category which is hooked to a menu item. It should look like Bootstrap's "badge" component. Now I've got: and what I want to achieve: Do I ...
3
votes
1answer
97 views

Walker class: Problems with understanding how walk() method can be called without error

I am struggling with understanding how WordPress uses the Walker class. In particular, I don't understand the walk() method (I think). First, let me explain what I understood: When calling ...
0
votes
0answers
34 views

Main menu not changing to responsive menu on time in wordpress twenty fourteen

Main menu not changing to responsive menu and menu items create a double menu from 936 screen size to 782 ... id like the menu to become fully responsive on time Can anyone help on this issue? ...
0
votes
1answer
704 views

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

I'm using Foundation as a base and starter theme. I'm trying to build and I can't seem to figure out how to hook into the menu that WordPress outputs and add a custom attribute to that menu's ...
1
vote
0answers
76 views

Custom Menu's - Disable Link checkbox

I've been trying to write a plugin that adds a checkbox (below the "Open in New Window/Tab" checkbox) to the Custom Menu pages/links. I've been able to add the Checkbox and change the ...
0
votes
1answer
168 views

How does the Walker class works?

Can someone explain me how the walker class works and does the methods inside the class always needs to overload the parent method?
0
votes
1answer
22 views

How can I add a class to a nav menu when I'm viewing a child page?

I'm using bootstrap in my theme, so I have a requirement that I add a class of active to the current nav menu item. I was able to achieve this by using the nav_menu_css_class filter ...
1
vote
1answer
316 views

How to drag multiple menu items at once in WordPress?

Say, I added 8 items to a menu. Now I want to bring all the 8 items under another item. Dragging them one by one can take ages. How do I drag them all at once?