Questions tagged [menus]

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.

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

Why do menus break on site url and folder change?

I just moved a site over from an old domain to a new domain (this means the server-side folder changes too). I replaced all instances of the old domain in the database with the new domain and couldn'...
-1
votes
1answer
26 views

MENU ITEMS FONT TOO BIG ON MOBILE DEVICE [closed]

Hi. I'm using salient theme. The menu font is too big on mobile device when viewed on portrait. See attached screenshot. Kindly help. Thanks.
1
vote
0answers
21 views

Remove metabox from WordPress menu editor page?

I'm trying to remove meta boxes added to the WordPress menu editor page from a theme, but can't seem to figure out how to do it, I found this answer, but I must be doing something wrong as it isn't ...
1
vote
0answers
11 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 ...
1
vote
0answers
29 views

current-menu-item class is not added

Trying to style the active class of my navigation menu on my one-page theme, I have noticed that wordpress does not assign the current-menu-item class. Why is this happening? Can you help me? It is ...
-1
votes
1answer
26 views

WordPress Menu & Boostrap 4 (is NavWalker still the way to go?)

This post would make sense to anyone who has tried to convert a bootstrap static HTML template into WordPress. Can someone please confirm whether the Navwalker GitHub repo is still the "go-to" ...
1
vote
0answers
13 views

How to use get_terms() in extended walker class

Desired outcome I have a custom post type and belonging to it, a custom taxonomy. I'm trying to get my child theme dynamically add the terms belonging to that taxonomy as a sub-menu under a certain ...
0
votes
0answers
8 views

Complex menu in WordPress

i'm new to WordPress. I am working on my own theme and wondered if this was possible in wp_nav_menu() to make? <ul class="c-nav-items"> <li class="c-nav-items__item"> <a ...
0
votes
1answer
24 views

How do I modify the <li> <a> <a/> </li> with wp_nav_menu()

I try to add an "alt=" attribute to the <a> of the menu in WordPress but I don't see the form, look in the whole template and I can't find information other than wp_nav_menu() <?php ...
0
votes
0answers
10 views

WP Bootstrap Navwalker not displaying 'current-menu-item' class

Here's how my output HTML <!-- Navigation --> <header class="nav"> <div class="nav__holder nav--sticky"> <div class="container-fluid nav__container ...
0
votes
1answer
20 views

change hover color of specific menu link

I'm trying to change a hover color of a menu link element. Normally this is really easy, but on this projet i'm not able to do it. remove url I need to change the hover color of "RESERVER" button ( ...
1
vote
1answer
15 views

'Users' and 'Appearance' have disappeared from dashboard menu

Recently when I logged in to edit my website, the Users and Appearance menu items had disappeared from the left hand menu from within the dashboard. Any idea why or how I get them back?
1
vote
1answer
31 views

Making nav menu sticky and transparent

I am currently having a hard time making it real. I am using a custom theme but there are no settings for the things i'm searching for. Now the header is transparent but not sticky. I want to make it ...
0
votes
2answers
13 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-...
0
votes
0answers
23 views

Why isn't my code working for WordPress adding different image sizes?

// Theme Setup function custom_theme_setup() { // Navigation Menus register_nav_menus(array( 'primary' => __('Primary Menu'), 'footer' => __('Footer Menu') )); ...
1
vote
0answers
15 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
1answer
15 views

Displaying Nav Menu

I want to ask if this <?php wp_nav_menu( array('theme_location' => 'primary') ); ?> get all the sub-menu automatically? I saw this one of my downloaded theme and it displays all the submenu ...
1
vote
0answers
9 views

WordPress menu link not working

My website menu link clickable, but its not loading. please give me an idea to fix it. This is my website link https://newbiz.design/ristoranti/ something blocking to to load this link, but ...
1
vote
1answer
16 views

Prev / Next menu item

I have a menu on the right-hand side of my website https://blazor-university.com/ Above the menu I want a link for the previous menu item, and the next menu item. I can't find anything that does this....
1
vote
0answers
18 views

Merging Two menus in the backend into one menu

I'm wanting to merge two menus (actually 6 menus) that are used throughout the site into one large menu. I don't want to do this with PHP as I want the menu to be displayed using Elementor. So far I ...
0
votes
0answers
10 views

Dropdown Menu Still Not Working [duplicate]

I do not mean to be rude by but there was an issue from last week that a fellow user attempted to explain without being fully clear and just left it hanging: Dropdown menu problem on homepage only? I'...
0
votes
1answer
19 views

How to create a Child & Siblings menu for a custom post type?

I am looking to create a menu that displays the child pages when on a parent page, but to then show the siblings when on any of the sibling's pages? -Car --VW --Ford --BMW -Bike -Motobike So ...
0
votes
0answers
14 views

Stuck while adding bootstrap navwalker class

I am stuck while adding Bootstrap Navwalker class in WordPress. All is going well, but when minimize screen to mobile view the Menu disappear. However the Search box is still showing. header.php <...
1
vote
1answer
33 views

Show comments menu in dashboard only if the site has comment

I would like to hide "Comments" menu in Dashboard until the site doesn't have any comments. I tried to do this with this below code, but doesn't works: function remove_mainmenu_pages() { ...
0
votes
1answer
31 views

use value returned from shortcode as menu item

I have a menu that I created in Appearance -> Menus. One of it's items is the company phone number which is set in the theme customizer. I have a shortcode that will return that number: /* shortcode ...
-1
votes
0answers
21 views

how to make a nav walker?

I have html like this <ul class="main-nav-list"> <li class="main-nav-list__li has-list" data-mb="quick-hover"> <a href="#" class="main-nav-list__link " data-mb="mobile-nav" title="...
0
votes
0answers
11 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
0answers
16 views

Append cart icon to end of main nav menu

I'm using a custom theme and want to append a cart icon to the main nav menu. This is my site. www.allianchemical.com/staging I used the theme_location to select for the primary navigation as it's ...
0
votes
1answer
18 views

How to Create custom xml file for demo content for custom theme?

I am created custom Wordpress theme. Now i need to create functionality for demo content import such as Pages, Posts, Widgets, media and menu. My question for demo content is possible for above ...
0
votes
1answer
23 views

Make title bar collapse when scrolling

Is it possible to make the title bar when scrolling so that it does not take so much of the text space? Right now it looks like this: I would like to make the middle bar that says "Berthelot23" ...
0
votes
1answer
23 views

How do I display menu in header without loosing styles?

I have downloaded a template and trying to convert it into the wordpress theme. How do I add the menu in wordpress and not loose styles that are applied to it? I have this code in my header.php <...
0
votes
0answers
14 views

Only the index.php/homepage open while other pages are not opening

I am developing WordPress theme on local server. Only homepage/index.php is working while other pages in menu are not opening. I applied the following: change "AllowOverride None to AllowOverride ...
0
votes
0answers
16 views

Is it possible to have submenu outside of menu element? I dont want submenu to be a child of menu

Well as title say: Is it possible to have submenu outside of menu element? I dont want submenu to be a child of menu.
0
votes
0answers
20 views

Different wordpress html menu markup?

I need to make 3 level menu. Dropdown tabbed style menu. The markup I get now is the default one: <div menu-container> <ul level-one-menu> <li> <a>Dropdown&...
1
vote
1answer
27 views

Jupiter theme Mega menu option not available

I am using WordPress Jupiter theme version 1.0 Wordpress version is 4.7.15 Mega menu option was enabled for some menu items and it was working perfectly for years. But suddenly from several ...
0
votes
1answer
21 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
16 views

Select Menu On A Wordpress Page

-1 I'm looking to add a "SELECT MENU" on a Wordpress page, where all 50 states are listed and when the user chooses a state, it would take them to the corresponding state page, like this: http://...
0
votes
1answer
7 views

For a menu custom link (without a link) a “#” is appended. Can this just be blank, i.e. NO link?

In the WordPress menu there are Custom Links which allow for the insertion of any link you want. But, I do not want any link there at all. I am referring to this: If I leave it blank then WordPress ...
0
votes
0answers
15 views

ACF color picker in wp menu items

I want dynamically change color for wp menu item <a>. I use ACF color picker, but i can't get acf color picker value in my code. var_dump is NULL function add_menuclass($ulclass) { $color = ...
0
votes
0answers
13 views

wp_get_nav_menu_item() does not return taxonomy items in menu

I'm using the wp_get_nav_menu_item to return an array of menu items, and create a pair of prev / next links at the top of all pages of my site. This works great as long as the menu contains posts and ...
0
votes
0answers
31 views

wp_get_nav_menu_items() with ACF

I'm creating a site with two menus. First menu (logo + page title). The only problem is my first menu I would like my client can be added his phone number and it is clickable and his Facebook link in ...
0
votes
2answers
52 views

How to automatically add counted number to navigation menu items?

In my website I need a navigation menu to show arrangement of my posts. So I need the navigation menu to count the items and display the number of every item as a label before the title of that item. ...
0
votes
1answer
13 views

No option to move blocks up and down. The bar for it simply isn't there

I make my website in Astra and I can't find the "move block" bar. I have tried a lot of things like uninstalling and installing astra again. I can show you the picture where there should be a move ...
0
votes
1answer
35 views

wp_get_nav_menu_items doesn't return custom post type item

I try to achieve a menu like this (this is the actual menu). There is a tree of projet coordinated by the wordpress menu that manage route and navigation. Here is a scheme of the menu and the ...
0
votes
0answers
15 views

Drop down Nav Menu

I have tried to implement bootstrap drop-dawn nav menu, as Walker_Nav_menu, but no luck, start_lvl working just fine, but cannot add items to <div class="dropdown-menu"> element. Here is a ...
0
votes
0answers
7 views

Custom link in main navigation breaks repeatedly

I have a weird glitch on a site I do some maintenance for, trying to figure out the source of the problem, The site is https://www.sosiologia.fi, and it has a menu that's a combination of internal ...
0
votes
0answers
9 views

ACF field in menu but outside menu wrap

I am trying acf in menu for but the problem is that i want to call its value outside the items_wrap separately also is there any other way than creating hook in functions.php , i search a lot but didn'...
0
votes
1answer
29 views

What is inside in $item in start_el function in Walker_Nav_Menu class

I want to know what are exactly inside the $item in start_el function in Walker Class. Thanks in advance
0
votes
0answers
13 views

How to render main header navigation bar across all WordPress pages

I am building a theme using the Highend plugin in WordPress. In Highend Options > Logo Settings in WP dashboard, I overrode the default logo to implement a custom logo. This new logo appears to render ...
0
votes
0answers
24 views

Multi-Level Nav Bar

Is there anyone here with a sample code for using walker class with multi-level function. I have a Nav walker class but it seems that it can only traversed to first element like this: <ul> &...