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

Pagination breaks custom sub menu

I've got the following class which allows me to make a specific sub menu. class Custom_Walker_Nav_Sub_Menu extends Walker_Nav_Menu { var $found_parents = array(); function start_el(&$output, ...
2
votes
0answers
8 views

List children of second level sub page

Top Level Page - Second Level Page --- Child Page --- Child Page --- Child Page The goal here is to list all children of second level, I have that done from the codex. However, when I click ...
0
votes
0answers
15 views

Highlight specific menu item when custom post is page

I know that this question was asked many times, but I did not find a really good solution for my problem: I have a custom post type "event" with some categories like "lecture". For each category, I ...
-2
votes
0answers
25 views

Would this structure be possible in wordpress? [on hold]

A site with 4 different locations, for example: London Cambridge Manchester Briton Once the user click on any of them, a new menu will appear: Cars Tvs Trains Ships So if I click in first in ...
0
votes
0answers
10 views

Wordpress mega menu walker

I need make a mega menu walker with these structure: <li><a href="#" title="" class="active">Sākums</a></li> <li class="dropdown"> <a href="#" title="" ...
0
votes
0answers
31 views

How do you add content to a WordPress sub-menu dependant in its parent?

What I'm wanting to achieve is this: A submenu with content showcasing 1 product from each category after the links In the submenu. I am trying to use the WordPress nav walker to add the content ...
0
votes
0answers
9 views

How do can I pass data retrieved from a filter to template files?

I wrote this class to display only the current top level menu item's children: class deseng_navSplit { var $sorted_menu_items; var $args; function __construct($x, $y) { ...
0
votes
0answers
15 views

How can I automatically add a taxonomy to my navigation?

So I have a navigation of custom taxonomies that I have added through Appearance > Menus Navigation: HOME | NISSAN | HONDA | TOYOTA | MORE Now all of those are custom taxonomies of "Types" that ...
0
votes
1answer
29 views
+50

Same menu for different taxonomies to reach different content

I'm using a "location" taxonomy to show the same website for 4 different locations. Each of them will have the same categories which I want to display in a menu. Is there anyway to create the same ...
0
votes
1answer
11 views

Two menus show up

If I set 'echo' parameters value to 'true': <?php if( has_nav_menu( 'primary-menu' ) ) { wp_nav_menu( $menuParameters = array( 'theme_location' => ...
0
votes
1answer
12 views

Multiple categories for one menu item?

I have six categories: Seasons Categories: Spring Summer Fall Winter Collections Categories: Formal Wear Night Wear Ready to Wear Sports Wear I need to put them up in the navbar custom menu ...
0
votes
0answers
16 views

How to add a custom HTML attribute to a parent element of wp_nav_menu?

I am using wp_nav_menu and I want to add a custom attribute that I need for uikit drop down component (data-uk-dropdown attribute) This is how the HTML should look like: <ul class="uk-navbar-nav ...
-1
votes
0answers
8 views

How to create menu in parallax wordpress theme? [closed]

Can anybody clearly give me some idea how to create menu in parallax theme for wordpress?I want to add menu not using the # tag and page title or slug.
0
votes
0answers
18 views

Bootstrap menu dropdown issues [closed]

Hi I need to find a solution for a problem that I have with bootstrap menu. I'm using wp_bootstrap_navwalker in my WP theme, and I found some solutions on the web to enable more deeper nav, but cant ...
0
votes
0answers
8 views

Create a menu with Language link

I created a menu in the appearance area with links to the languages i want, but if i'm in the "About" page and click in some language it goes back to the homepage, is it possible to create a menu and ...
0
votes
0answers
16 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
8 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 ...
1
vote
1answer
20 views

Trying to store submenu items to render out after main menu

I'm using a custom nav walker to render out the main menu, during this I want to store the second level navigation items to use/ render out later in a separate area of the page. I want these second ...
0
votes
0answers
7 views

Why don't my dropdown menues in the widget look the same? [closed]

I am trying in vain to format my widget so that the dropdown menues look the same. Both of them should be 100% width. What in the world is the reason that they don't do it? I want "select country" to ...
0
votes
0answers
16 views

How to get category id's which are added in main menu?

I called post categories in my main menu using menu section and set them as child menu items now when I click that category menu items I need to make parent menu item active.I know doing this with ...
0
votes
1answer
25 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
21 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
18 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
27 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
1answer
22 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
14 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
4answers
71 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
13 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
29 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
16 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 ...
1
vote
1answer
28 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( ...
0
votes
1answer
48 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 ...
1
vote
1answer
29 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
3answers
70 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 ...
0
votes
2answers
26 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
34 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
47 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
21 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
49 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 ...
0
votes
0answers
61 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
21 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
26 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
30 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
30 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
1answer
42 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
1answer
25 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
45 views

Primery Menu Configuration problem

I am writing below code. $values = array( 'theme_location' => 'primary', 'menu' => 'efgh', 'container' => 'div', 'container_class' => 'xyz', ...
0
votes
2answers
20 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
27 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 ...