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
0answers
7 views

there are two items in two different sub menu when i click on any item from them it redirect to the last item of menu in wp nav menu

I have big menu in this two items which is same and its is ina different sub menu. when i click on any item from them it redirect to the last item of menu. using wp_nav_menu walker... please tell me ...
0
votes
0answers
23 views

Trouble Implementing a Custom WordPress Menu with 4 Levels of Submenus Using `wp_get_nav_menu_items()`

I am creating my first WordPress theme for a client by converting an existing website coded in static HTML, CSS, and JavaScript, using the Underscores theme for the "1000 hour head start". I have run ...
0
votes
0answers
10 views

WP_Nav_Walker extending, need to know count of Sub Menu Items

I have 2 different displays here. 1 for mobile and another for desktop. I need to output different html for both for just 1 menu item (the last 1) in a menu. For example, given the following Menu ...
1
vote
1answer
25 views

Wondering what these multi-colored extra pages are?

I've recently taken over managing the Wordpress site for my non-profit. The person who set it up before me has a lot of plug-ins installed and widgets set up. Additionally, there are these 5 multi-...
0
votes
1answer
22 views

get only the item you click on

I want to save the current items class id, when i click on a menu item. The problem is, that when i click on a submenu item, it will run the jQuery multiple times, because the items classes have the ...
0
votes
1answer
24 views

Output only links using wp_nav_menu()

I have been trying to output only links when using the wp_nav_menu(). This is because I have a predefined ul and li tags for the links. This is what I did: <div class="collapse navbar-collapse" ...
1
vote
0answers
31 views

Getting the current menu item id from specific menu

I'm trying to get the current-menu-item-id in any page. I have used this solution, that brings me very close to the solution. The problem I have is, that the function below is going through all the ...
0
votes
0answers
14 views

Displaying menu outside site with WP API Menu

I'm new to REST API (and JSON in general) and am wondering if there's a way to display a menu from one site (a public facing site) on a private intranet so the client only needs update the menu in one ...
-4
votes
0answers
16 views

Why my Menu hover text color is not showing up on hover?

During creating menu I am facing a problem, which is when I hover hover on the menu it does not show menu text, basically the text color is not being chenged.How Can I do it. Please see the file here. ...
0
votes
0answers
11 views

How to restrict *editing* specific menus to specific roles

I have two roles: Site Publisher and Press Release Publisher. I have two menus: Main Menu and Press Release Menu. Is there a way to make it so that Press Release Publishers can only edit the Press ...
-3
votes
0answers
27 views

saving NAV-MENU triggers “Fatal error: Allowed memory size XXXX exhausted”

in One of my sites, happens unusual things(it didnt happen before) i am unable too change nav-menu. after clicking SAVE, it triggers the error Fatal error: Allowed memory size of 268435456 bytes ...
0
votes
0answers
15 views

How to remember category when using history.back?

I've set up a woocommerce store and ran into the following issue: Example: Tree-Menu-Structure: Products main-cat1 sub-cat1 sub-cat2 main-cat2 sub-cat3 Product 1: Permalink: ../main-cat1/...
0
votes
0answers
8 views

How do i add a post to custom menu?

I am trying to add one of my recent posts to one of my custom menus, i legit just did it but now have forgotten please help. (using mac)
-1
votes
0answers
16 views

Add menu item in middle of menu

I have used following code to add menu item in a menu. add_filter('wp_nav_menu_items', 'add_custom', 10, 2); function add_custom($items, $args) { if ($args->theme_location == 'primary') { $...
0
votes
1answer
22 views

Adding a section in line at the end of the main navigation menu in php

I'm working on a wordpress site where I'm trying to get the "Members" login/logout link & widget area inserted into the actual end of my front-end-nav-menu instead of after, as it's currently ...
-1
votes
1answer
48 views

Update wordpress menu with woocommerce products

For aesthetics purposes, i chose to keep the menu from my theme (twentyfifteen). I have a large catalog of products and i use Woocommerce to keep them into categories and products. Everytime I add a ...
-3
votes
1answer
27 views

Site Broken, how to debug

I have a WP Site : http://kendo.mx It's been a while since I didn't check it, last time it was working. Then, today, it gave me a fatal error, so I had update RevSlider to last version. I also ...
0
votes
0answers
20 views

How do I remove copy of primary menu from footer on mobile?

Using wordpress 4.5.3 with the Twenty Sixteen theme. When viewing my site on mobile the "Primary Menu" appears twice. There is special mobile "Menu" button that displays at the top of my site, ...
1
vote
2answers
29 views

Number of items in a menu

I can't find if WordPress stores the number of items in a menu. Basically I need to find out how many items are in a menu to work out the percentage each item should take up in the header bar. Is ...
0
votes
0answers
14 views

adding sub menu items make the parent menu item non clickable

Here is my menu structure link. And this is my website link http://www.clabiane.net/, you can see that menu is not working as it is supposed to work. The main thing here is that the parent menu item (...
0
votes
1answer
18 views

wp_nav_menu custom walker <a> class

So I'm learning about custom walkers and I've run into a few issues. I've got a custom walker set up. One issue I'm having is figuring out how to add a class to the <a> inside of the start_el ...
0
votes
2answers
34 views

Make a permalink to the most recent blog post

I want to make a permalink to my most recent blog post. I would use this link as a navbar link. The reason I'm not putting code straight into the navbar is because I am using a widget which will not ...
0
votes
1answer
53 views

How to add search to menu?

How to add search to menu? I want to have: add_filter('wp_nav_menu_items','add_search_box_to_menu', 10, 2); function add_search_box_to_menu( $items, $args ) { if( $args->theme_location == '...
0
votes
1answer
14 views

Tag Menu items based on their categories

Suppose I have a site with this menu-structure: food banana carrot apple lettuce where the fruit-items belong to fruit and the vegetables belongs to vegetable. Now ultimately ...
0
votes
1answer
21 views

menu-item class missing on wordpress menu

I have this code in my header.php and its working properly except showing li's without menu-item class, its showing them with page-item instead. this is when i dont have a menu created from admin and ...
0
votes
0answers
12 views

How to move sub menu ul outside of main menu li?

I am struggling to understand how the sub menu of wordpress works. I have set up a menu in the Appearance panel, and I am using bootstrap. When I add a sub menu item, the ul that enclose the sub ...
0
votes
0answers
10 views

Wordpress Menu Integration

I designed a html menu and tried to integration to Wordpress, but couldnt achieve. How i can integrate below html menu for wordpress? <ul class="cf"> <li class="index-collection ...
0
votes
1answer
25 views

Getting URL value from menu item by ID

I want to display a link on the Frontend, but the URL value changes over time. It'd be very easy for me to just change it manually in the Wordpress menu once (it's also displaying there), and then ...
0
votes
0answers
21 views

how to adding css classes when it has 2 level children true wp nav_walker

I need to create a website true bootstrap 2.3.2 ( cause of sub-menus). and it has 3 or 4 level in menus. <div class="nav-collapse collapse"> <ul class="nav go-right"> ...
1
vote
0answers
25 views

Conditional Nav Menu Inside Nav Menu Across Multisite Sites

I am attempting to use the main site menu across a bunch of sub-sites in a WordPress multi-site configuration. The sub-sites use the main site's navigation. However, I want to omit one tree of links ...
0
votes
1answer
19 views

Is it possible to seperate wordpress menu by different div?

I'm looking for a way to display a WordPress menu separating its links into different divs like this: <div class="col-2-4"> <p><a href="">link</a></p> <p>&...
0
votes
0answers
10 views

Register a menu onclick function

I am trying to add this in an abc.php file where add_footer_menu() is a onclick function. This is showing me the "Menu added." but menu is actually not generating. <script type="text/javascript"&...
0
votes
3answers
31 views

How to disable permalink of a particular menu item?

I'm using WordPress Twenty Sixteen theme. Now I've a menu item named Product and it has a sub menu. The product page has a permalink as usual, but I want to remove it i.e., when I click on this menu ...
0
votes
0answers
35 views

Custom_Walker_Nav_Menu is repeating my navigation menu in wordpress

I am converting HTML Template to wordpress theme. I almost convert everything expect my navigation menu. I want exact same navigation menu that is in my HTML Template. I searched a lot on how to ...
0
votes
0answers
11 views

What is the best option to change menus automatically using cookies in a Multisite installation?

I am developing a Portal using the Wordpress Multisite option. I would like to create a portal's homepage with options that direct the user to his country's website (Subdirectory). And i would like ...
1
vote
1answer
67 views

$variable (counter) inside wp nav menu

My WP menu structure looks like this (simplified) <ul> <li class="dashboard menu-item ... menu-item-56"><a href=#link">WP link</a></li> <li class="messages menu-item ....
0
votes
1answer
44 views

Show posts count for Categories and Tags in wp_nav_menu

I'm trying to show WooCommerce Product Categories, Post Categories, Product Tags, Post Tags and Custom Taxonomy posts count in main navigation using wp_nav_menu. My WP_NAV_MENU code &...
0
votes
0answers
29 views

Disable Responsive Mobile Navigation Menu?

With my theme I currently have a 'hamburger menu' that slides in on a desktop screen, but with the responsive design, on a mobile or small screen, there is a dropdown menu instead at the top. (Cherry ...
1
vote
1answer
31 views

Custom Static Links For Specific Menu Right Before/Next The wp_nav_menu Function now working

I am trying to add custom links next/before my built in menu, specifically for main_menu. I have placed this in my functions.php and have given list-items in nav-menu-after.php and also in the before ...
0
votes
1answer
32 views

Child Theme header1.php file not overwriting parent theme's header1.php file

I am trying to add a custom header navigation to a WordPress site using a child theme (I'm using the Alphabet theme). I determined that I am using the header1.php file according to the styling inside ...
0
votes
0answers
20 views

customize exisiting wordpress menu item

For a school project I am trying to manipulate the existing primary menu with a plugin. The result should be: if the plugin is activated, it edits the 'Login' button to be conditional: if something ...
1
vote
2answers
33 views

How to change the wordpress navigation bar UL to OL in Twenty_Twelve similer theme

I'am trying to make a wordpress website accessibility compliant but I have come across a problem with menu bar. It uses a modified them based on Twenty_Twelve. I need to change the "ul" tag to "ol" ...
3
votes
1answer
50 views

Add class to menu ul with active child

I'm trying to add the class is-active to the ul when the ul has an active child. This is because Foundation requires that (i'm using FoundationPress as a base theme) This is the markup i'm after: <...
0
votes
1answer
34 views

Get css class of menu item in custom menu structure

So, I've created custom markup for a menu. The functionality of the menu is built like so... <?php $parent = array(); if (($locations = get_nav_menu_locations()) && isset($locations[...
3
votes
1answer
63 views

Remove nav_menus from customizer using a theme

Is there a way to remove the "Menu's" or in dev language nav_menus from the customizer? I have tried $wp_customize->remove_section('nav_menus'); but that did not work. $wp_customize->...
-1
votes
1answer
26 views

I can't click on top menus [closed]

I have started using Wordpress 5 days ago. First question over here :) I have this website aimygod.pt and the top menu isn't clickable with the left mouse button. The only way I can open the page ...
1
vote
2answers
30 views

Menu Item Location

I found code to show a notification bar on menu and customize it a little. It is working and shown on main menu (primary menu) and footer menu (secondary menu) but I want to show it only main menu. ...
0
votes
0answers
23 views

How to list the menu structure and tag with <li>

I have a menu with sub-items currently set as the Primary Header Navigation. -home (page) -products (category) -stick (post) -stone (post) -about (page) How can I print loop this menu inside ...
0
votes
1answer
32 views

Need to revert to an older version of wordpress

One of my plugins, shiftnav, does not work with the newest version of wordpress I think, how do I revert in order to fix shiftnav? It is currently making "| 500" appear on all of my menu titles
0
votes
1answer
34 views

How to add odd and even classes to all nav links through walker?

I kept finding posts that explain how to add even and odd classes to sub-menu items, but can't seem to find how to add it to the main menu items that do not have sub menus. I've already checked out ...