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
9 views

(Avada Theme) Hiding menu items not currently active in sliding bar widget

I recently setup a sliding bar option to have a vertical menu fly in that slides from the right when you click the plus sign. The question / problem is that all the menus are currently being listed ...
0
votes
0answers
6 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
0answers
15 views

Menu and widgets not showing on frontpage

Yesterday I amended a certain widget, but now all widgets AND menu AND footer doesn't show up anymore on my frontpage. I do not have this issue on the other pages. In meantime I have deleted this ...
0
votes
0answers
23 views

Creating a simple metabox to the editor menu page

Right now I'm stuck creating a metabox to the menu section in a custom Wordpress Theme. I am using the hook load-nav-menus.php and this is what I have so far based on research and trying to learn ...
0
votes
0answers
12 views

toggle menu - keeping the clicked section open after clicking on it

Is there a way to keep the clicked section from the toggle menu open after clicking on a specific page? website is: http://maayanaboni.com I tried playing with the "current-menu-parent" class as ...
0
votes
1answer
22 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
24 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
13 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
2answers
20 views

Menu-bar & Search-bar not rendered correctly [closed]

As in the photos above menu-bar and Search-bar are not rendering correctly. I am using merge+minify+refresh & hummingbird plug-in. How can I resolve this problem.
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
17 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
13 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 ...
0
votes
0answers
16 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
18 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
18 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 ...
0
votes
0answers
16 views

How to create responsive wordpress menu?

I am creating responsive menu in wordpress but I am not done. When Iam clicking on toggle then not open my menu. Please assist me jQuery('.navbar-toggle').on('click', function() { var elem = $(...
0
votes
0answers
12 views

Create a WordPress menu with many levels without using the walker class or wp_nav_menu from scratch

SPOILER: it works nicely only if you have a two levels menu Here's my problem. My goal is to build a Wordpress menu from scratch, without the support of the walker class or the classic WordPress menu....
0
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
25 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
63 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
22 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
16 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....
-1
votes
0answers
13 views

Getting page content from a function?

How can I generate a "custom" page which gets its content from a function? I see there are two functions, add_menu_page and add_submenu_page, but these only work for the admin section. I cant find any ...
0
votes
0answers
12 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
21 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 ...
0
votes
0answers
16 views

Where to place a svg chevron down in my custom walker?

i am a bit stuck with the custom walker in my Wordpress theme. I wanted to place a svg chevron down on the first link when a submenu is detected. My theme uses a svg file with all the svg paths. The ...
0
votes
0answers
19 views

CSS Classes (optional) is not working on the ul li a?

I'm working on the working custom theme development where i need to add custom and additional class to the ul li a i have added extra class using CSS Classes (optional) but problem is that extra ...
0
votes
0answers
22 views

Mark menu item as active for a specific category's posts without using custom post type

I have only one (default) post type on my site. The posts of that type are separated by two categories (as well as tags). The way to approach those posts is not only, but also through two pages shown ...
0
votes
0answers
10 views

Way to collapse pages in menu (explorer style)

I have a menu containing a dozen pages. This menu lives on a widget on my sidebar. I'm looking for a way to collapse this menu, to hide all the pages except for the first one or perhaps the menu ...
0
votes
1answer
27 views

Add parent menu item in sub-menu in custom nav_walker

Currently I'm working on a project where we need to append the parent title as first item in the submenu for a mobile menu. What I try to achieve is this: <ul class="menu"> <li> ...
0
votes
0answers
10 views

Add custom nav walker to UberMenu instead of wp_nav_menu

I am working on a website, that has a custom walker added to an existing nav menu. The code works great for a standard wp menu, but I cannot seem to add the same walker to an ubermenu (www.wpmegamenu....
0
votes
1answer
16 views

code to add an extra selection to the menu editor

I've given up looking for a plugin to achieve what I want (either they don't exist or I'm not using the correct search term) either way this leaves me with two options. Pay someone to make the changes ...
0
votes
1answer
24 views

Custom menu items in admin

I would like to add my own custom menu items to Appearance > Menus. How can this be done? The best way to describe what I want to do:
0
votes
1answer
28 views

Menu is in Reversed order

I cannot seem to figure out why this menu is in reversed order only for Mobile. site-navbar.php <div class="menu-container"> <div class="menu w-full mx-auto container xl:pr-16"> ...
0
votes
0answers
19 views

Add Widget to Nav Walker Dropdown menu

I have successfully created a mega menu using the Nav Walker class and split the drop down into columns using CSS column count. Now I will like to display a widget in another column like so. public ...
0
votes
0answers
13 views

Header and Footer do not appear on pages

I have a custom theme built by a third party and the header and footer both appear as expected when I am logged into admin on Word Press, however when viewing the pages logged out I do not see the ...
0
votes
0answers
17 views

Wordpress Toggle Menu has stopped working

I am using the twentyfifteen theme on my wordpress site. When you access the site on mobile or resize on your browser so that the page height > width, a hamburger icon appears on the upper right. I ...
0
votes
0answers
16 views

Add wrapper for a specific sub-menu

I am trying to add a wrapping div around a specific sub-menu. what is the best way to do it ? is there a way to target the sub-menu and modify it or should i just use 'wp_nav_menu' or '...
0
votes
0answers
13 views

How do I create a navigation menu from product meta (custom fields)

I'm trying to find out how to add a navigation menu to my site based on one set of custom field meta data. I have tried creating tags from the custom field but then all tags are displayed in a single ...
0
votes
0answers
11 views

Changing a default nav menu through a plugin

Is there a way to change the primary nav menu that is at the top of the page, with a plugin. I want to make it so I could switch between menus if user is logged in and which user is logged in. So ...
0
votes
0answers
16 views

Implementing the menu li ID into the ul.submenu using walker and the start_lvl function

I would like to display the menu ID with my prefix (parent) to the ul.submenu within a data attribute. Here's an example of the output I am after: <ul id="menu-main-nav" class="menu"> <...
0
votes
1answer
21 views

Hamburger Menu not working on reduced browser size

I'm currently working on my site but having a small issue with the hamburger menu. It works fine on an actual mobile device, but when I reduce the browser size so that the hamburger appears, nothing ...
0
votes
0answers
12 views

Create customization options using theme customizer API based on the number of top level menu items

I am creating options for my theme, to customize and style menu items trough theme customizer. Each menu item will have its own options to change icon next to it and color. As I don't know how much ...
0
votes
0answers
10 views

Assign multiple user created menus to one theme location

I know what I am asking is probably out of the scope of Wordpress's ability but anyway. My issue is that I need to assign multiple menus to a single theme location (the dynamic location), I have set ...
0
votes
1answer
21 views

Prevent more than 2 level menus in dashboard?

In my theme I have menu for max 2 levels. Now I want prevent to create more than 2 levels menu in admin dashboard. Is there any way to do that?
0
votes
0answers
17 views

Changing menu icons

I have four navigation menus in the widget area at the bottom of my page like this: - They don't look very nice and my current theme doesn't allow me to change the styling much. I'd like to change ...
0
votes
1answer
40 views

Convert HTML code to WordPress menu

I have this HTML <div class="navbartop"> <a href="/">Home</a> <div class="subnavtop"> <button class="subnavtopbtn">Alfabetic <i class="fa fa-caret-down"&...
1
vote
1answer
10 views

Default Wordpress menu content

I have several menus in my theme, but if I don't create menu in dashboard, then in those menus is displayed default menu. How can I avoid that? I don't want any menu content until I create one. This ...
0
votes
0answers
14 views

Cannot attach angular trigger to menu

I'm using Off-Canvas Sidebar to house my menu, but Frontier Post andAngular to handle display and sorting of my posts. How do I implement the js sorting trigger instead of the standard php menu link?
0
votes
1answer
24 views

How I can overlap my menu in my header picture

How I can overlap my menu in my header picture. I want the menu can be seen on the header picture. This is the example like I want. Thank you. Example :