Questions tagged [sub-menu]

The tag has no usage guidance.

0
votes
0answers
12 views

Highlight “shop” in menu when on product page, without showing a sub-menu?

I've tried doing some research on this but can't get my head around it... I have one main menu where I want to highlight a page (named "Shop"), but don't want a dropdown menu with sub-pages (product ...
0
votes
0answers
6 views

Mega menu 3rd level sub menu overlapping with second level menu [duplicate]

i am created mega menu two levels worked fine 3rd level sub child menu overlapping with second level menu problem with Z-index my website url : http://3.9.10.5/ (3rd menu Treatments > Wrinkle ...
-1
votes
1answer
12 views

How to display a submenu as a popup when clicking a button?

I have a submenu that contains several items. The submenu currently displays when the user hovers over a main menu item in the top menu bar. I want to place a button in the middle of the page that, ...
0
votes
0answers
15 views

Placing custom post types as submenu in admin menu and moving additional admin elements around

So, in my custom Wordpress plugin I have two custom post types. My customer wants to have them grouped under one main admin navigation item. I go and create the main admin item using: add_menu_page(...
-1
votes
2answers
55 views

How to keep close a sub-menu under homepage? [closed]

I am facing an issue in the Avada vertical menu when the homepage is opened. Please note that all "Home", "Company profile" and "Servizi" link to the same page (the homepage). The sub-menu under "...
1
vote
0answers
19 views

Automatically list top level menu item child pages

I am building a website that has a lot of pages. The client is not a big fan of the Wordpress menu builder works (in appearance -> menus), and we have come to the conclusion that the best way for the ...
0
votes
0answers
13 views

How to Remove default Nav Menu Class and/or put my own class on menu li ul tag | no plugin

I want to remove this default class on ul li tag and want to add my own class ID <div class="menu"><ul> <li class="page_item page-item-58">About US</a></li> <li class=...
0
votes
2answers
44 views

Menu walker: how to tell if a sub menu contains submenus?

I mean: <ul> <li> <ul class="sub-menu"> <li> <ul> <li></li> <li></li> <li></li> ...
0
votes
0answers
68 views

Displaying product thumbnail category on hover in menu

I need a submenu like this one: https://www.groupelacasse.com/ (products submenu) Where there's an image and products category. When a category link is hovered, its category thumbnail is displayed ...
0
votes
0answers
48 views

Filter parent_file doesn't working

I am trying to highlight an admin menu option (top level or submenu) but it just doesn't work. The code should be pretty straight forward but it seems that my filter isn't triggered. add_filter('...
0
votes
0answers
32 views

Native admin table with search functionality: sorting by columns does not work

I display a WP_List_Table on a submenu_page and offer a search function, which works. However, if I sort by a column within a search result, all records are displayed again. I really don't know why ...
0
votes
1answer
23 views

Creating navigation out of specific IDs and their children?

I'm looking for a way to list three specific pages in a nav-menu (I want to get these pages by their unique page ID's), and also list the children of these three pages - appended to each list item, in ...
0
votes
0answers
23 views

Display parent title in sub menu

I have this type of menu : Menu 1 Submenu 1 Subsubmenu 1 Subsubmenu 2 Subsubmenu 3 Submenu 2 Subsubmenu 1 Subsubmenu 2 Subsubmenu 3 Menu 2 ... I want to display, only in the submenu, the ...
0
votes
0answers
20 views

how to link local pages with flags in submenu

we have 4 flags on our website in the submenu. two, german and english are leading to the internal translation (wpml) the other two (chinese and russian) are leding to external links (local copies of ...
0
votes
0answers
17 views

How to remove parent menu item?

I have a menu, all sublisted listed under parent menu item 'home.' The issue is, I don't want a parent menu item. I just want menu bars - > click on it=drop down. At the moment I have 'home' - - > ...
0
votes
1answer
165 views

Adding sub-menu item makes parent item unclickable

Unfortunately, I do not have a way to reproduce this since I don't know what is causing the issue, but I can provide plenty of details. The problem is this: In the nav bar the parent menu item works ...
0
votes
0answers
56 views

Product categories are not showing up completely

I have used Bulkpress plugin to be able to upload 700+ product categories. Now I wanted to create menu item 'Apple' and there will be a dropdown with all the Apple models (subcategories) listed once ...
0
votes
0answers
42 views

Make submenu stay open until other menu item is hovered with submenu's

I want to create a menu with a submenu in my wordpress site like this website has done: https://www.opmaatzagen.nl/ When you hover a menu-item a submenu is becoming active and stays active until you ...
0
votes
0answers
31 views

Show all menu levels except top level. How to exclude top level of a menu?

I have a menu that looks like this: Women and Men har the top level menu items while the lower nagivation menu items are the children. The menu structure looks like this: Women New styles ...
0
votes
1answer
31 views

Insert link in sub menu - Admin panel

Hi this is my code. add_menu_page('Titlemenu', 'Titlemenu', 'read', 'a-functions', array(&$this,'namefunctions1')); add_submenu_page('a-functions', 'title1submenu', 'title1submenu', 'read', '...
0
votes
0answers
36 views

Where to place a svg chevron down in my custom walker?

i am a bit stuck with the custom walker in my Wordpress theme. I wanted to place a svg chevron down on the first link when a submenu is detected. My theme uses a svg file with all the svg paths. The ...
0
votes
0answers
36 views

Add wrapper for a specific sub-menu

I am trying to add a wrapping div around a specific sub-menu. what is the best way to do it ? is there a way to target the sub-menu and modify it or should i just use 'wp_nav_menu' or '...
0
votes
0answers
7 views

Statically populate menu with childs

My problem is very simple. I want to add all pages and subpages of a given parent page inside a menu. The problem is that the few plugins I found for this purpose, JC's Submenu or Gecka Submenu, do it ...
1
vote
1answer
1k views

Wordpress sub-menu items suddenly not showing

None of my submenus are showing. They all show up in Appearance->Menus, but not on the actual website. I've deactivated all of my plugins so it's not being caused by that. Help? Website: http://www....
0
votes
1answer
20 views

Horizontlal scrolling content

i’m looking for a plugin (or something else) that could reproduce the horizontal sub-menu and scrolling content we can see on this page when you click on oeuvres/expostions/etc… : http://www....
0
votes
1answer
45 views

Add href to <a> tag in nav menu for mobile

I have a primary menu which is displayed for desktop <?php //Show the navigation menu wp_nav_menu(array( 'theme_location' => 'primary-nav', 'menu_class' => '...
1
vote
0answers
627 views

bootstrap menu parent toggle and arrow

I have created a menu in Bootstrap 4: Here is the code: <section class="menuBar"> <nav class="navbar navbar-expand-lg navbar-light" data-toggle="sticky-onscroll"> <div class="...
1
vote
1answer
4k views

Multi Level Bootstrap Navigation Menu in WordPress

I am converting a static website made with Bootstrap in WordPress. Here is my bootstrap multilevel navigation menu code: <section class="menuBar"> <nav class="navbar navbar-expand-lg ...
1
vote
0answers
29 views

Remove add news page and posts from menu

I want remove add news page and posts from left menu I try to use remove_submenu_page('edit.php', 'post-new.php'); but it only remove add news from posts, I need to remove add news from pages too.
1
vote
2answers
648 views

Highlight current post ancestor parent menu items

The default menu classes in WordPress are pretty useful. But one problem that i stumble over from time to time is with categories as subitems in menus. For example the following menu structure: Page ...
0
votes
1answer
15 views

Controlling the position of dropdow submenu

can someone explain how I can modify the position of a submenu so that it can be higher than it is now (eg closer to the menu bar, without the gap between the header and the dropdown box of the ...
1
vote
0answers
333 views

Add Product categories to Wordpress menu without losing hierarchy

I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy I tried with WP-CLI, but there is no method to specify wich item is the child. ...
0
votes
0answers
751 views

Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce]

I am trying to add a conditional Login/Logout button depending on the user role. (if the user is logged in or not). I have gotten this to work, but only when accessing the menu items as a string and ...
0
votes
1answer
155 views

Add (grand)child pages automatically to nav menu

I want my submenus to be generated automatically. I've used some plugins for this, but after a while they don't get updated anymore or they have a conflict with the theme I use. I followed this ...
0
votes
1answer
35 views

How to have submenus collapsed until they are clicked?

I have couple of main admin menus and sub-menuse underneath them. Main menu1 Sub menu 1 sub menu 2 sub menu 3 Main menu2 Sub menu 1 sub menu 2 sub menu 3 Like ...
2
votes
3answers
1k views

Generate a Menu that displays all child pages of top level parent

I used this answer's code to generate a widget that displays all subpages of the parent's page: if (is_page()) { global $wp_query; if( empty($wp_query->post->post_parent) ) { $parent = ...
0
votes
1answer
90 views

Custom Walker menu depth opening problem

I'v create custom categories walker menu: <?php /** * Show Categories menu * */ $seller_id = (int) get_query_var('author'); ?> <aside class="cat-menu"> ...
1
vote
0answers
91 views

Possibilities for the edit.php admin panel? [closed]

Here's my scenario: I'm building a Wordpress backend that links two custom post types for an HR department: Job Listings and Applicants. Job Listing posts are created manually by the HR admin. ...
0
votes
1answer
135 views

After moving my site, sub-menus are not showing [closed]

After moving a WordPress site to a new host, my sub-menus on the main nav are not dropping down on hover. I notice in the Source file that the code for all the sub-menus is there but is greyed out. ...
0
votes
1answer
132 views

Getting parent object_id of child menu items in WordPress menu

I am building a menu for a client that grabs custom field data from the top level menu item's pages and adds data-color to that menu item. I have that part working no problem. The issue I'm having is ...
0
votes
1answer
151 views

get_the_title() gets printed out twice

I made a script which checks if the currently viewed page has a parent page and if it does, it prints both the parent title and child title. But if there is no parent page I still get a title of the ...
1
vote
0answers
142 views

How to retrieve parent menu item name of current submenu item

I have a menu item Services which has 5 submenus. Now when I click on one of those submenus, like Flexible Endoscopes I manage to echo the title of child item or current page title. But I can't find ...
0
votes
2answers
947 views

Wrap list parent in div with wp_nav_menu menu

Hello I have a menu with parent and children. Here is the code I am using to display it: <?php wp_nav_menu( array('menu' => 'Main Menu')); ?> This spits out something like this: <div ...
0
votes
1answer
288 views

Admin - Custom Post Type in WooCommerce menu - how to control menu order

I'm using WordPress 4.9.1 and WooCommerce 3.2.6. I have added a new Custom Post Type (Subscriptions) and inserted the menu item under the 'WooCommerce' menu in the admin panel using 'show_in_menu' =&...
0
votes
2answers
42 views

Incorrect Behavior on Wordpress Main Menu

On my WP site, I want to create a menu which includes sub-menus inside a dropdown. I structured my menu to be like this: From what I have seen from several WP tutorials on the web. It is expected ...
0
votes
1answer
198 views

How to access into the description of a sub menu

Well, I'm trying to get the description of a menu item and of a sub menu with the code attached below, but I'm not able to get it. I'm trying to get the description of "About us" and the description ...
0
votes
1answer
311 views

Get the page IDs of a Particular Menu item's submenu

I have been searching. And searching. I have found many, many ways to get the submenu, but they all seem to include the <li> and classes. I do not want that. I want to get an array page IDs of a ...
0
votes
1answer
89 views

Generate Submenu based on Parent Page using If Statement

I need to pull a sub-menu depending on the parent page (or section) of the website. I have three sections (Our Inn, Our Restaurant, Activities) each requiring an individual submenu that my client will ...
0
votes
1answer
1k views

Show parent categories and sub categories but not grand children categories

I'm struggling with displaying sub categories limited to only direct children of the parent on category page... I hope someone can help me with that :) I have working code - when the current category ...
2
votes
1answer
1k views

How to give position to Submenu under custom post type

I am trying to add submenu under my custom post type and i succeeded also but it shows just under the post-type, i want to show it under the taxonomy. How to give a position to the newly created sub-...