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

Can't change link for navigation item

I'm customzing a wordpress theme so problem is that i've to change a link. its in arabic for example instead of this <a href='somelink.com'> i want to make it like this but problem is that ...
0
votes
1answer
34 views

Parsing Menu Items and Blog Posts

Question 1 I'd like to be able to show or hide certain pages in the main navigation menu based on whether or not they have certain prefixes in their title. This is mostly for the purpose of language ...
0
votes
0answers
19 views

Creating a geo-region Homepage and having Cookie Options

We have a website and we would like to have a feature similar to the HuffPost website. The website shows if the user went to switch to that regional edition and keep the cookie that when they go to ...
0
votes
1answer
52 views

wp_nav_menu not selecting teh correct menu

I'm having a weird issue. I have 2 menus, and registered them in functions.php, like this: add_theme_support( 'menus' ); register_nav_menu( 'primary', 'Top Nav' ); register_nav_menu( 'footer', ...
0
votes
0answers
11 views

How to add a custom menu to a certain post?

So with menus i know you can setup and have multiple different menus, but how can i set a particular post to use a certain menu? I'm doing this LearnDash - and i'd like to have a different menu for ...
0
votes
1answer
113 views

Remove current_page_parent nav class from blog index when in CPT

I'm trying to remove current_page_parent class from the blog index menu item (I got a custom page to display all blog posts and it is in the menu) when navigating custom post type archive page and ...
2
votes
1answer
39 views

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( 'admin_menu', 'travel_site' ); function travel_site(){ add_menu_page( 'Travel Site Menu', 'Travel Site', 'manage_options', 'travel-site-menu', ...
0
votes
2answers
79 views

How to Add support for sub-menu item description in wordpress?

I am working on a Custom Nav Walker and I want to use Description field in wordpress menu in my theme. The field works fine as far as for First Level Menu items but when I add something in sub-menu ...
0
votes
1answer
22 views

Is it possible to separate all submenu items?

I'm using FoundationPress as a starter theme and I'm trying to separate the submenu. My theme basically generates menus like this: <ul> <li class=" first-level has-dropdown"> ...
0
votes
0answers
65 views

Dropdown menu with Foundation 5

I've had a heck of a time getting Foundation dropdown menus to work. I've got the menu itself together but can't figure out to integrate Foundation's needs for formulating dropdowns to the Walker. ...
1
vote
1answer
719 views

Menu item with no page, but with dropdown

I am using 2010 theme menu. Is it possible to have a menu item that has a drop down when hovered, but will not click though to a page/post. Just a dropdown, using the wp_nav_menu.
0
votes
0answers
14 views

How do i get the menu id currently being edited in the nav-menus.php page?

I am trying to get the ID of the menu currently being edited in the backend menus page( nav-menus.php ) under appearance. Is there any filter that returns the id of the current menu being edited ?
0
votes
0answers
24 views

Menus Removed from Custom Widget Area

I’m hoping someone out there can help me out with this issue I’ve been scratching my head about for some time now. At my place of employment we have a WordPress site on our intranet, running a child ...
0
votes
0answers
20 views

Make menu page not add to click count from homepage to comply with Google indexing practices

Hi WordPress StackExchange, My goal is to make my website be compliant with having 3 clicks or less to the homepage for the services section. I am trying to resolve this error: Documents more than ...
1
vote
2answers
2k views

Error “The given object ID is not that of a menu item” on menu with 40+ items

When ever I try to add menu items past about 40 I get an error "The given object ID is not that of a menu item" and many of my menu items will disappear from the menu at random. The site I am working ...
0
votes
2answers
133 views

Use wp_logout_url() in menu creation page

can anyone give me some idea about how I can use the value of wp_logout_url() within the menu creator page of wordpress? As the menu creation page doesn't support php I cannot just put echo ...
0
votes
1answer
28 views

Site-wide tabs at WordPress website?

Is there a solution to add tabs at the whole site (site-wide) and not just in posts and pages? For example: I need one "tabs group" consisted of 3 tabs, and I like to add it sitewide (the same ...
0
votes
0answers
25 views

Get parent item using Walker function

When using the Walker function I found out that the $item parameter contains the properties current_item_ancestor and current_item_parent but both are empty in all cases no matter if its a menu or a ...
0
votes
0answers
70 views

How can I add a custom list item to the start of sub menus?

I'm trying to change the output of the Wordpress navigation through a custom nav walker, but I have a some issues I'm not managing to work out. If an item has children I want to add two list item ...
0
votes
1answer
81 views

How to add buddypress sub-menu items to other menus

I want to use BPs sub menu items in other menus. By default you get following items to drop them in menus; Activity Notifications Profile Logout I want to add "Profile -> Edit" to the list. In ...
0
votes
1answer
81 views

How do I add a search box to the nav menu?

I would like to add a search box to the nav menu by appending the following code in functions.php (at the end of the file, but before ?>). add_filter( 'wp_nav_menu_items','add_search_box', 10, 2 ...
0
votes
1answer
26 views

Wordpress functions.php does not affect the theme menus

I am trying to customize my pre bought theme. What i try is, to have different menus for each page without using a plugin. Original theme has a function about navigation which uses walker class. here ...
0
votes
2answers
591 views

How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?

I have the following problem developing a WordPress theme and I am here to ask you if this solution could be a good solution or if exist some better way to do. I have a custom WP theme and into this ...
2
votes
1answer
154 views

Custom Walker anchor tag not inheriting attributes

So I am just now learning and playing with custom walkers and I came across this really helpful Stack Overflow question. So I implemented the answer in that answer and added this to my functions.php ...
0
votes
0answers
18 views

Reproduce sub-navigation drop down

We have a navigation bar that when you hover over it there is a drop down on 3 out of the 5 menu items; I'm trying to add the other two. I have added what looks like the right code but I can't figure ...
0
votes
0answers
21 views

How can I achieve this menu structure?

I need two main sections which have subsections. Let's call them "Main section" and "Secondary section" Main section is the main page when users come to my blog, its name is "COSAS QUE HAGO" (THINGS ...
0
votes
0answers
19 views

Link to specific content

I'm messing around with an existing theme at the moment, trying to strip away as much of the WordPress 'environment' as possible to only preserve the text-editing functionality. So, essentially, I ...
1
vote
1answer
54 views

Prepend to start of WordPress nav loop

I am trying to add some markup before the <ul> tag of a WordPress menu using a custom Walker, which extends Walker_Nav_Menu, however I can't get any of my custom markup displaying on the ...
0
votes
0answers
13 views

Thumbnails in my album pages

I'm going to insert a navigation bar (with thumbnails) in my album pages. I've tried in different ways, but no one is working. The code, for "template-album" source, is the following. <?php ...
0
votes
0answers
56 views

Add custom dynamic attributes to menu items

Hello I would like to add a data-hover attribute to each element in a specific Wordpress menu. I found the following on the codex. However I don't know how to call each specific nav item to have the ...
0
votes
1answer
26 views

Frontside menu based on custom roles logged in permission

I have two phases to my site, the first is menu, i want my site to hide (normal) menu items if the user isn't logged in e.g when someone visit my site, the menu should be Home About us Products ...
0
votes
1answer
37 views

How to make menu output links absolute

The page and post links added to WordPress menus are relative in nature. I need a way to force them to be absolute without using the "Custom Link" option. Is there some function or maybe a modifier ...
3
votes
2answers
3k views

Determine if a navigation item has children

I am trying to determine if an item has a sub-item with depth 1 or higher. I cannot find anywhere if there is some function/query I can write that grabs the current item looks in the database if it ...
0
votes
1answer
264 views

Custom Admin Menu Order

I have a simple solution in my functions.php for reordering the admin menu. Here it is: // Admin menu - reorder function custom_menu_order($menu_ord){ if (!$menu_ord) return true; return array( ...
0
votes
1answer
240 views

Custom nav walker with different output depending on depth

I am trying to redevelop a HTML site as a Wordpress theme, and the HTML menu is as follows: <ul> <li class="current"><a href="#"><div>Home</div></a></li> ...
0
votes
1answer
62 views

Vertical Menu items shifting to same line when window size increased [closed]

I've tried messing with float and clear but could get anything to keep this from happening: "Fun" and "Shop" are supposed to be on different lines. Here's the CSS involved with the nav/ul/li/a: ...
0
votes
2answers
118 views

Making menu link open in new tab?

I'm trying to add a top level menu to the left sidebar of the WordPress admin panel. Here's the code I currently have: add_action( 'admin_menu', 'linked_url' ); function linked_url() { ...
0
votes
2answers
54 views

How do I display entries in the top menu based on conditions selected in the sidebar menu?

Hi. I don't know ajax programming. I know HTML, CSS, little bit of php(so much that I am editing and customizing all the default themes, and learning along the way). I have attached the UI of the ...
0
votes
1answer
76 views

How to dynamically alter all the links in menu via function.php

I have been searching and reading for 3 hours and still couldn't find anything that come close to what I needed and I am still trying understand how wp add_filter, rewrite, etc works. Just started ...
1
vote
0answers
35 views

Change submenu markup

I've seen people recommending to edit the wordpress default Walker to change the menu markup and create your own. The problem with this is that I would like to change the markup of the submenu and ...
7
votes
3answers
13k views

How to add a Custom Link to a Menu with an URL that is relative to the blog URL

Part of my work is to create Wordpress websites. I usually work on my laptop until I have something good enough to be uploaded to the test server where the client reviews it. I create a VirtualHost ...
0
votes
3answers
6k views

List WordPress Custom Menu's active parent level's children as separate menu

I have a structured Custom Menu: parent 1 children1_1 children1_2 parent 2 children2_1 children2_2 parent 3 parent 4 children4_1 etc. I want the following: on every page, the parent ...
0
votes
1answer
67 views

Current author archive in navigation menu

I want logged-in user see her/his own author archive page link in top navigation menu,say (a link to a list of all her/his posts). What I achieved so far is this: function my_nav_menu_author_link( ...
0
votes
0answers
11 views

Wordpress API menu theme location assign doesen't work for second+ item

I'm trying to create 2 menus, one main menu and a footer menu. The script below creates the menus and assigns the pages but it cannot assign the second menu and onwards to the theme menu location. It ...
1
vote
1answer
62 views

How to add programmatically all pages and children to backend menu

I have a big website with tons of content, and I would like to automatically add all pages and their children to the menu in the backend, so I can then rearrange them easily via drag and drop. I ...
1
vote
2answers
2k views

Set menu active state for custom posttype and category, given custom taxonomy term

How to set the menu active state for a custom posttype and category, given a custom taxonomy term? I have a custom taxonomy: region, a custom posttype: business, and use the categories taxonomy. My ...
2
votes
3answers
4k views

Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?

I've found this new plugin http://wpsmith.net/wordpress/creating-multiple-custom-menus-in-wordpress-3-1 that is using a new 3.1 hook (wp_nav_menu_objects) to remove specific nav-menu-items from the ...
3
votes
3answers
3k views

How do I pass an argument to my custom walker?

I've set up a custom walker, and it works as desired when I hard code my variable. What I want is to be able to call my walker and pass it a variable that is used in the walker. For example: ...
1
vote
2answers
5k views

wordpress custom walker for thumbnails with custom menu

I'm still very novice at PHP so any help is greatly appreciated. Typically I have found the codex to be very helpful but it appears custom walkers may be outside its scope. I'd like to have ...
3
votes
1answer
4k views

Navigation menu with children shown only for current page

I've been playing around with Wordpress' menu functionality (wp_nav_menu and wp_list_pages) to build a menu for my site. It's coming along, but I'm still having some trouble getting the behaviour I'd ...