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

Need help to build a menu with WP_NAV_MENU function

I have a markup where using table tag for menu creation. This is quite simple but noticed when multiple submenu exist then structure is changed. In this case i don't get any appropriate way to build ...
0
votes
1answer
26 views

Different colors for navigation bar

I am facing this particular problem: How can I change the color of the navigation bar once the user clicks to one particular menu?, i.e., (I make click on the menu "Contact" and the navigation bar ...
0
votes
1answer
59 views

Editing/Removing Secondary Menu from Divi

I'm using Divi by ET. I created a custom plugin with the following code to enable separate menus for logged-in and logged-out users. function my_wp_nav_menu_args( Array $args = [] ) { if ( ...
0
votes
0answers
20 views

Dynamic admin submenu

I'm creating a plugin for WordPress with dynamic sub-menu's fetched from the server. Putting the dynamic loading of sub-menu's into the menu_setup() hook function would slow down other WordPress ...
0
votes
0answers
20 views

Adding images in WordPress menu

My client wants featured image, price and description to show up when anyone hovers the menu like item. How can I do this?
0
votes
0answers
19 views

How to add a 2nd Top Level Menu bar at my Blog/website?

I want to add a 2nd Top level menu bar at my blog TechBemaers.com There is already a primary top level menu in the Blog which I want to keep only to display option for Home page, About, contact info ...
0
votes
0answers
15 views

How to add code to a top-level menu

I found a custom Nav Walker that is used to modify the wp_nav_menu() function and display a sub-navigation. Everything works as expected but the only issue is that it adds an additional The sample ...
0
votes
0answers
15 views

Menu distorted on browsing or logged in

I have no idea what is going on but when site goes live (any domain pointed to the server) menu is getting distorted (part of submenus became parent menus). All is working fine on a local development ...
0
votes
0answers
22 views

Global Navigation for Multi-site Sub-sites Using jQuery

I'm looking to add the main site's main menu to the top of all sub-sites on a multi-site install. Requirements The menu should appear directly after body, above any site content, independent of ...
0
votes
0answers
20 views

How to link other page?

I build menu in admin name is "Members". This is code file User.php <?php function User_add_menu(){ add_menu_page( 'User Members', 'Members', 'manage_options', 'user-members', ...
2
votes
1answer
35 views

Outside the loop, how can I echo the current page's menu title?

I have no idea why I'm finding this so hard. I've gone through many similar posts here, but none are working. I am building a menu outside of the loop on my index page - it a standard posts page, not ...
0
votes
0answers
27 views

Different wordpress menu showing in frontpage and blog page

When I select "Your latest posts" from "Front page displays" I want to show a custom menu which will show in blog,single,page and archive page. But when I select a static front page than it will show ...
0
votes
0answers
28 views

Add default wp_nav_menu classes to my custom links

I'm adding custom menu items with wp_nav_menu_items filter. The structure is very simple, some "li"s with "a" inside. The point is, is there a way to have wordpress defaults menu calsses (like ...
0
votes
0answers
5 views

Have pre defined menus when developing a theme

I am trying to develop a theme with customizable menus, like a header with menu options and footer with menu options. In my theme menu page right now, in "Select a menu to edit" there are only 2 ...
0
votes
0answers
21 views

Clickable parent menu links to actual page

I am trying to optimize my website for SEO and I have one problem, which I can't deal with: in menu there is an "Offer" item which is clickable and after clicking it it shows submenu. The problem is ...
0
votes
0answers
9 views

How to add checkbox in navmenu at frontend?

I have a query and want the solution for that. Can I add some checkbox in nav menu in frontend so can I perfome some ajax filter. Like this if yes then please show me the right way to do this.
0
votes
1answer
30 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 ...
0
votes
1answer
25 views

Use dashicons in menu items?

I tried to add dashicons to my menu items but once I save the menu, the whole item doesn't appear on my site. I tried with: <span class="dashicons dashicons-arrow-down"></span> Is ...
0
votes
0answers
32 views

Adding two same css class on menu item

I saw something strange on Wordpress. I explain; I created a menu, added some pages to it. I added a css class to one of the page item, I saved, no problem. Then I added the same css class name to ...
0
votes
4answers
74 views

How can I use archive-{post_type}.php theme template?

I've got a staff_member custom post type, with 'has_archive' => true. I've got an archive-staff_member.php template, with /* Template Name: Staff */ In backoffice, to add it to the nav menu, I ...
0
votes
0answers
9 views

Menu collapses but doesn't expand when clicked on

I'm working on a website at sandyhookfoundation.com/wp/. When i minimize the browser window, the main menu collapses properly, but does not expand when clicked on. Also, can't get rid of the "menu" ...
0
votes
1answer
49 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
0answers
26 views

Mess after wordpress update

My website is quite messed up after updating it to version 4.2.2. The menu isn't in line anymore and there are only three items left and the footer is gone. What can I do? (www.elternkindbuero.at) ...
0
votes
1answer
21 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 ...
1
vote
0answers
71 views

Dashboard left hand menu overlapping next item down

Stuck with this one and wondered if someone could point me in the right direction... we updated one of our wordpress sites a couple of weeks ago and only revisited it today and noticed that the ...
0
votes
0answers
36 views

add class to specific menu item

I have an onepage template. Menu has Home, Services, Blog, Contact etc and working with <div id="blog">. If someone clicks menu item "Blog" goes to domain.com/#blog. If click on blog title goes ...
0
votes
0answers
27 views

Get custom navigation title using page id

function get_custom_nav_title( $menu_name, $page_id ) { $args = array( 'order' => 'ASC', 'orderby' => 'menu_order', 'post_type' ...
0
votes
1answer
31 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
0answers
12 views

Conditional Menu based on Input

I need to make a link in my menu conditional based on a text input from the user. It will resemble the pay rent tab on this site: http://crestmanor.com/ And depending on what number you enter, it ...
2
votes
1answer
37 views

How do I create an archive page for standard posts?

I've been tasked with creating a portfolio website for a client who also wants a blog. What I've Done Thus Far: I’ve created a custom post type to separate the portfolio work from the blog posts and ...
0
votes
0answers
34 views

dynamic menu parent and child category

I'm trying to create a dynamic menu listing all my category and subcategory.. from that im having 2 problems: first one: it display only the category and subcategory being populated by some post, iw ...
0
votes
1answer
27 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
0answers
12 views

whats the best practice to make specific links accessible in theme?

I have a bunch of links I need to reference in my custom theme. Since it should be flexible and the page is also translated (using WPML) hard-coded links are not an option. Right now I use registered ...
0
votes
0answers
16 views

Backend Sidebar Add Another Post Menu

Once logged into WordPress, looking at the sidebar menu. How can I make another Post Page Menu with a different name? Then make my own posts under that new Post page. If Pages are pages, and Menus ...
0
votes
0answers
22 views

Add a new dynamic submenu to an existing menu trough a hook

I have created a function which binds to a shortcode, for inserting a language switcher in the form of a dropdown menu. Now I don't want this menu inserted trough shortcode, but instead i want to ...
1
vote
0answers
26 views

getting the current sub item out of total sub items in a given dropdown (custom walker)

i would like the possibility to append a text(denoted in square brackets) to each sub-item in the menu like so: Parent 1: sub-item [sub item 1 of 5] sub-item [sub item 2 of 5] sub-item [sub item 3 ...
1
vote
0answers
26 views

Automatically Add New Tags to Sub-menu

Been searching for any related plugins or info. about this case but didn't find anything relevant or working. I need every new tag that is added to a post automatically appear in a menu as a sub-menu ...
1
vote
1answer
22 views

Programmatically (PHP) get the nr. of items in the primary navigation menu

I need to get the nr. of items in the primary navigation menu. I need this to determine the width in percentage of each list item. So I also need to change/add to the css width attribute of the list ...
0
votes
0answers
37 views

upload custom field in nav menu

I want to add image uploader for each menu element in appearance menu i have created a new walker class Walker_Nav_Menu_Edit_Custom extends Walker_Nav_Menu {} can't paste the walker here beacuse ...
0
votes
1answer
27 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
20 views

Link to Homepage in Menu

I am using the mh-newsdesk-lite wordpress theme in one of my client's websites and I'd like to have a link to the homepage in the menu. It ideally would be accomplished without php, or without any ...
0
votes
1answer
31 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
0answers
50 views

Portfolio filtering menus script in Wordpress and JQuery

This is the page: scharc.com/en/projects Let's say I select the Department, then the Field of Expertise and finally a Location, for example. Right now deselecting the Location doesn't free any ...
0
votes
1answer
18 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
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
35 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
23 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
32 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
10 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
0answers
51 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') ); ...