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

Toggle Sidebar Menu for Wordpress: How can I get the second click on parent to go to its link?

I created a sidebar toggle menu from this ancestor tree function. I am trying to make it so that when a parent item is clicked, it opens the submenu, and then only when the child menu is already open, ...
0
votes
0answers
8 views

How can I Include Portfolio and Gallery Filters in Main Menu?

How can I include links in my main menu header that filter the portfolio gallery, instead of having a separate section of filters at the bottom? My guess is that it should be a simple addition in the ...
0
votes
0answers
5 views

Drop down menu going behind Hero image on mobile display

my dropdown menu goes behind my Hero image, rather than in front. I managed to fix it on the desktop display using this: #site-navigation ul.sub-menu { z-index: 999; } However, it did not work for ...
0
votes
0answers
13 views

Menu dropdown: dynamically list all posts for category

Situation: I have a wordpress installation where I have two categories: category a category b Now I have several posts which are either category a or b: post 1 -> category a post 2 -> ...
0
votes
0answers
9 views

Include custom menus etc. on custom page (via wp-load)

I'm currently embedding an app on my wordpress website via a custom page (I require wp-load and then use the default template code). Looks like this: <?php require '../../../wp-load.php'; ?> &...
0
votes
1answer
26 views

modify menu item links dynamically

on our wordpress site we use utm_source in the querystring to determine the campaign that brought a customer to our site. I need to dynamically add the passed utm_source from the initial page to all ...
0
votes
1answer
15 views

Is it possible to add a dynamic link in the main navigation in a child theme

My client would like to have a link to the most recent post in the main navigation, but still be able to manage the navigation through the dashboard as usual. I did not find a plugin that will do this ...
0
votes
1answer
17 views

Functions php shortcode for displaying main menu with no child items

I have the following simple functions.php snippet to generate a shortcode which will add a menu to a Wordpress site. I would like to do two new things so that I can use this in a footer. I'm lazy and ...
0
votes
0answers
7 views

How to add smooth scroll and scroll to top like static code into dynamic Wordpress menu

Here is my static code of menu I want to add (scroll-to-top) and (smooth-scroll) like below to my wordpress nav menu <ul class="site-navigation__list"> <li><a href="#&...
1
vote
0answers
11 views

Check if Page Already Exists in Menu

I am creating a menu where pages are automatically assigned to it. However I need to check whether the page already exists in the menu before adding it. Currently I am using the following code: // ...
0
votes
1answer
21 views

How to get the Page Name of the current page?

On mobile, I want to display what page my users are on. I have 6 top pages at the moment. Home, Projects, Blog, Contact, Privacy Policy and Impressum. Both Projects and Blog have posts in them. ...
0
votes
0answers
12 views

Trying to add Newline in Menu item

I'm trying to add newline from the dashboard Menu, so it looks like this: First Line Second Line Instead of: First Line Second Line I've seen post saying you can just add the html tag <br /> and ...
0
votes
0answers
16 views

Current menu item highlights wrong

The menu is with different types of links equipped. The first is a link to a subsite. The other is with to an anchor link. The problem is that the anchorlink is highlighted on the homesite. If I don't ...
1
vote
1answer
23 views

Change Navigation Bar based on logged in or not

I am using the BuddyBoss theme (BB child theme active) and need to control which menu appears based on whether the user is logged in or logged out. Logged out are granted access to a few URIs but most ...
0
votes
2answers
23 views

Submenu page buttons are blank

https://mangonelsgames.com/ Is a website I built with elementor. When extending the skills section on the main menu, sub-entries show blank, but you CAN click on them and are directed properly. Any ...
0
votes
0answers
6 views

How can I add custom class to a link in the navigation menu after attaching it to a widget?

I added a widget called "Footer-1" by adding the following code to my functions.php class register_sidebar([ 'name' => esc_html__( 'Footer Column 1', 'wp-bootstrap-...
0
votes
1answer
19 views

How to unlock menu editing

I'm trying to edit the menu, arrow items are all locked I can't add new custom links or categorie. How can I unlock the menu?
0
votes
0answers
8 views

Show where order was sent depending on specific characters of the order number

I want users to see where their order came from depending on an order number that my company provides. Example: If one of my users inputs his order number "pCA0993"...depending on the second ...
0
votes
1answer
15 views

How to retrieve a Menu Name by Menu Location with ACF fields

What WordPress function can be used to retrieve a Menu Name using the Menu Location as parameter?
0
votes
0answers
10 views

Multiple menu (mobile)

does anyone know how to make the mobile menu look like this? The left side is the first menu, and the right side is the second menu. Would be glad if anyone can help a newbie here.
0
votes
0answers
19 views

Wrap <div> around navwalker elements

So I'm having some issues and I can't figure out how to solve them, I've recently started working with WordPress navwalkers and I'm stuck on a particular piece and I can't figure out how to get around ...
0
votes
1answer
14 views

I want to add the 10 most recent posts under a parent category on the main menu

I have two parent categories in my nav menu to act as separate blog pages. I would like to display the 10 most recent posts from each category underneath in the same menu. I have been searching and ...
0
votes
0answers
5 views

Cannot add sub-menu in additional menu

I've been having this problem since forever. I created an additional menu by inserting some codes in functions.php and header.php. It works. However, when I insert a submenu suddenly it doesn't work. ...
0
votes
1answer
32 views

Progmatically adding menu links to the default (Top) or Footer menu

I need to create a menu - add links to it and then make it active - all from within my plugin at activation time. I have been able to create the menu and add links to it. But it does not become '...
0
votes
1answer
39 views

How to set Nav as a default menu in wordpress

I am new to WordPress and PHP. I have created 4 menus but when I load the website (at path /), it shows "No post found"(because I am not setting any default page). I wanted to use one of the ...
0
votes
0answers
9 views

wordpress nav walker with two seperate uls for 2nd and 3rd level

I need to create a menu structure where the third level ul isn't nested into it's parent li. It should be after the 2nd level ul, like show in the following code example: <ul> <li> ...
0
votes
1answer
17 views

WordPress Dashboard add user password not working, etc

I need help with my WordPress Dashboard. I think this happened when my site crashed and was forced to disable the plugins by renaming the plugins folder. I am unable to toggle the "Add User Show ...
0
votes
1answer
68 views

WordPress list categories dropdown with parent-child relation and child under it's parent

I am attempting to display a category dropdown (select) with parent categories and child categories tagged under the child category. Example: parent A parent B parent C - child of C - child of C - ...
0
votes
0answers
9 views

Can you start a WordPress menu at at depth other than 0?

WordPress allows you to set the depth of a menu using wp_nav_menu. I have a 4 tier menu, and the first two tiers are in the header, while the next two tiers are in the side nav. They all need to exist ...
1
vote
3answers
51 views

bootstrap-navwalker will not load

Trying to implement wp-bootstrap-navwalker.php into my made from scratch template for wordpress. The File for the class-wp-bootstrap-navwalker.php is located in the root directory of my theme. ...
0
votes
0answers
8 views

Creating sub-slugs without actual parent page

I would like to create individual pages for each member within a team: http://www.example.com/team/person-a http://www.example.com/team/person-b In the navigation menu I provide a parent entry ...
0
votes
0answers
16 views

open menu link (PDF) in new tab not download

I have a specific requirements where the menu item has link to the PDF. My needs are to open the PDF on the click of the menu item in new window. I have checked the option of open link in new tab in ...
0
votes
0answers
10 views

Bootstrap Navbar with Nav-Walker

When using Bootstrap Nav, the active doesn't work when you don't use Nav-walker (https://github.com/wp-bootstrap/wp-bootstrap-navwalker). The "selected" link just says on whatever "...
0
votes
0answers
11 views

Extend wp_nav_menu() code

Whats the most simple way to change my wp-menu generated output from <ul class="primary-menu"> <li class="menu-item"> <a href="">nav link</a> ...
0
votes
0answers
13 views

Main Menu Appears But Sub Menu Does Not Appear

I have added the top menu code below as follows. Home page names are visible, but sub pages are not. How can I fix. $defaults = array( 'theme_location' => 'header-menu', ...
0
votes
0answers
14 views

How do i show my HTMl5 Navbar on my Wordpress Navbar?

I am learning HTML, CSS, JS etc practically basic web design. I have made a navbar using HTMl5, CSS, Bootstrap, JS etc. I was wondering is it possible to make the navbar I made in HTML5 the navbar of ...
0
votes
1answer
20 views

add 3rd party link (with script) to menu item

I was given a code to add to a button to make a pop up for calendaring (booking). I can figure out how to add this to the body of the page, but I'd like to add it to a menu item. here is my code: <...
0
votes
0answers
40 views

Building a custom menu or use a plugin?

I am currently building my first ever wordpress theme, making good progress so far. The very last and possibly hardest part is the menu the client is thinking about. What it should look like: Menu 1 ...
0
votes
0answers
16 views

Custumise Nav Walker sub-menu : adding HTML content like effect in mega menu

I need to custumise my walkermenu in wordpress, but i have an issue with it, this is my menu structure, I need to add, a div after my ul sub-menu, like the ffect in mega menu : <nav class="...
0
votes
0answers
7 views

is it possible to display specific sidebar menu for specific category pages

I want to display specific sidebar menu for specific category pages. like when an user click on different categories than sidebar menu display according to the click category of primary menu.
0
votes
0answers
10 views

Primary menu displays, but any additional menu does not

I am trying to add a menu to the footer, but it will not display. Here, I've registered the Footer Menu in the theme location "footer": // This theme uses wp_nav_menu() in one location. ...
0
votes
0answers
10 views

Can I insert ACF repeater fields into MaxMegaMenu via JS?

I have to add a Slick slider with ACF repeating fields to MaxMegaMenu, unfortunately I don't know how to add such a large piece of code via Javascript (passing js Var?). Has anyone tried to add ACF ...
0
votes
0answers
13 views

Header displaying for mobile in elementor dashboard is different than coming on mobile

I have used this theme(https://themesgavias.com/wp/vizeon/) to create my website(https://talbizsolutions.com). I have created a header in the header builder but it is somehow not showing up on the ...
1
vote
0answers
14 views

Reuse a custom WordPress menu on another WordPress website

My WordPress website consists of two separate WordPress installs (one lives in a subdirectory). From a visitor's perspective it feels like one single website. To achieve this I had to manually ...
0
votes
0answers
21 views

Navwalker not applying the custom css classes on menus

I'm using the Bulma Framework and wanting to implement a mega menu onto my WordPress site, but I can't seem to figure out how to adjust my Bulma navwalker so that it can accept custom css classes that ...
0
votes
0answers
26 views

How to change the menu icon of a custom post type created using pods framework?

I have created a series of customs post types using pods framework, now I would like to change the default icon that is assigned in the menu Right now this is what I get, but I would like to assign a ...
10
votes
1answer
213 views

Add settings to menu items in the Customizer

WordPress 5.4 added the wp_nav_menu_item_custom_fields_customize_template hook to add custom fields to the Nav Menu Item settings in the customizer. I've figured out how to display the additional ...
1
vote
1answer
34 views

Position image widget in mega menu

I need to add image in mega menu. So I have added image widget in menu. How can I reposition this widget. Currently my menu is showing like this. But I need image only in the right side, and sub ...
-1
votes
1answer
15 views

How can I create a navigation menu in the sidebar that can also act like a slider?

I am trying to create a page with a series of lesson/tutorial and looking to have something like a menu on the right/left side bar so the access to the topics are easier. Something like in the page ...
0
votes
1answer
29 views

How to remove empty <a> line space in navigation menu?

I have a custom link(user manual) going on in my navigation menu. I leave the original <a> empty and link a automatically download pdf under navigation label area. Now my menu has an empty space ...

1
2 3 4 5
61