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

Get page slug/id from position in menu

I have created a menu area(?) for use in my theme. The pages have been added to the menu in a consistent order via Appearance -> Menus This menu structure is used in multiple deployments, but ...
0
votes
0answers
12 views

CSS won't style output of wp_nav_menu() correctly

I'm tyring to create a theme with a horizontal menu that is dynamically streched to fill the container element. I use wp_nav_menu() to fetch a menu from the backend and style it via CSS. Here some ...
0
votes
0answers
4 views

Parent menu not active anymore after page url rename

I updated some of my page urls and now the parent menu item is not active any more when I'm on a child page. Why's that? Do I need to refresh something?
0
votes
0answers
17 views

Making hamburger clickable to open a menu

How can i make my menu like a hamburger menu,(i think that is what they call it). I have a menu, but there is no option to trigger it to dropdown? <nav class="navbar navbar-default ...
0
votes
0answers
10 views

remove current page from url in main menu

I am trying to develop a theme for my company. The website is a one-page-website although it has 3 seperate pages for disclaimer etc. The problem I'm facing is as follows. The main menu has url's ...
0
votes
0answers
5 views

wp_nav_menu highlight all parent categories

I have been trying to debug this problem and have been hard time finding a solution. My menu has been created with categories.I have few posts assigned multiple categories. When I go to that ...
0
votes
0answers
11 views

Selective menu is possible?

Is it possible to make selective category or page menu? For example category is Electronics and Sub Categories are ipod, ipad, iphone With regular menus you can choose either whole category ...
0
votes
0answers
20 views

Problem creating menu shortcodes

I'm trying to setup three shortcodes, each to display its own unique menu block. Just two are shown in the code below because I ran into an issue. The problem I am having is that both [footera] and ...
0
votes
0answers
14 views

Menu widget not showing on search.php page via get_header(); function

I have the following code in the header.php file which renders the main menu: <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Main Menu')) : else : ?> ...
0
votes
0answers
11 views

How to separate website pages from the home page and make custom?

I have installed a theme on my wordpress and published some new links to my navigation. Until now i have my main "home page" customized and i want to costomize the next page "our products". But all my ...
0
votes
0answers
24 views

How to style wp_nav_menu?

I am trying to style WP menu but i get some issues. This is the orginal menu and not a custom one. (css is already done and working). What I want is this: <div class="collapse ...
0
votes
0answers
23 views

How to create a “menu item” on the theme customize screen?

My question is, how do I create a menu item as seen below but on the theme's menu customize page? "Theme Menu Options" Show's up here, But it does not show up here, Here is the code I used to ...
0
votes
0answers
32 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
0answers
13 views

How to inject HTML to secondary menu on front end?

So I have a main menu and secondary menu on my site. I need to add html for my 'live chat' icon and I want to add this to my secondary menu. However, it is not a basic link and contains JavaScript and ...
0
votes
0answers
15 views

How to call the post thumbnails in a list of recent post in wp nav menu?

Thanks to Stack I found a code which allow to list recents posts of each of my categories into my wp nav menu. The code looks like this : // Front end only, don't hack on the settings page if ( ...
0
votes
0answers
15 views

How to add number of post to category menu items

I wanted to know how we can add number of posts for dropdown menu items that are categories. For example: Topics Category 1 (5) Category 2 (8) Category 3 (2) More Topics Category 1 (5) ...
0
votes
0answers
19 views

Admin dashboard and admin top bar not showing

First off I am very new to making WP plugins...as a matter of fact I am working on my first plugin so please excuse me if this may sound so novice. I just can't get this to work. There are some ...
0
votes
0answers
29 views

Adding a menu item for a Custom Post Archive

I've created a Custom Post type (project) and it works perfectly. I have a custom archive page (archive-project.php), and that works great, too, but what's the best way to add a link to that custom ...
0
votes
0answers
18 views

“Project” post type to “Page”

I need the user to go to a Page when he clicks on the menu that is managed in "Projects" section (backend). Situation I have a kind of a menu managed in "Projects" section (backend), made with ...
0
votes
0answers
7 views

How to set page to be a parent of a custom post?

This question is regarding the navigation menu (wp_nav_menu). The nav menu has two classes that depicts the current page: .current_page_parent, .current_page_item. This works great for both Blog and ...
0
votes
0answers
18 views

Getting an array of parent menu links and titles and all children links and titles

I am developing a theme with wordpress and trying to develop a sidebar that changes based on the users menu selection. So if a user clicks on the 'Fruits' link on the menu and it has children menu ...
0
votes
0answers
16 views

Custom link menu including Javascript AND “if session”

I have menu links (such as this one below) which I need to implement in my WordPress menu and don't know how : <a href="javascript:void(0)" ...
0
votes
0answers
28 views

wp_is_mobile() inside js

I've stumbled upon a issue that i can't fix. I've implemented a autocollapse menu ..all works fine UNTILL i go to mobile version where the wp core's menu bugs out with my menu js code. Basicly i ...
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
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', ...
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
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
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
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
0answers
35 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
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 ...
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
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 ...
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
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
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
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.) ...