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)

1
vote
2answers
85 views

Order by menu structure

As I'm making one page website. Here is question I asked earlier: Calling Specific Pages with wp query Part II As I'm calling all pages by WP_Query which is "order by = ASC" I want to call it "order ...
0
votes
1answer
811 views

How to add menu support to a theme?

I tried few tutorials. All i think is i should use register_nav_menus() and then add the menu in header.php Here is the code i tried in functions.php from this help site itself function ...
1
vote
3answers
4k views

How to add (css) classes to only one wp_nav_menu()?

Edit I removed the original Question as this Q has far above 1.000 views now - which means it's important to a lot of people - to show you something that works a) without a custom Walker & b) is ...
0
votes
1answer
60 views

wp_nav_menu() doesn't work

I'm working on a theme with custom menus, currently using WP 4.0.1. I'm registering two menus in functions.php: register_nav_menus( array( 'primary' => __( 'Main Menu', 'wsy' ), ...
0
votes
1answer
27 views

parse_tax_query causing Navigation Menu To Disappear

I am using the following snippet to modify a query... function no_child_terms($query) { if( !is_admin()) { $query->tax_query->queries[0]['include_children'] = 0; } } ...
0
votes
0answers
23 views

How to filter between two menu items

Right now my menu is something like this: <ul> <li><a href="#">item 1</a></li> <li><a href="#">item 2</a></li> <li><a href="#">item ...
0
votes
1answer
25 views

Adding custom field in menu options [duplicate]

Please take a look at this image Is there's anyway I can add another field called "Font Awesome Icon" for the user to write the icon class and the output should be like this:
0
votes
1answer
502 views

Having an issue with wp_nav_menu displaying custom navigation

Below is the HTML menu structure I would like to display with wp_nav_menu: <ul class="right-top"> <li><a href="#">Join Now</a></li> <li><a ...
0
votes
0answers
44 views

Display a list of child pages as a menu, inside a parent page

I need to create a menu made of child pages inside a parent page. So, I've achieved this correctly in 2 ways: Building a custom menu and adding it inside a widget Following this tutorial What I'm ...
0
votes
1answer
68 views

Custom Post Type parent slug as menu item

I created a Custom Post Type with the slug "Sell". I want to add this to my menu set up in Appearence. But it seems to work only for actual items created with this CPT. But I need the menu link, ...
0
votes
0answers
68 views

Admin - Plugin: create custom page with ID

I want to create a plugin in order to generate shortcode settings. My aim is to create a plugin page with add menu action and in this page to have a button in order to create a new setting page with a ...
1
vote
2answers
493 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 ...
0
votes
0answers
4 views

Effective way to find pages for menu…? (in Appearance/Menus)

What is an effective way to find pages, to add into a Menu? (In Appearance/Menus) There are hundreds of pages on my site. If I search using a page title, often the page I'm looking for doesn't show ...
0
votes
2answers
39 views

How to Use index.php file for “Blog” Page And this is Not a Home Page

I Created a Page(from Pages -> Add New) Called "Blog" when click the "Blog" menu in header I want to display the posts from default post not Custom Post Type How to do this ?
0
votes
0answers
73 views

Primary Menu Showing All Pages With No Sub-Nav

Developing my own theme and I don't understand why my primary menu is listing all of my pages on a parent level, when I want only 5 parent pages as my menu with each having child pages in sub-nav that ...
0
votes
0answers
21 views

Shortcode Menu plugins default value

I use Shortcode Menu plugins, everything works fine. When I'm using a smartphone, the menu is responsive but the default value is the last value of the Menu. I would like that the default value is ...
0
votes
1answer
47 views

Plugins & Setting Menu Items Removed From Admin Panel

I am unable to add any new plugins and can't see menu settings as well. I think it's been disabled. How do I bring these admin menu items back? Here's what my admin panel currently looks like:
0
votes
1answer
50 views

How to add posts with thumbnails to my dropdown menu?

I want to create the same effect in Listverse menu. I have a dropdown menu, and I want to add a post section with thumbnail, as shown in the image below. How to achieve that? Thanks!
0
votes
1answer
220 views

Remove current class from sub menu items

I am building a wordpress website with drop down menu (sub menu). To achieve this here I am using wordpress walker class. This is the code which I am using in my functions.php class ...
0
votes
1answer
18 views

Menu is not displaying on the site navigation [closed]

I am using Axis Wordpress theme. I have created a new page and added it to the menu. But when I visit to the site I am not able to see the menu navigation link. I don't see any page to navigate and no ...
0
votes
0answers
110 views

Add active class to ul container menu

Does anyone know how to add a "active" class to the parent container menu in WordPress 4.1.1 ? If an item of the menu has the "current-menu-item" class, I want to add "active" class to the parent ...
0
votes
0answers
41 views

Dropdown in Navbar, spacing between links

I am having issues with the spacing of the dropdown on the nav bar. I added the menu through WordPress admin panel. When I hover over the dropdown, the words are all crumpled together. I need to space ...
26
votes
2answers
22k views

Any docs for wp_nav_menu's “items_wrap” argument?

I'm using wp_nav_menu and am trying to create custom output for the sub-level drop downs. I came across the "items_wrap" argument but there's really not much information as to what it is, how it ...
0
votes
1answer
47 views

add custom entries to menu options

The menu options in WP already have support for created native posts types, and custom post types, and existing taxonomies. But in my plugin I provide a couple custom URLs that are not associated ...
0
votes
0answers
20 views

Add menu item for page with ID

I'm trying to leave Wordpress for my client as a simple and usefull CRM, but I stuck with one thing. I have one page with few main sections (groups of products). I don't want to separate every section ...
3
votes
2answers
3k views

WordPress Settings API, Implementing Tabs On Custom Menu Page

I've been following the WordPress Settings API tutorial series of this guy: http://wp.tutsplus.com/tutorials/theme-development/the-complete-guide-to-the-wordpress-settings-api-part-1/ So far, I've ...
0
votes
1answer
38 views

How to get category id's which are added in main menu?

I called post categories in my main menu using menu section and set them as child menu items now when I click that category menu items I need to make parent menu item active.I know doing this with ...
0
votes
1answer
396 views

Category menu that filters out empty categories

I'm trying to build a menu which can be administered from the menu editor, but gets filtered before being output. More specifically the menu contains Woocommerce product categories, organised into a ...
1
vote
3answers
3k views

Wordpress Custom Menu Widget Style

I am wondering if anyone knows the best method for splitting 1 custom menu widget (located in my sites footer) in to 2 columns. There are a total of 8 links, so I would like it to be split in to 2 ...
0
votes
1answer
12 views

current_menu_parent for custom post type and custom url

I have defined a custom URL that loads a custom template, as a customized "archive" por a custom post type. I can't use the native archive since the page has a couple requisites that the archive ...
10
votes
4answers
486 views

Split up wp_nav_menu with custom walker

I am trying to create a Menu that shows a maximum of 5 items. If there are more items it should wrap them into another <ul> Element to create a dropdown. 5 Items or less: 6 Items or more ...
0
votes
0answers
131 views

How to split sub menu li into 3 columns in wordpress

How Can i Split sub menu li into 3 columns each wrapped in a div. Here is my custom walker. Here is my custom walker. class Custom_Walker_Nav_Menu extends Walker_Nav_Menu { function ...
3
votes
4answers
8k views

Using Image Links in Wordpress Navigation Menus Instead Of Text Links

Does wordpress support the capability to use images in the navigation menus instead of text links? I searched for this capability and found a site that shows how to include images in the menu through ...
0
votes
0answers
18 views

Wordpress menu - return link

is there any way to add a "back" or "return"-link to the Wordpress-Menu? The only option I can see is "Link", meaning it has to be a valid site.. When using javascript:history.go(-1), the text is ...
0
votes
0answers
25 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
24 views

Get menu as lists with hierarchy

I've a menu like this: Page Category 1 Category 2 Sub category A Sub category B Sub category C Category 3 Page ... Because I need to custom styling it, I need to print it on a template. I need ...
0
votes
1answer
30 views

Show parent's child and also child's, child on a page?

I'm trying to get my head around this issue I have and the only way I can think about doing it is pulling in things via a WP_Query but you can't have a query inside a query can you? What I'm trying ...
0
votes
1answer
72 views

Wordpress + Bootstrap [closed]

I have integrated Bootstrap with Wordpress, and implemented wp-bootstrap-navwalker to build menus. Bootstrap and navwalker are working as you can see my project here. The only problem is the CSS on ...
1
vote
1answer
31 views

Insert other menus as submenus of a main menu

I have a main menu which features items for each of my service cpts. Each of those cpts has another menu associated with it, the id of which I grab using the ACF get_field function. What I'm trying ...
2
votes
1answer
72 views

Create self-populating menu and add extra divs to the menu layout

What I'm trying to achieve: A menu with one level of sub-menus: PAGE 1<br> --- Page 1 sub-page 1<br> --- Page 1 sub-page 2<br> PAGE 2<br> --- Page 2 sub-page 1<br> --- ...
0
votes
1answer
51 views

Menu item hidden behind others

I'm having some issues with my menu being displayed properly. As you can see from the photo below, my 3rd level menu items are hidden behind the others for some reason. I've gone over my template I'm ...
0
votes
0answers
25 views

Page auto link to the ID

I'm trying to make the page slug as their ID. Because I'm making one page site. Here is my code <?php global $post; ?> <article id="<?php echo $post->$post_name; ?>"> then I ...
0
votes
0answers
101 views

Class .current-menu-item in custom menu Walker

I'm building a blog using a custom walker for my submenu which looks like this: class Submenu_Walker extends Walker_Nav_Menu { function start_el ( &$output, $item, $depth = 0, $args = ...
0
votes
0answers
25 views

Pass $item->description to start_lvl

Is there a way to show parent menu descriptions on the first sub menus when using start_lvl ? function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); ...
0
votes
1answer
16 views

Why is wordpress forcing https link generation?

I just moved a local site on my staging area, and I noticed that wp_nav_menu now automatically generates https links. Why? How can I disable it? Thank you
1
vote
1answer
17 views

How to add notifcations to front-end menu for users when they recieved replies?

So I get this theme were people can interact with each other, send message, gifts, chat, etc. I want the menu, or the button "My profile" to change and add a notification symbol, notifiying the user ...
0
votes
1answer
91 views

WP Super Large Menu Problem

Hey Folks! I am looking for the best WP practises to handle mega large menu. My navigation menu has about 400 links, so if I create just a single menu, then it looks so ugly... I could divide it into ...
0
votes
0answers
18 views

html <nav id wordpress menu

I am trying to convert this html menu to a nav in wordpress <nav id="nav-main"> <ul> <li><a href="#">Home</a></li> ...
1
vote
1answer
76 views

Schedule Page to Menu [duplicate]

Every week I tend to have 2-4 pages scheduled though I need to get them added to my menu as well. The "Add New Top Level Pages to Menu" option won't work in my case though as the pages in question ...
0
votes
0answers
27 views

how to add custom plugin menu link in toolbar

function ledger_manager_link($wp_admin_bar) { $args = array( 'id' => 'ledger_manager_link', 'title' => 'Ledger Manager', 'href' => plugins_url('ledger_credits.php'), 'meta' ...