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

How to add an archive page to WordPress menus (nav_menu)?

Isn't there any way to add relative link like archive page (eg "host/fruits/") of a custom post type I added? (Just as it works "host/fruits/apple/").
0
votes
0answers
3 views

mobile navigation menu links are not opening anything after click in WordPress [closed]

mobile navigation menu links are not opening anything after click in WordPress
0
votes
0answers
11 views

How To Make This Section Of Menu-Bar Be The Left Of the Logo?

I Have A Big Problem I Wanna Only Move The En[Flag] Section on the Left Of Logo P.S: I Don't like Use "position: absolute;" and Left or Right Moving This Gona Crash My Menu And Flexible ...
0
votes
1answer
11 views

Menu separator appearing on next line

I am creating a new theme, but for some reason the menu isn't displaying correctly. I want the separator to appear next to the menu items, but they are on the next line for some reason. This is what I ...
0
votes
0answers
16 views

Bootstrap Navigation

<div class="mobile-menu"> <ul id="mobile-menu" class="menu"> <li class="dropdown"> ...
0
votes
1answer
9 views

Menu items not clickable

Our website is chinesealpha.com All of a sudden, our menu items are non-clickable. Does any of you have an idea how to resolve this? I tried re-configuring the menu list, doens't work... Thanks in ...
0
votes
0answers
11 views

Mobile Menu and Mobile Sidebar missing

My mobile menu and mobile sidebars are not working. When I click on the icon it only adds a # sign to the url and nothing happens. I have deactivated all the plugins and activated them one by one. The ...
1
vote
0answers
12 views

Wordpress warning: “private_to_published” Deprecated when creating nav with wp_update_nav_menu_item()

For reasons specific to how my local development environment generates Wordpress menu items, I am trying to programmatically create a menu using wp_create_nav_menu() and wp_update_nav_menu_item(). My ...
0
votes
0answers
10 views

Menu items not found on category or tag page

I have the following menu call in the header.php file <nav id="site-navigation" class="navigation main-navigation" role="navigation"> <?php wp_nav_menu( ...
0
votes
0answers
12 views

How to loop nav menu items in WordPress menu Walker?

I want to loop every single item in the menu with the walker class. class Primary_Walker_Nav_Menu extends Walker_Nav_Menu { public $bg; function __construct() { $this->bg = ...
0
votes
0answers
20 views

Replace jQuery with PHP or CSS for Customized WordPress wp_nav_menu

Does anyone know how to build a custom wp_nav_menu layout without using jQuery? My current menu loads fine, but it causes the whole page to shift. jQuery adds CSS classes to items in the menu after it'...
0
votes
2answers
37 views

add another html tag after li element in wp_nav_menu

I have a nav menu in footer. I just want to display it side by a <p> tag, I mean something like this <ul> <li> <p>copyright C 2021</p> </li> <li> contact </...
0
votes
2answers
98 views

Add a counter beside menu item label

I'm using the following code to add a panel to the admin menu screen, so the users are able to add a Cart link to their menus: function my_add_meta_box() { add_meta_box( 'custom-meta-box', __( '...
0
votes
1answer
16 views

Get Each Menu Nav Label of Menus in HTML tag

I have footer menus built with wp_nav_menu using code below: wp_nav_menu( array( 'container' => '', 'depth' => 1, 'items_wrap' => '%3$s', '...
0
votes
0answers
21 views

Nav Bar icon not working after click

My navbar icon is not working after a click. Here is the website. The icon is in the upper right corner. Any ideas?
0
votes
0answers
19 views

Prevent square brackets in Custom Links menu item converting to ASCII code?

I need to set up numerous Custom Links in a menu. The URLs have square brackets in them. Upon saving the menu, WordPress is encoding the square brackets into ASCII codes. I'd rather it didn't, as it's ...
0
votes
0answers
9 views

What's next after created translated posts?

I've just installed WordPress in : mydomainname.com/blog directory. (my domainname.com/index.php is not using WordPress). I've created 3 posts in my local language. (say, post-1, post-2, post-3). In ...
0
votes
0answers
11 views

Add a current user/author post to sub menu

I wish to add a current user's custom post to a navigation sub menu. I have a custom post type called Member. Each custom post will be assigned to different users where they can add and edit their ...
-1
votes
0answers
24 views

New pages or categories in wordpress posts

Let me show you an example on what I am looking for https://www.hardreset.info/devices/samsung/samsung-galaxy-a21s/ on the left is the menu. clicking on one of them will get you on a new page. BUT how ...
1
vote
0answers
17 views

Add css class to dropdown

This is a dropdown with two items. I want to visually give these two items a css style. Is this possible? This is the code I used: (function($) { "use strict"; tinymce....
0
votes
0answers
10 views

Expand mobile menu on button/link click

How can I expand the WordPress mobile menu on Button/link click? I tried searching online and I can't figure it out. I also tried using CSS classes to see if I can expand the menu on button click. but ...
0
votes
1answer
19 views

Why nav_menu_css_class doesn't work with apply_filters?

I was trying to add css class to nav items. The documented function call in WordPress docs was apply_filters( 'nav_menu_css_class', string[] $classes, WP_Post $item, stdClass $args, int $depth ) But ...
0
votes
0answers
9 views

Customize Menu Structure Creating a Section Where you can add icons/imgs

Basically i would like to add a section in "menu structure". So, when i access to any page/post i can create (for example) a select with some font-awesome icons class to every single <li&...
0
votes
0answers
13 views

Header dropdown not working on my custom built page

Hello my header drop down is working perfectly fine if i use it on the pages that i built with wordpress but the ones that i built from root in html php and css and imported the header dropdown is not ...
0
votes
0answers
18 views

A WordPress Navigation Dropdown Menu using Bootstrap 4.5.3 moves out of the browser from right side

I am using Bootstrap 4.5.3 and WordPress version 5.6.2 I have this code in my header for the navigation. <div class="container-fluid"> <nav class="navbar navbar-expand-...
0
votes
0answers
22 views

Bizarre Child Menu Issue on WP Site

I have a bizarre problem that I just can't figure out. I have been fixing this site for almost 3 days with so many customizations that the previous developer did. The structure of this site was ...
0
votes
1answer
15 views

WP Forms not displaying,becomming an fatal error

This is what i become after insterting a WPForm in Wordpress Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /var/customers/webs/...
0
votes
1answer
13 views

Add div content to my already existing menu

For the past days i've been trying to add my created code to my menu... without success This is my code : https://www.w3schools.com/code/tryit.asp?filename=GO9AAZCNLK4E To my website : https://www.dm-...
0
votes
0answers
9 views

Alter the page title with a hook, without altering navigation links

I've written a basic function with the goal of altering the page title. It works. However, the new string also replaces every single navigation menu item on the page. At first I thought that might ...
0
votes
2answers
74 views

Menu Items disappearing/being empty on save or post edit

I've been having this weird issue on a site for a few weeks now, tried everything I found by searching but still not being able to find a clue of the issue. Whenever I add some items to the Menu (...
1
vote
0answers
14 views

Automatically adding new post categories to menu

Disclaimer: I am not 100% fluent in php. If I am doing something wrong in asking this here, please let me know. Many thanks! A site that I am working on is set up with several custom post types: City, ...
0
votes
1answer
16 views

Why is my array of nav menus returning empty?

I am trying to retrieve of list of available menus but the array is returning empty. function get_menus() { $menu_list = []; $wcs_menus = wp_get_nav_menus(); foreach($wcs_menus as $m) { ...
2
votes
1answer
21 views

Second nav is merged with the first in mobile

When I load the website (https://notes.goncaloperes.com) on mobile one can see the two menus/navigations that exist However, when it loads, the two navs are merged and the second menu buttons can ...
0
votes
0answers
13 views

How to display site title, if logo is missing in customize?

I want to display website title, if logo is missing in customize my codes for logo, functions.php add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 400, ...
0
votes
0answers
4 views

How to have sidebar menu that only display the submenu entries but not top menu entries?

Say I have a menu: Level 1 Level 2 Level 2.1 Level 2.2 Level 2.2.1 Level 2.3 Level 3 Then if I select any article within level 2, then the sidebar will display the menu for level 2. Is there a ...
1
vote
0answers
23 views

Change search results order for Admin -> Appearance -> Menus -> Pages -> View all

I have over 200+ pages (about 100 for each of my two languages). How I can change the order of results? I need the same as on the page with Page list. On the Page list e.g. you have a parent page and ...
0
votes
0answers
48 views

If-menu plugin error

For a Wordpress 5.6.1. site, under Appearances > Menu, I got the warning message: If Menu detected a conflict with another plugin or theme (gdlr_core_walker_nav_menu_edit) and may not work as ...
0
votes
1answer
25 views

Menu items do not “open” when mouse hover over them?

My site is very old now and has worked fine up until the most recent WP update. My menu items do not “open” when mouse over them? I can see that the theme uses Superfish but can't find anything that ...
1
vote
0answers
15 views

nav_menu not displaying custom menu

Default menus will appear on all pages with no issues. However, when I configure a custom menu, it is displayed on all pages, other than the home page//main blog page. The menu disappears, the tags ...
0
votes
0answers
38 views

Hook event for upload image in the menu

I have to add the image in my dropdown. I know I can do this with CSS Classes (optional) but I don't want to do this. I want to add dynamically instead of open the code and change or add it. What I am ...
0
votes
1answer
29 views

Add custom path to url to specific pages

Right now all pages path like /faq/ or /about/. I need path like /home/faq/ /home/about. I tried change url slug in edit page. But Wordpress change my home/faq to home-faq. I installed plugin Create ...
0
votes
0answers
11 views

Conditionally open nested, product sub category menus based on is_product_category( ) - Woocommerce

I have a complex product category menu in my woo shop sidebar with lots of sub menus. When the current category is one of the parent menu items, the menu item changes style. But when the current ...
0
votes
0answers
7 views

Navigation labels showing on some web-pages while not showing on others

Hopefully someone could give me a valuable hint regarding the following issue :) Navigation labels are showing correctly on such pages like (get a look at the sidebar on the left, please!) https://neu....
0
votes
0answers
29 views

How to show specific admin menu to specific user role?

I hope you are well how I can show a specific admin menu to a specific user role already created by the WooCommerce shop manager. how to show only a custom specific plugin (admin menu page) in this ...
0
votes
0answers
8 views

How to increase Mega menu limit (modules per row) manually in NEWSMAG4 Theme?

Good day, Im have troubles looking on how to increase mega menu modules per row. I would like to change it manually(in the php file itself). Does anyone know where it is located? It is current set to ...
1
vote
0answers
37 views

Add data attribute to each li in menu

I have a menu listing all of my products categories in Woocommerce. I need to add an attribute data-relation to each <li> tag and the value for each one would be the ID of the category. I ...
0
votes
1answer
13 views

Hide a menu (navigation bar) on all posts

I would like to know if it is possible to hide the navigation bar on all posts. Thanks so much.
1
vote
1answer
12 views

How to get the name of the parent menu if the current page is an archive page in a custom menu

<?php // print_r(get_queried_object_id()); $primaryNav = wp_get_nav_menu_items(2); print_r(get_menu_parent(2)); foreach ($primaryNav as $navItem) { if (!empty($navItem->menu_item_parent) &&...
1
vote
1answer
22 views

display menus on all page except one?

I'm not very good at this, so please bear with me. I have a Wordpress site with sections for different cites, and the different cities each have their own nav menu which shows for all of the pages in ...
0
votes
0answers
14 views

Best way to give user the option to make a menu, mega menu?

i am developing a WordPress theme for themeforest and i was wondering whats the appropriate way to give the option to user to make a menu, mega menu. currently my way is that user has to go to ...

1
2 3 4 5
63