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

How to make a page to not appear in the menu when created?

When one creates a page in the Dashboard (Pages -> Create new) it always appears in the menu and that is the way it should be. But now I want to create a page that does not appear in the menu at ...
0
votes
0answers
182 views

Drag and drop isn't working while creating menu

I am creating a new site , in order to create menu , I just need to Drag and drop the item , in order to create exact menu position and sub menu . But Drag and drop isn't working . Thats why I am ...
-1
votes
1answer
75 views

Create custom page and custom menu

I'm trying to do one custom menu at my wordpress admin panel. My plans are: make and menu, to add some contents at a custom page, like "people" and their names, etc... I wanna make it with php. I ...
1
vote
1answer
208 views

How to make this menu drop down or like accordion

I am using sitesmile auction theme. Here is my working site. In home page there is a sidebar saying "Browse by Categories". I want to make this menu as drop down or like accordion. Whenever the user ...
0
votes
1answer
37 views

how to check if given page is active page

I am building my own custom menu for custom post type. I have a loop and I need to know if given item is active one. How to this properly? How to compare if given items address (slug, permalink, id ...
0
votes
1answer
36 views

Add pages content to startpage through custom menu

I would like to be able to add page content onto the startpage (index.php). But only the pages that i've added in custom menu, and in that order too. I've been searching for a while now, but can't ...
0
votes
1answer
547 views

Add id to menu items in wp_nav_menu

I'm using wp_nav_menu in Wordpress to create my navigation The output is similar to this(I have removed href links) <nav id="pageNav"> <ul id="menu-headernav" class="menu"> ...
0
votes
1answer
46 views

Get first menu item of custom menu

Let's assume the client builds a custom menu with 3 menu items and I'd like to show a few posts, then the first menu item, then some more posts, the second menu item, more posts and then the third ...
1
vote
1answer
83 views

How use %like% in sql statement wordpress

i use a like %text% statement in wordpress: SELECT * FROM location WHERE name LIKE "%on" OR name LIKE "%on%" i tried anything but it's not run: $wpdb->get_results($wpdb -> prepare("SELECT ...
0
votes
0answers
117 views

wp_nav_menu Not Showing New Primary Menu

I'm working on developing my first ever WordPress template. And I'm bumping into an issue that has me slightly confused. I've created a custom menu called LaunchPointMainNav. But when I tell WP ...
0
votes
2answers
63 views

Rename menu items for All except super admin

I can rename wp-admin menu items But How Can I active it for all users except Super Admin ? add_filter('gettext', 'rename_admin_menu_items'); add_filter('ngettext', 'rename_admin_menu_items'); ...
0
votes
1answer
109 views

add_menu_page does not render the expected result

I'm trying to accomplish the simple task of adding a new page to the admin area but it seems that I just cannot wrap my mind around this simple function. Via codex, this is how I'm trying to add the ...
0
votes
1answer
128 views

Custom post type in submenu with custom meta box as a title with custom html

I am trying to create a menu in wordpress using a custom post type as the main menu item at the top level and all of its childs are going to be included from the posts i create inside it. The html i ...
0
votes
2answers
94 views

remove menu items if user can't read

I want to create one menu for all users and then hide / remove items from the menu if they don't have access to the page the link leads to. This to me seem like an SOP. I really don't understand how ...
1
vote
1answer
210 views

Change menu with language?

My problem is that I have used a plugin called polylang and now it doesnät work with another more importent plugin so I need to find a solution. I use WPML on other sites and that is not an option ...
0
votes
0answers
39 views

How to add a heading under sub-menu by using Nav_Menu_Walkers

I have customised WordPress wp_nav_menu by using Nav_Menu_Walkers and currently achieve the following format: <a href="#">Menu Parent</a> <div class="sub-menu"> <ul ...
0
votes
0answers
45 views

How to handle change the appearance of 'categories' box on dashboard?

I have a site with hundreds of categories, and when I come to edit some menu on wp-admin/nav-menus.php it is really difficult, because in the categories box there a few pages, with something like 20 ...
0
votes
0answers
36 views

CPT Archive with parent page

Is it possible to set a parent page to a CPT Archive? I used a plugin to add archives to the nav_menu section. That works. But I also want the link to be /parent/archive. Is there a plugin or ...
0
votes
2answers
441 views

Limit top level menu items on wp_nav_menu

I've got a situation where I need to limit the top level menu items on a custom menu. The design only has room for 4 fixed width items, and I want to future proof it from displaying more. Looking at ...
0
votes
0answers
34 views

Fallback CB not falling back to wp_page_menu

for some reason the menu is not falling back to the default page menu. Am i doing something wrong? Here is my register of the navigation: register_nav_menus(array('primary' => __( 'Primary ...
0
votes
1answer
62 views

Menu item not created on theme activation

On theme activation the following code doesn't create my menu with the 'New Page' item, the menu is created and the location is assigned to 'submenu' but no menu item of my newly created page? What ...
0
votes
0answers
51 views

How do I add a link to the menu that has a charector (?) in it?

I'm trying to add a link to a drop-down menu but it gets lopped off every time. THe full address is https://www.ub-tonlinebank.com/onlineserv/HB/Login.cgi?runmode=REGISTRATION but is stops at ? and ...
1
vote
2answers
76 views

How to customize submenus isn wordpress theme [closed]

I have a wordpress theme and in the header.php file it is displaying menus through this line : wp_nav_menu( 'theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default'); ...
0
votes
1answer
89 views

Hard coded main navigation

Theme twentyeleven Version 1.5 HELP PLEASE I have received an answer from @Mayeenul Islam but this has not resolved my question, if I can't make the navigation show active that's not the end of ...
0
votes
0answers
24 views

Menus gone in backend

I have some strange issue: I have created some menus. All good. Then I wanted to place a menu into a widget. It says No menus created. Click here to create a menu (don't know the exact english text, ...
0
votes
3answers
98 views

How can I add a class to a single menu item?

I'm trying to modify a non-WP theme to be compatible with my newest WP project, and one of the issues is a drop-down menu item. Since it's a totally custom theme, I want to replicate the behavior of ...
0
votes
1answer
33 views

Problem with custom menus

On the menu, I'm talking about custom menus, I have a footer with several columns, each column will have a list of items, each column menus needs to be updatable from the menus option on wp admin, so ...
0
votes
1answer
54 views

Add custom menu item type

Is there a way to add custom menu type to the menu editor? I know I can add items dynamically with the wp_get_nav_menu_items filter, but I would like to have the position of those items configurable. ...
0
votes
1answer
76 views

WP NAV MENU - Dropdown always showing

I'm having some trouble getting the wp_nav_menu to work properly. This is the first time I have worked with this and for the most part it has all come together. My only issue that I am having is with ...
0
votes
1answer
388 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
3
votes
1answer
218 views

Determine which theme location a wp_get_nav_menu_items is for

Is there a way to determine which theme placement a menu is for when modifying it with the wp_get_nav_menu_items filter hook? I'd like to only add items to certain menus and I don't want to have to ...
0
votes
0answers
154 views

WP admin broken. Not saving catgories or adding categories to menu

Wordpress Admin panel is not saving categories when creating new post or editing it. Also same problem with adding categories or pages to menu. It just doesn't save changes when I press update.
0
votes
0answers
154 views

Add tooltips with image in Wordpress Menu?

I want to add tooltips with image modal inside my menu dropdown. See this link: My site When on the dropdown menu, when we hover on the the product item, I want a tooltips with image to it. How ...
0
votes
1answer
208 views

JS this.href not getting link from menu item

I have a script to fade in and out the page container when a link is clicked in the nav. I have attached the script to the .menu-item class to target just wordpress menu links. The script itself seems ...
0
votes
0answers
32 views

Can I prevent the $item->description to be filled with default content for a Walker_Nav?

I use code like in this tutorial I have this code in my custom walker ( ! empty ( $item->description ) && 0 == $depth ) ? ' <span class="desc">' . $item->description . ...
0
votes
2answers
52 views

wp_nav_menu with WP as pure CMS

I'm trying to use WP as a pure backend CMS for my site. I've got a few pages setup in WP e.g. About, Main Page, Sample Page and I can display the content on my own php pages by using ...
0
votes
1answer
97 views

Adding parent custom post type menu option

random problem for me here. I have several custom post types registered to Wordpress and I want to add the archive pages to the menu, but I do not want them to be static links. Is there any way to ...
1
vote
1answer
602 views

Show Different Custom Menu on Different Category Pages

I have been using in_category function to display a set of menu on the sidebar. However, a much better way would be to show this menu on the top, as a navigation menu -- in the form of custom menus. ...
0
votes
1answer
135 views

Adding different classes to anchor in navigation menu

Is this possible? I want to add different classes to the anchors, so not the same on all anchors. How can I do this? PS: I am using this: function add_nav_class($output) { $output= ...
0
votes
1answer
811 views

How to make a drop down menu with categories

I'm building a website in which there is a navigation menu with various links; in this menu there is the link to the blog section. My goal is to create a drop down menu that appears when the cursor ...
0
votes
1answer
121 views

Wp_list_pages not showing children with custom page template

I seem to be having problems when using custom page templates using wp_list_pages. These pages are always displayed at the bottom of the website in a menu. The problem is, that they should have a ...
0
votes
0answers
42 views

How can I modify wp_nav_menu with walker?

I would like my wp_nav_menu to output in the format for jquery ui: <h3>Section 1</h3> <div> <p> Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut ...
0
votes
1answer
32 views

how to set the link in wordpress such that on clicking it doesn't open another page but go to the bottom of same page

I have one word press project and in that index page is having 7 menus like home, about, contact, offering, invitation, evolution and downloads now how to set the this links such that on clicking it ...
0
votes
1answer
91 views

learning OOP with wordpress plugin

I used to develop in functional design so far and I am now learning OOP. I stumbled upon following problem. Sometimes in OOP a function needs to send and argument as an array. Example. I want to ...
0
votes
0answers
20 views

wordpress menu how to avoid certain classes to be applied when I am using custom links

I am working on a site where I have to show custom links and I am using #hashtags for that (if its correct term), and the issue is wordpress applies active classes to those custom links as well ...
0
votes
1answer
64 views

Can't style custom menu

I have a Wordpress menu on my site generated by code: <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-primary' ) ); ?> When I assign the menu called ...
0
votes
1answer
23 views

menu items outside of blog

Is there way that I can echo out my wordpress menu items to a main site menu. The wordpress install runs in a subfolder of my main site. I thought there might be a way to do this that is similar to ...
0
votes
1answer
182 views

If child is active add class to parent in customWalker

Im writing a customWalker for the wordpress main navigation area. But i am a little stuck on how to find and add a class to the parent of the child which is active. For instance I have the whole ...
0
votes
0answers
53 views

Slide Menu not working?

How can i use this Slide Menu in my wordpress website. Only i need Right Side menu from all.here i paste what i tried. var menuRight = document.getElementById( 'cbp-spmenu-s2' ), ...
0
votes
0answers
26 views

Changing Menu design

On my site need to change the menu design. By that i mean that i really need help to get all the Menu links to be placed in EQUAL size boxes, even when your mouse not over the link. ...