Questions tagged [sub-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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
1k 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
176 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
167 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
vote
1answer
4k 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
134 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
1k 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="...
4
votes
3answers
12k 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
42 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
3answers
3k 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
22 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 ...
2
votes
0answers
832 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
1answer
2k views

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

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
296 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
105 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
3k 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
204 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
136 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
169 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
731 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
253 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
288 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
2k 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
575 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
137 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
320 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
1k 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
245 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
2k 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
2k 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-...
0
votes
1answer
442 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
8k views

How to add a submenu toggle button inside all “li” elements that have a submenu?

I'm building a mobile navigation menu. I wan't the menu to work like this: In this image you see a mobile nav with multiple depth levels. This is how I wan't the code structure to look like: <ul&...
0
votes
1answer
358 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
1k 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
2k views

Custom Nav Walker sub-menu

I am trying to change the markup of my main menu. Currently I've got the following code when my menu is generated : <ul id="menu-menu" class="menu vertical medium-horizontal"> <li><...
0
votes
1answer
36 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
73 views

Change font and Colours in Menus

I am new to WP and hoping to get some help. I am well on the way to building my new website, but have some small detail issues. I would like to change the font, size and colour of my Menu titles, and ...
0
votes
1answer
45 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
829 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 ...
0
votes
2answers
445 views

Creating menu always gives error A name is required for this term

I have 2 menus. Main Navigation Footer Navigation And 3 locations: Top Bar Navigation Main Navigation Footer Navigation If I try to create a new menu, wp displays error A name is required for ...
0
votes
1answer
316 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
99 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
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 ...
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
101 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
89 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
379 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 ...

1
2
3 4 5
7