Questions tagged [sub-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Creating sub-slugs without actual parent page

I would like to create individual pages for each member within a team: http://www.example.com/team/person-a http://www.example.com/team/person-b In the navigation menu I provide a parent entry ...
0
votes
0answers
12 views

Main Menu Appears But Sub Menu Does Not Appear

I have added the top menu code below as follows. Home page names are visible, but sub pages are not. How can I fix. $defaults = array( 'theme_location' => 'header-menu', ...
0
votes
0answers
6 views

Plugin Menu appears twice in Super Admin

I am buliding a plugin and have different menu options based on different user-role in wp-admin. I have user role as Administrator, Subscriber since lastweek we had migrated to Multisite Admin and we ...
0
votes
0answers
28 views

MultiLevel Drop down is not working in Divi Theme with click or enter technique

I wanted to change the hover menu dropdown to click or enter for accessibility reasons. I am able to make the dropdown buttons work on a single level but not on multilevel meaning a dropdown menu is ...
1
vote
1answer
33 views

Position image widget in mega menu

I need to add image in mega menu. So I have added image widget in menu. How can I reposition this widget. Currently my menu is showing like this. But I need image only in the right side, and sub ...
0
votes
1answer
19 views

How to change the URL of sub menu page?

I'm trying to add a sub page under users in admin panel and everything works fine but I have a little problem when clicking on the created page the url changes and refer to my page as query string not ...
0
votes
0answers
14 views

Wordpress Nested Menu Items Wont Nest

I have a menu and just added some nested items but they're currently only showing in one row. Any ideas why they're not nesting even though they are nested in the Wordpress menu dashboard. Here's the ...
0
votes
0answers
22 views

Add a custom menu item to BuddyBoss Account Settings page

TIA - I'm relatively new to Wordpress/BuddyBoss so I'm a little lost. In BuddyBoss, when a User navigates to their Account Settings page there is a sub nav that gets loaded. I'm trying to add custom ...
0
votes
1answer
17 views

How can I creat custom menu with bootstrap

I'm trying to create bootstrap collapsing navbar for WordPress template. I have to add some HTML properties such as data-toggle. After researching, I found that must customize the Walker class but ...
0
votes
0answers
15 views

Notices are render inside sub-menu's content

I develop a plugin but I've got a problem when I render sub-menus (added with the hook admin_menu). At the moment of the callback, I render the content with the following: <div class="wrap"> ...
0
votes
0answers
9 views

How to apply a class to nested sub-items of a menu?

I am trying to replicate this drop-down menu in a Wordpress theme: But I've spent my whole week to only get this result: (The sections items are properly handled, but their sub-items are a mess! "...
0
votes
1answer
67 views

Change hover to onclick on menu

I've got a local website on WP using DIVI where a header menu got some "menu-item-has-children". In way to view these sub-menu, I just have to hover on it and when mouseout the sub-menu disappear. ...
1
vote
0answers
23 views

Add toggle button for mobile sub-menus

Been playing with this for hours but not getting anywhere, please help! So I have a menu which works fine for the sub menu dropdown on desktop. What I want for mobile menus is for their to be an ...
0
votes
0answers
22 views

Menu sub-items not showing on mobile (understrap)

I'm building a website using understrap-child theme. I've got a navbar with a lot of items and sub-items (up to three levels). I've set the navbar depht to 0 since, according to the documentation, it ...
0
votes
1answer
15 views

wp_nav_menu container style args

I am trying to add CSS from a html theme that I included. When I add my primary menu function that I defined to load my menu section I don't know how to include CSS as it return a defult ul style. ...
1
vote
0answers
12 views

disable menu collapse/expand function and make a menu item a static, unclickable text

In my side menu, I have this structure: Home Discussion |- Topic 1 |- Topic 2 |- Topic ... |- Topic N About us where Topic 1...N are sub-menu under "Discussion" and links to different pages. The ...
0
votes
0answers
39 views

Bootstrap Theme Migrated to WordPress

Looking for your expertise, as I'm fairly new using WordPress and I'm in the process of migrating bootstrap theme into it. Problem: I have a navigation menu in the header and want to have a ...
0
votes
1answer
112 views

Wordpress + Bootstrap: Replace primary navigation menu on mobile?

So, I have a site that has a main navigation bar at the top and a secondary nav in the sidebar. The secondary nav includes the same links in the main nav but with dropdowns for the child pages. It ...
0
votes
1answer
43 views

How to add all subcategories as submenu in WordPress menu

I've more than 450+ WooCommerce product categories and subcategories. I want to add them all in the menu items, categories as a top level menu and subcategories as submenu. Is there any way to ...
0
votes
0answers
120 views

Theme: dropdown hover menu not showing up in IE/Edge

I'm using the theme Illdy, and the hoverable dropdown menus on the top navbar are not dropping down in IE or Edge. Firefox and Chrome appear to work. I've tried adding a variety of these to the ...
0
votes
2answers
56 views

hide page menu from admin panel for specific users

I want to hide page menu from the admin panel for a specific user type. I tried it with the below codes in functions.php function hide_menu_items() { global $menu; global $current_user; ...
0
votes
0answers
22 views

having a page in multi sub-menu and match current-menu-item

On a website I develop, some pages are in several sub-menus, like so: home | product category a | products category b * product a * product c * product b * product b --...
0
votes
1answer
64 views

Use a filter on menu items that have children

I have a nested dropdown. On elements that have children, I would like to add a chevron beside the link text. The current HTML looks like this: <ul class="primary-menu"> <li class="menu-...
0
votes
0answers
20 views

Generating customized menu based on product categories

Product categories and sub (and sub sub) are based on a feed from my supplier. Which they have their own way of categories things. This doesn't suits me. As I'd like to shift things around and ...
0
votes
0answers
421 views

Problem add submenu page

I have no access to my menu. I am using the template Prolingua which I customized as well as wordpress. Here is the error message : add_submenu_page is called the wrong way. The seventh ...
1
vote
0answers
16 views

Hierarchical menu nesting problem with jQuery targetting

(Wordpress's menu use the form <li class="menu-item-has-children"> Item <ul class="sub-menu"> <li> Sub Menu Item</li> ... </ul> </li> ... which means ...
0
votes
2answers
77 views

How can I click the parent menu then redirect to a special URL?

You see I have a Navigation bar items, in the parent item Products & Services with two sub menus. I have a requirement, when I click the menu item Products & Services it redirect to its sub-...
1
vote
0answers
22 views

From a page, is it possible to find entry's “menu_item_parent”?

The idea would be to be able to retrieve a sub-menu matching a given page to display it as an aside on page. As an exemple, let's consider this menu: Home Outdoor MTB Rock climbing Running Hiking ...
0
votes
0answers
30 views

Separate categories from my submenu and their latest posts

I have a menu with <? php wp_nav_menu() ?> in which I integrated a Walker menu to be able to display the latest posts for each category of my submenu! It works, but I would like to have the ...
0
votes
0answers
15 views

Add icon based on recent post to Blog submenu in wp_nav_menu

I am thinking of adding an icon to my Blog menu title in Wordpress. Like a red circle indicating there are new recent posts. The wp_nav_menu $link_after and $after attributes apply to all menu items ...
0
votes
1answer
241 views

Hide product categories and taxonomy terms in menu if empty

I've been researching this and had no luck so far. I have a WooCommerce store with a main menu showing product categories (product_cat) and brands (yith_product_brand) which is a custom taxonomy. I ...
0
votes
0answers
84 views

Add CSS Class to Wordpress Menu Item Dependent on the Page the User is Visiting

I'm trying to have menu items show an underline under the related nav item when when the user on a specific page (image attached). In the static site version of the site I'm doing I had a php ...
0
votes
0answers
18 views

Why my dropdown menu is effecting main menu?

I have items in menu. And in one menu has drop down. I added in general way. But not working. It is breaking other menus. See the menu adding in wordpress.
2
votes
1answer
530 views

Custom Nav Walker Displaying Values in Sub Menu

I'm trying to display Submenu links within a Custom Tailwindcss / Vue component that I added within the Nav Walker. Menu Issues header.php <nav class="flex items-center justify-between flex-...
0
votes
1answer
183 views

sub menu link is not working

I am using a theme which is showing table of content by using this code : <div class="menu-panel"> <h3>' . __('Table of Contents', 'odrin') . '</h3> ...
0
votes
1answer
425 views

Adding toggle-able element after menu item

I've got this menu on my site: <ul id="menu-primary" class="offcanvas"> <li class="menu-item menu-item-has-children"> <a href="#">Parent</a> <ul class="...
0
votes
1answer
19 views

Submenu Page under Settings in Admin Panel

I have a quick question, I am wanting to add in a new submenu to the 'Tools' section on my Admin Panel but without modifying any of the original WordPress files such as (functions.php, etc..) files. ...
1
vote
1answer
89 views

Remove All in One Pack from the admin bar

Hello I want to remove All in One Pack from the admin bar. I can remove anything else but it. I have already removed other things like update from the admin bar using this method Get the menu's id ...
0
votes
1answer
23 views

Get Child of Child Pages in custom Menu

Got this bit of code which runs which gets the Page ID and displays all the children under it. Which is good. Part two of this is getting it to pull in the child of children items. So currently ...
-1
votes
1answer
51 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, ...
-1
votes
2answers
206 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
215 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
2answers
212 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
1answer
25 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
21 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
2answers
833 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
40 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
33 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
118 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
154 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 '...

1
2 3 4 5
7