Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
18 views

what is the best js script to use in the menu in WordPress? [on hold]

Hello everyone I'm developing a theme in WordPress and I was wondering what was the best js plugin for the menu in WordPress. I was looking for something responsive and accessible (from the keyboard, ...
0
votes
1answer
10 views

How To add this tag <div class=“sub-menu”> before drop-down ul. in wordpress

<ul class="nav navbar-nav" id="hover_slip"> <li><a href="index.html">Home</a></li> <li class="arrow_down"><a href=...
0
votes
1answer
8 views

Need Help Regarding Menu Magement in admin

We have a very big mega menu around 800 product categories with it, It working fine in frontend but having issue with backend menu manager. The page is not even opening and giving memory exhausted ...
0
votes
0answers
17 views

Unable to get Navigation Menu to display in the desired location

I'm trying to add a menu to my header right next to the products menu dropdown, right here: (highlighted in green) I've added the following code to my child themes function.php file: // Regster ...
0
votes
0answers
14 views

Theme Lambda menu bar not showing up properly

I'm using wordpress with the lambda theme and my menu bar isn't showing up properly. The first four or five menu items are clipped. Only showing the last one. You can see this via the link provided: ...
0
votes
1answer
21 views

PHP Warning adding menu

(sorry for my english...) I have an issue...: I can't add / translate menus in my admin. I have this error in debug.log : PHP Warning: strip_tags() expects parameter 1 to be string, array given ...
1
vote
1answer
11 views

Add custom external link to menu

I have added few custom external links to my menu and they all link to 1 website but with a few subfolders, so the urls look pretty much like this: website.co.uk/web1/web2/web3/folder1\folder2\...
0
votes
0answers
18 views

Wordpress Navigation Menu (current-menu-item) is not Showing

I have created a menu called "Main". and i am displaying it by calling : and in function.php: and the output is: As You Can see none the (current-menu-item) nor the (active) class is showing the ...
0
votes
0answers
5 views

Trying to add nav menu to header

i'm completely new to wordpress and am trying to figure it out on the fly. I'm currently using the shop isle theme. The theme natively supports only one menu. I've added the code necessary to the ...
0
votes
0answers
8 views

CSS for responsive menues [closed]

Is it possible to use different CSS for responsive menus, depending on how they are shown? If yes, how?
0
votes
0answers
9 views

Create submenus per drag and drop

I am trying to create a menu and submenus in wordpress using drag and drop but again and again it is giving me output in that way. Here categories is a root menu in that i am trying to create ...
0
votes
1answer
13 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
2answers
29 views

How to reference argument data for wp_nav_menu() from functions.php

I would really like to keep my template files as clean as possible, without including too much argument data. Is it possible with the following example... $args = array( 'theme_location' =&...
0
votes
0answers
14 views

Sub-menu gets hidden under div

I have a problem with my secondary menu, the dropdown is hidden, and I tried changing the z-index, but didn't work. http://database1.temava.com/ -if you hover over About you'll see what I mean. Thanks....
0
votes
0answers
17 views

How can I add a logo to the hamburger menu?

I have a mobile hamburger menu setup, but I am having trouble adding my logo to the left of it. This is coded to go against the theme. Any idea on how I can add a clickable logo to the left of the ...
-1
votes
0answers
18 views

How to display posts according to custom field values?

I want to add custom field values as menu items. just like categories appear in menus. And on clicking on them the posts to which they are related will appear... is there any way to accomplish this? ...
0
votes
0answers
14 views

Add number in increment of one to menu items

I'm trying to add sequential numbers to menu items in increments of one. So right now where I have the following: <li class="menu-item menu-item-type-taxonomy menu-item-object-category"></...
0
votes
1answer
21 views

Bring Font Awesome icons inside menu A tags

I'm using the underscores _s bare bones theme and have made a second menu for which I've added font-awesome classes to the optional CSS-classes for the menu's navigation labels to produce icons ...
0
votes
0answers
19 views

WordPress theme editor not showing

Why can I no longer see the Appearance > Editor function on the left hand menu in WordPress? It won't show up regardless of the theme. It used to be there before though correct? I wanted to add some ...
0
votes
1answer
17 views

Difference between “Walker_Nav_menu” and “walker”

Does anyone know what is the difference between extending Walker_Nav_menu and walker. I learned about Wordpress Nav Walker and found several different tutorials. Do they extends different classes ?
0
votes
0answers
18 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
16 views

Is the last item treated differently when using wp_nav_menu()?

I have tried many CSS rules (margin, padding, width, box-sizing, overflow) on all elements involved, the border to the right doesn't show at hover. The pink behind it is the top ul element for the li'...
1
vote
1answer
26 views

Wordpress navbar with logo in middle [closed]

I was searching for something that could help me with query but could not find a understandable solution. What I am trying to do is show the site logo in the center of menu. I have checked the split ...
0
votes
0answers
23 views

How to fix “Supplied nav_menu_item value missing property” after update to Wordpress 5.0

Please help. We have page on WordPress with our custom theme and minimum plugins. After update WordPress from 4.9 to 5.0.2 we have error in the admin page on Themes => Customize. Everything else is ...
0
votes
0answers
26 views

Is it possible to programmatically add a menu item to a specific menu (not to 'display location')

I've developed a plugin that adds a menu item to a navigation menu using the wp_nav_menu_items filter. It works well, but unfortunately i'm having some problems with Elementor which seems to not use ...
0
votes
1answer
20 views

Custom menu is rendered in all menus

I am currently working on my own theme. In this theme I want two menus topmenu and bottommenu. In the functions.php file I have the following code: // This adds the support to add a thumbnail and ...
0
votes
1answer
7 views

Primary menu items are dissapearing

on my website, www.trutrade.org the primary menu items are disappearing after I click the first time any of the menu items. when I goto the second page, the menu items are not seen, I need to hover on ...
1
vote
1answer
17 views

Header style different on home and remaining pages

Would it be fairly simple to add different site header and menu styles and assign them to specific pages? I have very basic understanding of how CSS and php work and managed to customise the theme but ...
0
votes
0answers
14 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
2answers
24 views

Reverse the order of <li> and <a> in a wp_nav_menu

I am trying to invert the order of <li> and <a> in a wp_nav_menu, since for a responsive mobile design I like more when the click is done in all the <li> and not only in the word / s ...
0
votes
1answer
44 views

Admin-ajax.php 500 error when Add to menu is clicked in admin

In the WordPress(V 4.9.9) admin panel when I click the "Add menu item", the never ending spinning wheel starts and I get the admin-ajax.php 500 error in the console. The error is something as below ...
0
votes
0answers
21 views

Menu and category highlighting for a single post

I use custom page menus and category list. The theme I use includes css styles to highlight the menu and archive. My goal is to highlight them for a single post. For example, the link structure I use ...
0
votes
2answers
25 views

How to change the color of a menu item [closed]

I want to change color to red for one menu page "Logowanie". Anyone help how I can do it ?
0
votes
0answers
8 views

Appearance menu boxes not showing all the pages in view all

I have created my pages in order. Now when I move in Appearance->Menu when I click on View All pages not all the pages are showing. How can I resolve that, how can I show all the pages that I have in ...
0
votes
1answer
29 views

clickable toggle menu, help

I'm trying to edit the toggle menu so that instead of having to click on the icon near the menu, the menu would open up by clicking on the words instead. How to do this? I understood how to remove ...
0
votes
0answers
27 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 ...
-1
votes
1answer
18 views

Add a navigation menu item using MySQL

I want to insert Wordpress nav menu items into MySQL using PHP. I dont think i can use wp_create_nav_menu() because I need to build a preliminary menu from the categories (over 100 cats!) then a ...
0
votes
0answers
26 views

dot.com/car1 does work, but dot.com/transport/car1 doesn’t work

index.php $args = array( 'posts_per_page' => 5, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => array('car', 'bus', 'boat'), //plugin pods ); $query = new WP_Query($args); ...
0
votes
0answers
21 views

Splitting stacked navigation into two columns for mobile

I'm new to HTML, taking my first class at university now, so apologies if this is a dumb question. I have a stacked navigation which I want to split into 2 columns when downsized for mobile use, but ...
0
votes
0answers
14 views

How to add a custom page as menu item “selection”?

Sorry for the confusing title; I do not know how to explain this in one question. I want to add a navigation item that can be added to menus. In other words, I want to write a function that will ...
-1
votes
0answers
22 views

Font Awesome, some square icons

I have some font awesome icons working and some not. I had 3 out of 6 working, I added the lastest CDN of Font Awesome to the functions.php of my child theme like this: add_action( '...
0
votes
0answers
22 views

Toggle button into Twenty Fifteen theme problem

I'm trying to remove the small square near the toggle menu and have the actualy words of the menu clickable instead. Address of the website is: http://maayanboni.com Anyone can help by any chance? ...
0
votes
0answers
20 views

Why Can't I get the data-div working in this navigation menu in a WordPress theme using Bootstrap?

I'm having a very difficult time getting a navigation working on this site which is a WordPress site using a Bootstrap starter theme. I inherited the site and would like to get the navigation working ...
-1
votes
0answers
9 views

Create a default parents for children pages that have the same parent in the menu

Here's my problem: I'm building a website and my goal is to create a nice menu that will interact with the pages. So far so good, except for one problem. The structure of my menu is something like ...
0
votes
1answer
30 views

Cold Fusion to Wordpress

I've been tasked with moving a website from cold fusion to wordpress. In the old site there are several templates that are brought into the site via cfinclude. I've coded most of a custom wordpress ...
-1
votes
1answer
242 views

Notice: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in …functions.php on line 73

When I tried to edit my menu, it appeared HTTP ERROR 500 Then I set define('WP_DEBUG', true); in wp-config.php Once I try to save the menu, the following error appears: Notice: Use of ...
0
votes
1answer
24 views

Roles see different top menu (nav menu)

I'm new to WordPress but has some knowledge in HTML, CSS and and a little of PHP. I'm trying to make a new menu in "top menu" that will be hidden to users that are not admin, but will appear to admin ...
0
votes
0answers
18 views

different homepages and one main homepage

I want to create on one website different divisions each with its ows menu and homepage. in other words" I you enter the website that will be the Main Homepage. On this page I want to put 4 pictures....
0
votes
0answers
15 views

wp_nav_menu() filter - preg_replace value returned wrong

I'm having an issue where the filter I've added to wp_nav_menu() is adding code to the second level of the navigation. How can I change the filter or the preg_replace code in a way that only adds it ...
0
votes
1answer
25 views

Count top level menu items

I need to get count of top level menu items. I have menu with 5 items and of of them has 1 submenu. This is current situation, but the user using the theme I am building may have some different ...