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
0 answers
6 views

Add a new menu selector element into WordPress nav-menus.php

How to build a custom menu selection element in the Menu admin (nav-menus.php) section of WordPress similar to how custom Posttypes/Taxonomies are automatically added in when created and then users ...
samjco-com's user avatar
0 votes
1 answer
18 views

Override theme hamburger menu to work without javascript (noscript)

What wordpress hooks can be used to override how the primary menu is displayed in my wordpress header's navigation menu -- ideally in a way that will work cross-theme. I need to build a wordpress ...
Michael Altfield's user avatar
0 votes
0 answers
6 views

custom post type dynamically shows in menubar in wordpress

I am developing a hospital website in wordpress. For that I make a custom post type "Services". All the hospital services (ex:ICU, CCU, NICU, Emergency etc) are going under this "...
Raff's user avatar
  • 1
0 votes
1 answer
40 views

Add line break for menu items

I have some items in my menu that I would like to be set on two lines. For example I have these items : Home - Get in touch - Contact us For the item "Get in touch" i would like the "in ...
Peter's user avatar
  • 1
0 votes
1 answer
9 views

Customized Divi Theme Needs more Menus

I have a customized Divi theme built by a marketing agency that I no longer partner with. My theme only supports three menus (header, secondary, and footer), which are all used; however, now my not-...
Rissa Guffey's user avatar
0 votes
1 answer
52 views

Creating a dynamic bootstrap tab menu for WordPress

I'm trying to create a dynamic bootstrap tab menu for WordPress. I showed the categories as a menu on the front page. According to the menu title, the correct loop result does not appear and I click ...
wws34's user avatar
  • 1
0 votes
1 answer
19 views

Wordpress multisite sharing menu having working current_menu_item class

On wordpress multisite, I have added code as bellow to have shared menus for all sites. <?php $blogs = get_sites(); foreach( $blogs as $b ){ $b-&...
Swaranan Singha Barman's user avatar
0 votes
0 answers
12 views

Conditionally get ACF field in Wordpress nav walker based on parent menu item?

I am building out a mega menu for a site and I have some ACF fields set up that I want to display in each of the sub-menus in the navigation. I want to specify which field to used based on which ...
user13286's user avatar
  • 403
0 votes
1 answer
46 views

Render link description in navigation block

I use Navigation block (Navigation menu) for my header menu. The problem I faced is that I can't render on front link description for the menu items that has children. I tried walker_nav_menu_start_el ...
oshka's user avatar
  • 1
0 votes
0 answers
8 views

How to erase space above menu bar? Or just erase "first row" entirely

Summary: The space above the menu and at the end of the website cannot be erased. I use theme Blocksy. Now the menu is not attached to the top.enter image description here Question: Do you know how to ...
AyoBonaire's user avatar
0 votes
0 answers
23 views

Prev/Next links that follow a custom menu order?

Is there a way to include prev/next links that follow a custom menu order? For example, let's say I have a custom menu set up like this: Project 1 Project 2 Subproject 1 Subproject 2 Project 3 I ...
Desi's user avatar
  • 1,199
0 votes
1 answer
23 views

I only want to show links to categories that have posts in 'publish' state in my menu

I am working on a WordPress project where I want to dynamically filter menu items (and possibly their parent items) based on whether they are associated with any published posts. Specifically, I am ...
CodingWeb's user avatar
  • 101
0 votes
0 answers
16 views

Delete Accordion

im new here. Im not even sure if this called accordion or not. Ive been wanting to delete it but dunno how. Its a section one of my menu.
Jay's user avatar
  • 1
0 votes
0 answers
8 views

WooCoomerce: cannot change menu color on the woocommerce pages only

I have a problem with the transparent header. While it looks good on the main pages, in the shop, cart, and checkout pages of WooCommerce, the transparent header doesn't work because the menu items ...
Mary's user avatar
  • 1
0 votes
0 answers
18 views

Can I create main menu without using built-in menu

Can I create the main menu in the header.php file without using - without Appearance--> Menus without register_nav_menu() without walker What are the disadvantages? My navigation markup: <nav ...
kmadhu's user avatar
  • 1
0 votes
0 answers
19 views

Moving active menu item onscreen for mobile

I've created custom CSS to change my wordpress menu into a horizontal scroll for everything under 1057px. I've researched for hours on how to scroll the menu item onto the screen when selected. Any ...
Betsy Petrovic's user avatar
0 votes
0 answers
37 views

Remove Wordpress Menu Classes and ID with Bootstrap Walker

How to remove generated WordPress menu classes and id and only keep the Bootstrap recommended ones without affecting the functionality of the Navbar. I found this code which looks good and I've ...
David Buik's user avatar
0 votes
0 answers
45 views

Having issue in wordpress website homepage showing invalid page and not showing url header section

Saloni here. My issue is with my WordPress website. Actually, I am working on my website, and in that homepage section, it shows an invalid page in the menu section, but when I open my website's URL ...
SALONI JOSHI's user avatar
1 vote
2 answers
16 views

How to determine if WP_Customize_Nav_Menu_Item_Setting is a 'taxonomy' type?

I'm following the answer given for Add settings to menu items in the Customizer. I'd like to inspect if a menu item is of type taxonomy. However, get_post_type returns nav_menu_item. How do I dig ...
Diana's user avatar
  • 121
0 votes
1 answer
36 views

Live site menu links pointing to staging site pages

We have recently published our staging website. However, the header menu links on the new live website are still pointing to pages in the staging site. How do I make links in the header menu on the ...
C2B593's user avatar
  • 1
0 votes
0 answers
37 views

nav_menu_css_class add_filter is never called

I try to use nav_menu_css_class filter with add_filter in worpress but it seems that it's not working ( i tried an echo or diein the function but never acces it). I just added a register_nav to add a ...
amir nadji's user avatar
0 votes
0 answers
27 views

Menu for all posts from multiple categories

This seems like a basic question but I couldn't find answer anywhere. I have 300+ posts and 15+ categories on my website and I'm unable to create a menu to link to all the posts from all categories. I ...
Nikita Gupta's user avatar
0 votes
0 answers
13 views

Wordpress menus: Change URLs

I am new to Wordpress. I use it with Avada and Avada Child Themes. I have not set up the site, I only administrate it. In the following I will name all pages (sites, products, calender, ...) as "...
deified's user avatar
0 votes
0 answers
65 views

Mobile submenu, only the little arrow next to submenu name is clickable

I am using astra theme on my website and have this problem: Mobile submenu link that has little arrow next to it, it expands revealing other submenu items when clicked. It is custom link that I have ...
Luka Pecanac's user avatar
0 votes
1 answer
267 views

How to hide an item from nav menu on desktop view?(without plugin)

so I am using elementor for developing the website and in my primary header I have the logo, Nav- menu and button. Now what I want is I want to hide a specific item of Nav-menu on desktop but make it ...
Pratigya Rana's user avatar
0 votes
1 answer
61 views

Main Menu Hover is Always White

My Main Menu Hover color is always white. I used to be able to just change it in the customizer but that stopped working so I've tried every kind of CSS I can find, gone through inspecting it, tried ...
Cabin Puppets's user avatar
0 votes
0 answers
50 views

Customize when the mobile menu triggers in WP 6.2.1

I am trying to customize when the default WordPress mobile menu triggers. It appears right now that the responsive menu kicks in at min-width: 600px. I would like it to trigger at 800px. I was hoping ...
Marc P's user avatar
  • 513
0 votes
1 answer
11 views

Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another

I am trying to remove the header and footer menus from this page (https://revrex.com/revrex-banking-onboarding) so that it is just blank with the embedded demo. I got the Conditional Menus plugin to ...
Nickie's user avatar
  • 1
0 votes
0 answers
17 views

Country selection / country-specific menu

Client makes a malaria drug and it has a few pages that are for specific countries only that will be rather boring for a user to select again and again that they want to see e.g. the information for ...
BeX's user avatar
  • 1
0 votes
1 answer
43 views

register_nav_menus() not registering

I'm following an udemy tutorial and can't see where I'm going wrong. The menu is not showing up in WP admin's Menus. In the tutorial, they add this code, then click customize>menus and it's listed ...
Fio's user avatar
  • 1
0 votes
1 answer
18 views

I need to change the hyperlink attached to the logo on the mobile menu

I am struggling with this thing for 2 days. I have a hamburger menu and I want to edit the logo which is displaying in there. I could access the content in Appearance > Menus such as custom links ...
Abdelhalim Aljaml's user avatar
0 votes
0 answers
14 views

Unable to order my menu by dragging

I see many have had a similar issue but haven't yet found the answer to my problem specifically. I am unable to order my Menu through Appearance > Menu and then dragging the items. I can only order ...
Nicky's user avatar
  • 1
0 votes
1 answer
143 views

Give custom class names to WP nav sub-menu

I'm creating a menu that will have sub-menu > sub-menu > sub-menu. The styling is really involved so ideally I could rename the class name "sub-menu" based off what level of sub-menu ...
Kyle Klaiber's user avatar
0 votes
1 answer
112 views

Can't add custom post type archive page to menu

I cannot add this custom post type archive page to any menu from the admin. Adding via the front end customizer works fine. Viewing the archive page on the front end also works fine. My custom post ...
Tommizzy's user avatar
0 votes
0 answers
21 views

Custom Menu (only showing direct cildren) ACF not showing

I have working codes for both problems, but can't combine them. following code adds the acf in a standard menu: function my_wp_nav_menu_objects( $items, $args ) { // loop foreach( $items ...
Thomas's user avatar
  • 1
0 votes
0 answers
9 views

Adding fontAwesome to Primary Menu returns <i></i> after saving the menu

Tried all possible alternatives to have the fontawesome icons displaying in the menu but can't figure out why isn't working! trying deactivate all plugins and still doing the same tried switching ...
SuperAtic's user avatar
  • 149
0 votes
0 answers
15 views

Rename Menu icon in Twenty seventeen theme

Please, how can I change the name of this Menu to my language? Circled in the picture, thank you in advance
Lucija's user avatar
  • 1
0 votes
0 answers
10 views

Problems with the navigation menu

I detected this problem with google speed. on the desktop / accessibility side How do I solve this problem? If I disable the navigation menu, the problem disappears. Where and what should I add? The ...
Daniel Pop's user avatar
0 votes
0 answers
63 views

Custom nav with bootstrap dropdown

So I have a menu with this structure: Here is my code to get the menu: <?php $menuLocations = get_nav_menu_locations(); $menuID = $menuLocations['main-menu']; $primaryNav = ...
user2551750's user avatar
0 votes
0 answers
22 views

Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size

I only have a few menus in my nav, and I don’t think a hamburger menu has the appropriate look for my mobile site. Anyway to force it to look like it does on the desktop?
Ethan Allen's user avatar
0 votes
0 answers
125 views

Adding a navigation with wp_nav_menu() to a custom block in the site editor

I'm using the create-block package to build a custom navigation block, and I'm running into an issue with getting the menu to display in my edit.js file. In my render.php file i have: <nav> &...
Hjude_design's user avatar
0 votes
0 answers
15 views

Wordpress Menu - Adding a new dynamic element to the menu

Is there a way to add a new element to the menu selector in WP? I mean adding an element here That would refer to a php function for its output. Use case: I need to put in the language switcher of ...
Fredy31's user avatar
  • 858
0 votes
0 answers
48 views

Add button and title on submenu WordPress

I would like to add a "Back" button and menu title on the submenu but I do not know how. I am guessing to use wp_nav_menu_items() filter but I am not 100% sure how to start. Here's what I ...
ddd's user avatar
  • 7
0 votes
0 answers
69 views

How to remove category and other tags from posts page

On my website I have a primary menu. Under this menu, I have links for categories. When a user clicks these menu links, they're redirected to a landing page with all posts that are marked for that ...
Pitmaster's user avatar
0 votes
0 answers
29 views

Nav menù doesn't display selected pages

I've included Elementor inside my custom plugin and now I'm creating my wp site layout. I've noticed that my nav menu will show all the pages I have created for my website, but from the settings I've ...
ICTDEV's user avatar
  • 113
0 votes
0 answers
105 views

Wordpress menu empty of items

Intermittently, every few weeks, the menu appears empty of items. I have not determined a pattern or cause. The menu no longer appears on the website in this state. This fix is for me to add an item ...
Alexnl's user avatar
  • 307
0 votes
0 answers
21 views

One item on menu is not clickable when it should be

So basically all items of the menu should be clickable, and usually, I only have to add it to the menu and it will be clickable (doesn't matter if it's parent-child) but this specific category is not ...
Leen's user avatar
  • 1
1 vote
1 answer
832 views

WordPress nav Walker - Bootstrap 5.2.3 - submenu not opening

I'm trying to integrate WordPress Nav Walker with a two level dropdown, so: URL -URL2 --URL2 --URL23 I am using this code: wp_nav_menu(array( 'theme_location' => 'main-menu', ...
Pbalazs89's user avatar
  • 115
0 votes
0 answers
195 views

How to change mobile menu (toggle) icon in Wordpress - Full Site Editing?

How to change mobile menu (burger) icon on Wordpress 6 using their new full site editing feature or possibly with some plugin? I would like to replace their default burger and close icons to add ...
DearBee's user avatar
0 votes
1 answer
52 views

How to add more than one menu for logged in members?

I have the following code to show different menus to logged in members. I would like to add a second menu to be displayed when logged in, for a total of 3 menus, as there are two different menu areas ...
kerfuffleslop's user avatar

1
2 3 4 5
64