Questions tagged [sub-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
191 views

How do I hide submenus from the top menu bar?

My website is wiki-style and has a lot of pages that should only be reached through links on other pages. Having these all accessible from the top menu bar under their respective headings leads you ...
0
votes
1answer
11k views

How to use wp_nav_menu to create custom dropdown menu?

In my template I have a custom menu. Below is the HTML code for it. Inside the menu there is one dropdown menu and a link tag. <ul class="nav navbar-nav"> <li class="active"><a ...
0
votes
1answer
306 views

sub-menu does not show on the very top bar

I am using Hestia wordpress theme and i want to create a sub menu on the very top bar, the problem is when i click on it, the link seems to be active but the sub menu does not show. I am working on ...
0
votes
1answer
986 views

How to include a third level with wp_get_nav_menu_items function

I'm trying to create a custom menu structure that will work with jquery push menu's. http://multi-level-push-menu.make.rs/ All is working fine with the 1st and 2nd level. If I try to add a third ...
1
vote
0answers
274 views

Removing “Sub-menus” from My Sites Drop-down in Admin Bar

How does one remove the "sub-menu" that appears to the right of each site listed in the My Sites drop down from the admin bar? That is, I want to have a list of My Sites without the Dashboard/New ...
0
votes
1answer
31 views

Add subemenu option page

How can I create a submenu page like this? I have taken a look at add_menu_page and add_submenu_page, but I dont get further from there. Any help is appreciated.
0
votes
1answer
39 views

settings api sub menu and data not populating

IN FUNCTIONS.PHP → locate_template( 'inc/admin/class.settings-api.php', true ); locate_template( 'inc/admin/o-functions.php', true ); o-functions.php code: <?php /** * Registers settings ...
2
votes
0answers
571 views

Update Nav Menu Items Programmatically

I know this may sound stupid, but I created a code which (in theory) should add a few submenus to my primary menu. However I don't seem to be able to display this new menu because I don't know when I ...
1
vote
4answers
750 views

How to make pages metabox display all hierarchy in menu admin?

Running WP 3.9.1 I've got lots of pages and sub pages. When I get to create menu lots of sub pages doesn't display on the right level, but some do? This is how the pages metabox is displayed The ...
0
votes
1answer
90 views

Wordpress menu issue after update

INHERITED WEBSITE - I'm taking over an existing Wordpress website (prepwellness.org) and I noticed several things wrong with the Wordpress GUI. 1) It didn't have a "Posts" option in the left ...
0
votes
1answer
80 views

Display specific main Sub Nav on Woocommerce product pages

So I have two parent elements with sub navs on my site, they're all just normal page menu links. I'm wondering whether I could have a specific sub nav stay visible when on any Woocommerce product page
1
vote
1answer
6k views

Admin Menu - Highlight top-level menu when on a sub-menu page (without showing sub-menu)

This is the current situation: I am writing a plugin that has a top-level menu page The plugin also contains other sub-menu pages The sub-menu pages are not assigned a parent slug (thus they do not ...
0
votes
0answers
15 views

Assign index page to my mobile site?

I was wondering how I can assign a different index page to my mobile site? I tried some plugins like wp-mobile it changed colors and settings that I did not want done. Then I tried Mobile Menu but It ...
0
votes
1answer
508 views

Reveal hidden submenus on page load - Twenty Fifteen theme

How can I reveal hidden submenus on the page load in the Twenty Fifteen theme? I would like it so that all the submenus are open on every page. Can someone please guide me on how this can be achieved? ...
1
vote
3answers
3k views

Switch from hover to click on Twenty Twelve Menu

I'm wondering how I could change the menu in the twenty twelve theme to show the submenu items on click rather than hover?
0
votes
1answer
81 views

Can't hover on Submenu

I'm having trouble with the submenu on my site. When I hover over the main menu item, the submenu shows up as usual. However, when I try to hover over the submenu items to click on them they just ...
0
votes
1answer
72 views

Product categories are mixed when creating menu

I created the product categories in woocommerce so cleanly, And when im creating a new menu, its a mess. all are shuffled. Im using flatsome theme. WP-MegaMenu. Please tell me a solution or a ...
0
votes
0answers
256 views

Importing large product categories into wordpress menu

I have imported a product dataset into Wordpress/WooComerce which has created the required categories and sub-categories correctly when viewed in the Product->Categories page. When I go to try to ...
0
votes
1answer
80 views

Adding span to a particular text in an menu item

Read many posts regarding this but all are for all menu items. Issue is: I want to wrap some text in menu item. I tried adding HTML to menu but that does not work because of Walker_Nav_Menu class ...
0
votes
2answers
46 views

Displaying a part of a menu containing the page the user is currently viewing and only it's immediate children

So this is what I'm fruitlessly trying to achieve - let's say there's a menu like the following... What I'd like to do is to generate a menu with just the title and the link of the current page the ...
0
votes
2answers
256 views

Make Home page current if there are sub-menus

I'm kinda stuck here. My home page is set to show the recent posts and in my menu I have home page link. But it's not highlighted as current - screen When I click on the home link I transfer to the ...
0
votes
1answer
46 views

I can't correctly display menu

I'm new in WordPress so I'm sorry if I repeat question. I have theme in HTML/CSS and I want move theme to WordPress and I have problem with my menu. Below I show my problem. I have menu in HTML: In ...
1
vote
1answer
423 views

No “current-menu-ancestor” class added when browsing an archive page

I have a menu set up like this: Page 1 Page 2 Page 2.1 CPT Archive Page 2.2 Page 3 etc... And when I navigate to the Archive, the Page 2 menu item does not have the "current-menu-...
1
vote
0answers
1k views

Check if menu_item has children or has parent

I am using wp_get_nav_menu_items() to get the menu items and this is my HTML structure. Only items with submenu items should have the dropdown class attached to the li tag. <ul class="nav navbar-...
0
votes
1answer
126 views

Restrict days in bootstrap datepicker using checkboxes in submenu

MY SITUATION I've created a submenu in my Custom Post Type. In this submenu, there are 7 checkboxes for each date(Monday till Sunday). I use these boxes for selecting the days my restaurant is closed....
0
votes
2answers
248 views

Add menu headings to Wordpress sub menus

I'm using the native Wordpress menu. I have two top-level links with sub menus - I'd like for those sub menus to display the name of the parent menu item. So if I have a parent menu item named "...
0
votes
1answer
88 views

sub-page settings saving in NETWORK DASHBOARD

In single WP installations, on a plugin's generated sub-page, you put <form action="options.php" ... does the job well. However, in Multisite Network sub-page, options.php doesnt work, nor ...
0
votes
1answer
31 views

Role exception for a settings sub menu

Im fairly new to PHP so bare with me. So i have a sub menu in the backoffice settings and i need to grant an exception for this sub menu for specific users, but i have no ideia how to do that. This is ...
0
votes
1answer
540 views

Add child pages to submenu automatically

If a new page is added under a parent page (front end), which is part of a nav menu, I want the new page to be added to the appropriate submenu automatically - without any plugin. Reason: A custom ...
0
votes
0answers
529 views

WordPress menu walker - Get parent item text inside end_lvl function

I have a parent menu item which is taxonomy name. I want to add in a mega menu with a featured post from the menu taxonomy in the left of the sub menu. This code works and shows displays the html ...
1
vote
1answer
227 views

Combining 'depth' with 'include' in wp_list_pages()

I am using wp_list_pages to display my navigation that contains only specific top-level pages using the include parameter. However, I would like to display the child pages of those top-level pages. ...
0
votes
1answer
44 views

why is this function firing on all child menu items as well?

I'm using this simple function to add a dropdown indicator to my menu. However, I am getting a dropdown indicator on all children of the <li> that has the class menu-item-has-children. How do I ...
0
votes
2answers
19 views

Need help finding information to create this type of page

I'd like to create a menu that can be selected on a page and display information pertaining to what was selected from the page menu. Just like what the WNBA has on this page for their teams schedules. ...
2
votes
1answer
1k views

Custom Nav Walker to show siblings and children of current branch?

I have seen very similar (if not exact) queries to this all over Google, but always seem to find something short of what I need. I am trying to create my full vertical menu using wp_nav_menu in my ...
0
votes
0answers
27 views

how to create pages and link them to a menu

I am having some issues linking pages to the menus I have created. I used "appearance"-> "Customize"-> "Menu" and created custom menus from there since I cannot access my "Appearance/menu" properly. ...
0
votes
3answers
2k views

How can I add a sub menu to an existing navigation menu in WordPress?

I want to add submenu to a navigation menu in wordPress through code (not through admin panel) and I am totally new to Wordpress. Any help would be greatly appreciated! Thanks!
1
vote
1answer
3k views

Wordpress bootstrap menue with 3. level

I'm using bootstrap 3 and a navbar as navigation. I have found this Code to create the menu, works like a charm: https://developer.wordpress.org/reference/functions/wp_get_nav_menu_items/#comment-1609 ...
3
votes
3answers
3k views

wp_nav_menu() loses 'current-menu-*' classes on single product page within category

I have my menu set up like so: Shop Online (WPeC 'Products Page' page) Product Category (WPeC Category) Product Category (WPeC Category) Product Sub Category (WPeC Category) Product Sub Category (...
1
vote
0answers
31 views

Submenu causes issue in defined blog page

I've inherited a WordPress project with a heavily customised theme. Currently have an issue when viewing the blog when there are no current post entries. Within the theme code, there is an include to ...
0
votes
1answer
14k views

Automatically Display Sub Menu

To start... I am new to Wordpress and developing themes. I've got a main menu which I've placed in my header using the following code: <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
1
vote
0answers
15 views

Define supporting only 1-level menu

please help. Is there any way for the theme to define this theme support only 1-level menu only? I mean is there any hooks, actions, filter so that when user go Admin Panel > Appearance > Menu, ...
1
vote
1answer
750 views

wp_nav_menu() with multiple Class

I'm trying to make a menu with wp_nav_menu(). I'm trying to add multiple classes but I don't have experience with this. I think I have to overwrite a class but ... <div class="top-menu"> <ul ...
0
votes
1answer
395 views

Unable to add extra elements to the main navi (wp_nav_menu_items)

I'm trying to get the list of authors to automatically appear on the main navi (without having to manually add them one by one as they are created). So far I added this on my functions.php, but no ...
2
votes
2answers
4k views

Simple Navigation Walker – Wrapper-class around first sub-menu

I'm trying to wrap the first sub-menu of a navigation into a seperate div. None of the children or sub-levels should get the same treatment. I'm really new to the Nav Walker-thingie and I'm really ...
1
vote
1answer
330 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 ...
2
votes
3answers
6k views

How to add a child item to a menu element (using wp_nav_menu_objects)

(1) I used the code given on answer to How to use logout function on custom menu link? to programmatically add a menu element to wp_nav_menu_objects (Say "Animals"). I give it an id, say 1000. (2) ...
0
votes
1answer
85 views

Beyond widget side menu editing, with the php page, custom template

Looking to reorder the side sub navigation to match the postings. How would I do this? Here is the page: http://www.testdevices.com/about-test-devices/staffexperts/ This is NOT controlled in the ...
0
votes
0answers
2k views

Adding a submenu to the Tools menu returns tools.php in a popup box

I am trying to add a submenu to the Tools menu. When the custom Tools sub-menu is chosen, I want it to call a function. That function will echo things out to the browser page that is loaded. My ...
1
vote
0answers
478 views

Register submenu on network menu from the subsite

I have a multisite like this: MainSite Site1 Site2 I want to register submenu page on active site in parent page /wp-admin/options-general.php on network in parent page /network/settings.php If ...
2
votes
1answer
3k views

How to drag multiple menu items at once in WordPress?

Say, I added 8 items to a menu. Now I want to bring all the 8 items under another item. Dragging them one by one can take ages. How do I drag them all at once?