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
1answer
8 views

wp_nav_menu (secondary menu) not adding current classes

I've looked everywhere, but i can't find a solution. My secondary menu isn't adding any current classes when it's rendered. I have added this menu in my functions.php file function ...
0
votes
0answers
5 views

Custom nav walker error [duplicate]

I'm using wordpress 3.9 locally to develop a new theme for my website, however I am getting these errors when trying to use a custom nav walker function: Strict Standards: Declaration of ...
0
votes
0answers
11 views

Navigation Menu to Sidebar [on hold]

I'm using a theme that, when used on a mobile device or a small screen, converts the navigation bar at the top to a dropdown menu. However, I'd much rather it be a push menu like the one Facebook ...
0
votes
1answer
15 views

How to change page location in Wordpress

I want to change my page location (link address). My blog page location is: http://localhost/wordpress/?page_id=1336. I want to change blog page location http://localhost/wordpress/?page_id=1336 ...
0
votes
0answers
9 views

Getting post content within wp_nav_walker

I have a custom walker set up designed to add content into the nav menu. The problem being that it is not pulling the content. The post object returned by the get_post/get_page has an empty ...
-2
votes
1answer
14 views

How can I added the post's Categories to the site's top menu (like a page)?

Instead of adding pages to the top menu, is there a way to add a dropdown menu with all the categories, or adding individual categories to the top navigation menu? I am using WP 3.9 with Shaken Grid ...
0
votes
0answers
29 views

Get child taxonomies in loop

Here is the structure of taxonomies what I want to display: Here is my HTML code loop: <li> <a>TAXONMOY 1</a> <div class="dropdownContainer"> <div ...
0
votes
0answers
14 views

Menu Multiple Taxonomies

I have a post_type "products" which has both "Category" and "Brand" taxonomies. Each product has exactly 1 Category, and exactly 1 Brand. I would like to display a menu which first lists the ...
0
votes
0answers
9 views

Using background images to replace text link in a menu [on hold]

I'm using a background image to replace menu items' text on my website. I'm using wp_nav_menu: <?php wp_nav_menu( $args ); ?> It works fine when using text, but then I added some background ...
0
votes
0answers
9 views

Adding new menu items with wp_nav_menu_items

I am trying to add menu items dynamically using the wp_nav_menu_items filter. What I am doing is working fine on two of my menus but I cannot make it work for the third. Code to register the menus: ...
0
votes
1answer
25 views

how to add a div inside wp_page_menu

Right now I'm using the <?php wp_page_menu('menu_class=nav'); ?> function, which gives this result: <div class="nav"> <ul> <li class="page_item ...
0
votes
2answers
18 views

Add # to submenu URLs automatically

I'm trying to replace all my child page URLs to include a # automatically example: http://www.website.com/parentfoo/#childfoo I tried using wp_setup_nav_menu_item to run through all the child menu ...
1
vote
1answer
14 views

Is it possible to add a filter for the output of nav-menu items in admin?

I want to remove certain input fields on the admin screen for nav-menus for specific menu positions. I've used filters to filter front-end output but not for admin output. Is there a filter available ...
0
votes
0answers
8 views

Unclickable parent page makes subpage not showing vertical menu wordpress [on hold]

I've created one menu and wants it to be shown as both horisontal and vertical. There is a parent page I don't want to clickable, only show the subpages. That is fixed by removing the url in link to ...
0
votes
0answers
25 views

Open first link in subnavigation when clicking top navigation

For example: I got a menu item called Food which has 2 subnavigation items, pizza and pasta. I want it to be, that if you click on food, that it automatically links to pizza (the first subnavigation ...
1
vote
0answers
13 views

Get top items number from wordpress menu

I've made a menu in Wordpress backend with 3 levels depth. (4 main tabs with 2 sub level items) I would like to know how I can get the number of tabs created automaticly and add this number to a ...
0
votes
0answers
10 views

Override edit_custom_walker.php to conditionally show input depending on menu position

I've created custom inputs for WordPress nav-menus admin page. I've used a similar technique as is shown in this answer - by duplicating edit_custom_walker.php and adding my own fields. My custom ...
6
votes
2answers
62 views

Filter wp_nav_menu()

I try to split my navigation into 3 single navigation bars (level 1, level 2 and level3+). Three because they're separated over the site and they should only appear depending on the current page. ...
0
votes
0answers
23 views

What's the policy for building a theme that doesn't support widgets/menus?

I'm developing a minimalistic theme, and my plan is not to include menus or widgets in it. The Theme Review page on wordpress.org states: Whether implementing required, recommended, or optional ...
1
vote
1answer
21 views

Menu styling for last menu item

okay so I'm using the following code to get my links... <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'mainnav') ); ?> This is my CSS for ...
1
vote
0answers
10 views

How to make theme elements customizable in wordpress?

In Wordpress there's a menu option called 'Appeareances'. I want to add (e.g.) a submenu 'header' there and then be able to customize the header from within wordpress (administration page). From what ...
0
votes
1answer
36 views

“Current” class on a singular page menu item with custom post types?

I'm struggling to get a "current" class for the corresponding menu item when I'm on a singular (child) page of a custom post type. These are the arguments I used when registering the post type with ...
0
votes
1answer
12 views

Showing home button in a specified menu

I try to add the home button in a specified WordPress menu (I have 2) and it's not working at all. This is my code: <?php wp_nav_menu(array('theme_location' => 'primary', 'show_home' => ...
-1
votes
0answers
24 views

Custom Menu's don't register when in widgets

I'm hoping someone can point me in the right direction. The site I'm working on has multiple custom menus created that I'm trying to add onclick functionality to. I went ahead and installed the ...
0
votes
0answers
15 views

Get Next/Previous (Sibling) Top Level Parent Page Id - Wordpress

Question: Is there any possibility to get next/previous page id in wp_nav_menu in wordpress. Example: I have navigation menu like this Menu_Item_1 (ID = 5) >SubMenu_Item_1-1 ...
0
votes
1answer
36 views

Drop Down menu expanded by default (on front page) [closed]

For this site users seem to have difficulty finding the site's content that is accessible through the 'Data' drop down menu on the top left. To improve this I would like to have this drop down menu ...
1
vote
2answers
44 views

Custom Menu Broken WP 3.8.1 Update

Custom menu has stopped working since upgrading to 3.8.1. When trying to add items from the left they do not show up as movable items as they should do under Menu 1, however the text changes to: "Drag ...
1
vote
0answers
20 views

How to show dynamic side bar on menu item

I want to show dynamic sidebar content on menu item (within <li></li> tag) but unfortunately sidebar content show top of <nav></nav> tag, i mean top of the menu and where i ...
1
vote
0answers
23 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
0
votes
1answer
22 views

Customize Walker_nav_menu to show posts if item is category

I would like to customize the nav menu walker so that when it encounters a category it automatically makes the 5 most resent posts children of the menu item. Is there a way to dynamically add items ...
1
vote
0answers
45 views

Hardcoding links to wp_nav_menu

I am currently trying to add a some links to the end of my wp_nav_menu but am having a hard time with the callback function that creates the list of languages I want to insert. The first function is ...
1
vote
2answers
46 views

A page that shows a list of a specific custom post type

I've created a custom post type called 'product'. I want to add a page link to 'products' in the menu, but I don't have that option. I would like to know if there is a way of displaying it the same ...
0
votes
0answers
19 views

wp_nav_menu() reutrns HTTPS?

We have SSL for our domain. But there's only one page want to use SSL to appear on (https://mydomain.com/secure-page/). All others should be regular http:// pages. So we've set siturl and homeurl both ...
1
vote
1answer
27 views

Unable to center menu and header image twenty twelve

I have a really simple site at cyriljoyce.com on the 2012 theme I created a child theme to center the header and menu bar but just cannot seem to make it work. The child theme text is below The line ...
-1
votes
0answers
17 views

How do i make a tab menu consisting of sidebars or widget areas NOT just widgets

or alternatively a tab menu where each item is a display of more than one widget, I was wondering how i should go about achieving this effect with wordpress, i currently have a number of ...
-1
votes
1answer
26 views

Unsual behaviour of navigation Menus

I deleted all the previous menus which where there in my site. Then I created a new menu called Home and added few pages to it So my menu looks like this Problem : When I click on About us and other ...
0
votes
1answer
30 views

Auto add pages to primary menu with functions.php

Is it possible to have new pages automatically added to the primary menu via functions.php? This particular theme will be deployed on a special version of multisite, so the checkbox which is ...
0
votes
0answers
24 views

How can I hide any submenu item from dashboard menu but still have access to it from direct url

I just want to hide a page but I want to access it by directly entering its url. But I am unable to access that page after remove_submenu_page() function. I get this error: You do not have sufficient ...
0
votes
1answer
24 views

How to add a element with walker menu right after begin of the navigation tags?

I was trying to add a element right after begin of the navigation tags and before the ul will start. So add a element directly after opening nav tag. I tried this, but this will add a list item after ...
1
vote
1answer
42 views

Sticky Header in Wordpress using BootstrapWP theme [closed]

So I am using Rachel Baker's open source BootstrapWP starter theme to develop a Wordpress theme. There is a repository on Github but I didn't think this question was appropriate to post there. I am ...
0
votes
1answer
44 views

Get the original menu item name string instead of the label

I am building a hierarchical menu of custom taxonomies and their related posts using wp_get_nav_menu_items as follow: if( $locations = get_nav_menu_locations() && ...
0
votes
0answers
11 views

Site Live Database Operations issues

I have a working site on a staging server. The live site is working perfectly, but none of the database operations is working. It doesn't even fire the select query. I have pages in wp_posts tabel ...
0
votes
0answers
28 views

Breadcrumbs using the Menu Structure.

I know there are several questions regarding how to use the menu hierarchy for breadcrumbs and I followed the instructions doing the following... I added this code to my theme's functions file: /** ...
1
vote
1answer
47 views

getting parent page id when using custom menu.

Im using custom menus to display a menu using wp_nav_menu(). I want to get the_content() of the parent in the menu, without setting it as a parent page in pages. Is there a way to get the parent id ...
1
vote
1answer
44 views

Debugging - trying to add search box to menus

I have already asked a similar question at stackoverflow (http://stackoverflow.com/questions/22492292/add-filter-in-wordpress-how-do-i-know-if-it-is-run), but maybe that was the wrong place? As you ...
0
votes
0answers
25 views

Conditional output for start_lvl based on title

I want to add a custom class to the UL tag on start_lvl if the user writes "full" on the title area of the menu. Something like this: public function start_lvl( &$output, $depth = 0, $args = ...
1
vote
1answer
32 views

Add class active to static menu

I have a static main menu, but I'd like to add the class 'active' to the menu item in the nav if it is the page, or a child of that page. I imagine it to be a series of something like: if ( ...
0
votes
1answer
26 views

Use menu structure for permalinks

I'm building a blog that is kind of split into 5 different parts. Example: I try to combine 4 brands and the company owning those brands on one website. Let's say the company is called "Apple" and the ...
0
votes
2answers
40 views

In the Admin Dashboard, can I choose which sections to display?

For the editor I would just like to display Pages, Posts, Media and Menus. Is there a way of doing this with the functions file or similar? Thanks in advance.
0
votes
1answer
50 views

buddypress slug issues

i created a bp-custom.php and regrouped the menu items fine. But now i am trying to add a link to go to /site/members. It list all the members. When i add it though it goes under the profile I am ...