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

twentysixteen child theme - responsive menu - ham icon button not working - Cannot read property 'classList' of null

I am trying to convert this site http://buildandtest.atspace.cc/ into twentysixteen child theme. It appears that /js/menu.js in my child theme is not working as nothing happens when the ham icon ...
0
votes
0answers
19 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
0answers
25 views

Add A CSS Class To A Menu Item When A Custom Taxonomy Term is Present On Single Post

I have a situation where if I'm on a single post page for a custom post type, if a custom taxonomy term is present I want to highlight the main nav menu related to that taxonomy term. On archive ...
0
votes
1answer
12 views

Rename the label on a menu location which is already defined?

I have a menu location defined by a theme, I'd like to change the label from Header Menu to something else (but keeping all it's other settings as is), I can't find any suitable filters to do this ...
-1
votes
0answers
8 views

Is it possible to display a menu unique to each individual user profile?

Is it possible to display a certain menu, unique to an individual user profile that only that one account will be able to view. If so, what is the best way to do this? I want to be able to allow ...
0
votes
1answer
17 views

How can i show the mobile menu at 1030px? [closed]

my website theme is set up to show the mobile menu at 920px but it starts to break the design at 1035px. how can i set the mobile menu to be shown at 1035 px insted of 920px in this site.site link: ...
0
votes
0answers
17 views

wp_nav_menu slug in before item

how i can place menu item slug on before items like this: wp_nav_menu(array( "theme_location" => "mymenu", "menu_class" => "mymenu", "before_item" => "<span>$item->...
1
vote
1answer
18 views

Part of Menu Item Hidden on Header Menu

My business site is built on WordPress and I am using the "Shifters Lite" WP theme right now. My issue is: One of my primary menu item (designed as per my web-pages) is getting hidden on the Header ...
-1
votes
0answers
12 views

I have an issue styling custom menus and sub menus

my issue comes when if the parent is the selected page all child pages pick up the same styling. the same thing happen when a child have sub-items.. if the child is selected all sub items get the ...
0
votes
0answers
21 views

How to use wp_nav_menu() or wp_get_nav_menu_items() to get child of parent and show in a select/option (combo box)?

I'm new to PHP and Wordpress. I have created a new menu and its name is 'My Custome Menu'. Now I want: To get the parent of that The select box with id sel1 be filled with parent The child of a ...
0
votes
0answers
22 views

How to add Loginout to Sub-menu

I've been searching all over the interwebs for this one. I've got the code snippets to add Loginout to a menu as a main menu item. I'm now looking to understand how to attach it to a sub-menu. This is ...
0
votes
1answer
15 views

Add category label for appearance > menus items

I have multiple pages with the same name under the different category at my wp site. The issue I'm having is that it is hard to distinguish which I need in the Appearance > Menus section. I was ...
1
vote
2answers
22 views

Custom items for Menus

When editing Menus, I find 5 typs of items that can be added: Custom Links Pages Posts Categories Tags Would it be possible to add custom ones? Let's say for instance that I want to add an image, or ...
-1
votes
0answers
8 views

creating multi lable menu in a downloaded theme

I am a total beginner and I am soooo confused. I want mutli lable menu: like haveing the main menu and having sub memue & sub-sub menu for my travel blog. But the theme templates I downloaded ...
0
votes
0answers
24 views

Display menu in category and sub category

I need to show menu with all subcategories for specific category (and sub category). When code looks like this: <?php if (is_category('news')) : ?> <?...
1
vote
1answer
20 views

Allow users with Editor role to edit menus (without a plugin)

I came across the need to have a site Editor to edit menus. I found some answers that suggest the add_cap() approach, to add the edit_theme_options capability to Editor role. This should be done once ...
-1
votes
0answers
9 views

Mobile View menu not showing

I'm Using traveler. The menu is not showing on mobile. How I can fix it? the menu is showing in primary menu location. but not showing in mobile
0
votes
1answer
28 views

Removing wp admin menu item on top bar of admin backend

I have managed successfully to remove the not needed menu items for user role 'editor'. Now I have one item left on the top bar that makes Editor add new post page and other items which I need to hide....
0
votes
1answer
50 views

How to making dynamic URLs for menus in Wordpress?

My Site Address (URL) is http://something.ddns.net/PS. I have a header Custom Links menu URL like this "/#services". This takes me to a location on the current page but I want it to take me to the ...
0
votes
1answer
19 views

Why are some of my menu items not displaying on my menu?

I'm a backend dev learning WordPress for the first time. I'm trying to create a menu in the admin GUI, but the menu isn't displaying all of the items that it should. As you can see, the menu is ...
0
votes
0answers
31 views

Add a class “active” on Category Posts Menu

I would like to add an active class on Category Post Menu. I've used it as a widget. This is my code: <ul class="category-posts-menu"> <li class="cat-posts-item"><a href="#">...
1
vote
0answers
27 views

How to create this Custom Walker Menu

It's the first time I'm trying to create a customized menu Walker. I'm following a very specific HTML. I searched and tried different things. Days have passed and I still can't get it right, but I don'...
-1
votes
0answers
16 views

Remove wrapping ul and li from output of wp_nav_menu

Here is the result of wp_nav_menu() and this is normal and the default: <ul> <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-226" id="menu-item-226"> <...
0
votes
0answers
20 views

How to make custom walker menu?

<?php wp_nav_menu( array( 'theme_location' => "", 'container_class' => "uk-navbar-center uk-visible@l", 'menu_class' => "uk-...
0
votes
1answer
34 views

Menu links URL with PHP GET method

Hello the community, I would like to know if is it possible to generate menu links using the PHP Get Method instead of the regural one used in Wordpress? e.g : www.mybeautifulwebsite.com/category/...
1
vote
0answers
21 views

Add custom links like functionality

I want same functionality like WordPress provide for custom links but additionally I want to add some class to those links by default that is added by this feature (Other websites). I have tried to ...
0
votes
1answer
19 views

Add “onclick” option to header menu item

on my website I have a problem. In my menù I have a voice called "area riservata". What I want to do is: insert a condition on this specific voice, so when a user click on this voice a not logged-in ...
0
votes
1answer
35 views

Stop Expansion of Top Level Menu in the WordPress Admin Sidebar

Can anyone tell me how to stop the top level menu items in the WordPress Admin sidebar auto-expanding when that top level item is clicked, or a submenu item chosen from the fly-out menu? For clarity, ...
-2
votes
0answers
16 views

How to add custom option for my theme's menu to add class in sub menu?

I've developed a theme for WordPress with a simple registered menu. my HTML/CSS theme has two types of dropdown menus (narrow, which is one level and wide, which is two levels of depth). Now I want ...
-1
votes
0answers
12 views

menu duplicates when scrolling down

I have this weird issue I can't can rid off. On my website I have a transparant menu. If i look at the site, the menu appears now above the header as well as underneath. i want to get rid of the ...
0
votes
0answers
18 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
25 views

Menu not working on Mobile using Neve Theme

My website's menu works fine on desktop, but the hamburger menu doesn't work on mobile and tablet. When I click on it, nothing happens. I am using Neve theme. I have already disabled all plugins, but ...
0
votes
1answer
12 views

cpt not display inside nav menu

I have created a cpt to realize a dedicated section of a website and I want to show it inside the navigation menù with the various post created under the cpt linked as children. I've noticed that the ...
0
votes
2answers
32 views

rearrange the posts by published date in Menu posts selection

I need to rearrange the posts by ordering them from published date instead of alphabetical order in Menu posts selection panel, view all section. I want them to order as same way in the most ...
0
votes
0answers
18 views

Display menu locations in all sites of a multi site

I have a multi site network setup. I am trying to list all menu locations for all sites, so I tried the following code: global $wpdb; $table_blogs = $wpdb->prefix . 'blogs'; $blogs_results = $...
0
votes
1answer
75 views

Have CSS Class Added with `is_page()` WP function

I have a nav <li> item where I add a page_active CSS class when a submenu page is visited. This works all OK when one of the pages is visited, but I can't get it to add the class when the second ...
0
votes
0answers
16 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
22 views

How to create a dropdown menu with a top margin (or just a gap) ? Mouse can't keep the dynamic active

I want to create some vertical space between my parent menu and its dropdown menu, but if I give it a top-margin, the mouse is not able to hover over the menu and keep it actively displayed. This is ...
0
votes
0answers
22 views

Dropdown menu not close after click inside

On my WordPress website I have a dropdown menu which appear when you click on item-menu "ESPACE PUBLIC" with 2 sub-menus ("TOUS LES PROJETS" and "CORNIL"). When I click on one sub-menu I get ...
0
votes
1answer
26 views

Add value to new attribute inside Wordpress menu <li> items

I have this code in my functions.php to add new attribute data-content="" to all my <li> items in the wordpress menu. The value of each data-content has to be different: I would like that each ...
0
votes
1answer
21 views

Wordpress nav_menu items from another menu appearing

In my website i'm using two separate nav_menus, one to the legal pages and other for the main navbar... For some reason some items of the main menu are appearing in the secondary menu, even though in ...
0
votes
0answers
26 views

create a 2 row menu in wordpress

I am trying to split my menu in 2 rows by css but it doesn't work. Can anyone help me? I need my menu to be like (http://4amedical.com/en/) website, but instead, my menu moves under the subheader ...
0
votes
0answers
23 views

Add vertical hamburger menu to wordpress

http://acespl2.webocitytechnologies.website/ I have main menu at the top and I am looking at add an additional menu like: https://www.thomso.in/ The menu that pops out from right when hamburger ...
1
vote
0answers
36 views

Making a navigation header menu with bulma, need some advice

I'm relatively new to wordpress and php and currently I'm in the weeds trying to wrap my head around creating a custom navigation menu using the structure and css instructions provided by bulma. ...
0
votes
1answer
26 views

ALT attribute in menu images

I have a few missing attributes in my WP Theme. I found images in header.php in example: class="articles"><img src="<?php echo get_template_directory_uri(); ?>/images/topmenu/...
0
votes
0answers
16 views

Menu not updating for logged in users after redirect

I'm having a problem with my menu not being updated for logged in users. My website has a homepage which I want to change depending if you're logged in or not. I've done this by adding the following ...
0
votes
0answers
9 views

How to move all classes to the a tag in a walker?

I would like to add all the classes that WordPress uses in li tag and place them in anchor tag. So, I can place them in tab section of this code: <!-- Simple header with fixed tabs. --> <...
0
votes
0answers
18 views

How to work with a custom theme that someone else created before me? (details below)

A company hired me as a web designer. Their website was designed by a private company that created the WP website from scratch: they customized a theme, installed all the plugins needed back then, and ...
0
votes
3answers
41 views

Setting color of specific menu items depending on page or post tag

I have a website that uses a plugin that lets me add categories and tags to pages. Is there a way of automatically changing the color of a menu item linked to all pages with a particular tag or ...
0
votes
0answers
11 views

Problems with menu on 5.3.1

I have a menu with submenus. The menu item for the current page is highlighted with a different color. On Wordpress 5.3.1, if the current menu itme has a sub menu, I am finding that all the sub menus ...

1 2 3 4 5 59