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

Why does my site show the correct front-page when you arrive at the site, but not when you click 'home'?

I have a website (derbyskillbuild.org.uk) and the 'home' button leads to a diffent page than the 'front-page': When you arrive at my website, it displays the correct front-page.php with the loop on ...
0
votes
1answer
37 views

How to register a menu based on a ACF condition

I am trying to register a Wordpress menu, depending on a ACF field condition. $logo = get_field('logo','options'); if ($logo) { register_nav_menus(array( 'brand_centered_left' => __('Brand ...
2
votes
1answer
59 views

jQuery cookie not working properly in wordpress

I make my own accordion menu with html + jquery its working perfectly to forth level, then i add a cookie code from net and do some extra work it also work 100% perfectly in html. My complete HTML + ...
0
votes
0answers
19 views

how to get Tag in menu populated with recent posts submenus

I would like to know if it would be possible to implement an option to "populate" each tag menu items of my WordPress site automatically with links to recent post as submenus. In other words, when ...
0
votes
0answers
36 views

How can I show latest posts from certain tags menu items as submenu?

I have the following order of menu in the menu dashboard: Category1 ->tags(related to category1) category2 ->tags(related to category2) etc.. when you hover a tag menu item I want to get the list of ...
0
votes
0answers
17 views

hide some nav menu items to non-localhost visitors, based on ip?

For a work extranet website i have a website that's fully accessible on premises. The website is now also fully accessible from outside as well. There are however some level 1 nav items with sub menu ...
0
votes
0answers
27 views

How to create a mega menu with latest posts of certain categories per tag?

I have the following menu: -Category1 ----tag1 ----tag2 ----tag3 -category2 ----tag1 ----tag2 ----tag3 etc.. The category1,2,.. are empty placeholders to hold the submenu tags. Could someone ...
0
votes
0answers
13 views

How to work around the bug which prevents custom menus from being deleted?

A bug makes it impossible to delete a custom menu in the expected way: select menu, click Delete Menu. This has never worked for me on any WP site in any version of WP; it produces an Error 403 and ...
0
votes
1answer
76 views

Always show wordpress submenu on responsive header menu

I'm trying to edit my CSS to always show all the li tags inside my header menu, also with ul.sub-menu li; I just want to show all the items from the menu, but I'm working on it for hours and I've ...
0
votes
0answers
14 views

How to duplicate Sub Menu?

Just wondering how I can duplicate (copy) a sub menu item. I have the duplicate menu and duplicate post plugins. Neither lets me duplicate a sub menu. Thank you for the help
0
votes
0answers
29 views

Customize Theme Screen Keeps Reloading

I have a theme that I have customized, and when I go Appearance > Themes > Customize the page keeps reloading, over, and over, and over... This is the only page that does this. I have tried ...
0
votes
0answers
19 views

How to echo text from higher level of nav

I'm building a site with three levels of nav. Primary is your standard nav in the header of the page. Second level of nav is below that primary header. Tertiary level of nav is on the sidebar. In ...
0
votes
0answers
19 views

Page Categories in Admin Menu

I am developing a responsive wordpress theme, among other things I will be serving different content to each device so with this in mind I am trying to organise the wp admin menu to make it easy to ...
0
votes
2answers
42 views

different Menu position showing same menu

Weird Problem: I registered two menus (theme-positions) and then added two different menus to each (in Wordpress Admin), but it always shows same menu in both positions: sidebar.php <?php ...
0
votes
1answer
55 views

Specific Page that convert Hyperlink to anchor in nav menu

I extended my Walker_Nav_Menu that converting hyperlink to anchor as I'm making one page website. Here is the code: class description_walker extends Walker_Nav_Menu{ function start_el(&$output, ...
0
votes
1answer
22 views

Missunderstanding of Wordpress menus

I made my first Wordpress plugin and I have couple questions regarding menus. When I activate default Wordpress theme "Twenty Fourteen" I can see navigation menu on top of page. My plugin, upon ...
0
votes
1answer
39 views

Using Different wp_nav_menu theme_location based on page id (or a parent id)

I am sure this has been asked. It's new territory for me so I don't have the full vocabulary of what I'm doing, nor am I sure this is the right way to do it. I've got a bunch of internal pages on a ...
0
votes
1answer
12 views

WordPress menus - automatically generate

I want to automatically generate some menu items using a script (i.e. using wp_update_nav_menu_item). This would usually be a one-off event but I might want to repeat it if the menu items need ...
0
votes
0answers
25 views

Add separated section like zurb foundation to wp_nav_menu

I have menu that separating with special section devider. Please, see screenshot to understand what am I talking about: Here is the html of this menu: <ul class="menu"> <li><a ...
0
votes
1answer
73 views

Display Menu Navigation Label

How to get Navigation Label as should be of the menu I'm using this code <?php $locations = get_registered_nav_menus(); $menus = wp_get_nav_menus(); $menu_locations = ...
0
votes
0answers
19 views

How to add scripts or attributes into wp_nav_menu?

This is my original list Menu which inlude the scripts. <li> <a href="/" data-start="color: rgba(255, 255, 255, 1);" data-300="color: rgba(160, 199, 52, 1); ">Home ...
0
votes
0answers
20 views

How to tag posts under menu items without showing posts titles?

right to the point. How do I 'link' posts to menu titles so once someone clicks on the menu title all the posts that I tagged there show up? I do not want that each post's title show up (when ...
0
votes
1answer
168 views

How to add schema.org SiteNavigationElement and property URL to navbar?

I would like to add the schema.org SiteNavigationElement and the relative url property to the links of the navbar. I have the following: <nav class="navbar navbar-default navbar-fixed-top" ...
0
votes
2answers
38 views

How to make an anchored page in a navigation menu tab

In my header navigation, I would like a menu tab to direct the user to open a page and directly take them to an anchored point in that page. Does any one know how I can accomplish this in WordPress? ...
0
votes
1answer
59 views

Walker Class: Output Parent Description and Featured Image right after sub-menu?

I've looked around everywhere but I can't seem to find an answer to this specific case. I am attempting to output the parent description and featured image of the page right after the sub-menu ...
0
votes
0answers
68 views

Add a page to nav-menus.php in admin area

I am developing a plugin which extends the function of menu locations in wordpress. I now need to have a page to configure the settings. The only codes I could find on google were to add a themes page ...
0
votes
0answers
74 views

Dynamically changing menu item link

Hoping someone can help me out - this has been driving me nuts for the past two hours. I'm trying to create a menu item - the menu URL should basically be: http://thesite.com/author/%username% ...
3
votes
1answer
127 views

Custom Nav Walker menu - Display category count

I have a custom walker menu.( See the code below) I would like to have my nav menu like this: Where 495 is the total of the records containing childrens. Where 42 Number of published articles. ...
0
votes
2answers
137 views

Active class not working on custom menu link using add_menu_page

i have created new custom menu that act like link to some page using this code: add_menu_page( __( 'Gallery', '' ), __( 'Gallery', '' ), 'edit_posts', 'post.php?post='. $gallery_page_id ...
0
votes
0answers
34 views

Menu add items to li for responsive

I am new to wordpress development and am working on understanding 'walkers" and adding on to the navigation. I am working on a theme build out using the 2013 as it seems like a solid responsive theme ...
0
votes
0answers
38 views

Walker_Nav_Menu check if menu has parent

I created a custom function extending Walker Menu and having some few issues. I got a post from https://wordpress.org/support/topic/how-do-i-know-if-a-menu-item-has-children-or-is-a-leaf showing me ...
0
votes
2answers
112 views

How to align last 3 menu items to the right - Wordpress main menu [closed]

I would like style the main horizontal Wordpress menu so that the first 3 items are aligned to the left and the last 3 items are aligned to the right. This will create the appearance of two menus ...
1
vote
2answers
83 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
58 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
25 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
24 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
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
65 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 ...
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
70 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
47 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
213 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
109 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 ...