Questions tagged [navigation]

A structure with links used to help you navigate from page to page.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Off-Canvas Menu Toggle Issue After WordPress Core Update

After a recent WordPress update, I've encountered an issue with the toggle functionality of my off-canvas navigation menu. I'm using my custom-built theme, built on Twenty Twenty Three theme. The ...
dreamer's user avatar
2 votes
0 answers
10 views

Add/remove capability for blocks theme nav menu

I'm building a wp blocks theme for in-house websites with controlled branding. This theme will be rolled out to hundreds of websites. I want to create a second level administrator role and remove ...
Net Iconic's user avatar
3 votes
2 answers
113 views

How to get and set post meta for core/navigation-link?

I'm extending a plugin that updated nav menu items with post meta data. This was previously done via Appearance>Menus and Appearance>Customize using wp_nav_menu_item_custom_fields and ...
Diana's user avatar
  • 103
1 vote
0 answers
37 views

Is there any documentation on JS trigger for the Gutenberg "Navigation" block?

I'm trying to programmatically trigger the close function on the Navigation block (I'm using swup and want to have the nav close when a new page dynamically loads). I see that it's using the ...
Dexter Adams's user avatar
0 votes
0 answers
17 views

wp_nav_menu parent in submenu

I'm using wp_nav_menu() to display a multilevel menu. How can I add a parent link as a first item to the submenu? - Item 1 -- Item 1 (parent) -- Item 1.1 -- Item 1.2 -- Item 1.3 - Item 2 - Item 3 ...
Matt's user avatar
  • 1
0 votes
0 answers
16 views

Add a new menu selector element into WordPress nav-menus.php

How to build a custom menu selection element in the Menu admin (nav-menus.php) section of WordPress similar to how custom Posttypes/Taxonomies are automatically added in when created and then users ...
samjco-com's user avatar
0 votes
1 answer
146 views

Render link description in navigation block

I use Navigation block (Navigation menu) for my header menu. The problem I faced is that I can't render on front link description for the menu items that has children. I tried walker_nav_menu_start_el ...
oshka's user avatar
  • 11
0 votes
1 answer
25 views

I only want to show links to categories that have posts in 'publish' state in my menu

I am working on a WordPress project where I want to dynamically filter menu items (and possibly their parent items) based on whether they are associated with any published posts. Specifically, I am ...
DiaJos's user avatar
  • 101
0 votes
0 answers
22 views

Can I create main menu without using built-in menu

Can I create the main menu in the header.php file without using - without Appearance--> Menus without register_nav_menu() without walker What are the disadvantages? My navigation markup: <nav ...
kmadhu's user avatar
  • 1
0 votes
0 answers
69 views

Remove Wordpress Menu Classes and ID with Bootstrap Walker

How to remove generated WordPress menu classes and id and only keep the Bootstrap recommended ones without affecting the functionality of the Navbar. I found this code which looks good and I've ...
David Buik's user avatar
0 votes
1 answer
59 views

Custom post type page navigation

I have made a custom post type archive page, but can't make the wordpress pagination work. So far the code I have is the following, but clicking on page navigation just tells me that the page cannot ...
ERM-AL's user avatar
  • 1
0 votes
1 answer
35 views

How to insert a block in a widget which links to a entry/page

I'd like to insert a link in a widget to a blog entry or page. The link's text should be the entry's/page's title. As stated here, it's currently not possible to use the navigation block in a widget ...
Abid's user avatar
  • 143
0 votes
1 answer
116 views

Custom Link Block with own background color

WP-Theme: Twenty Twenty-Three with child theme for modifications. i would like to build a navigation that looks like this: for this i used the Navigation-block with Custom Link Blocks and with the ...
Stefan Krüger s-light's user avatar
0 votes
0 answers
78 views

Customize when the mobile menu triggers in WP 6.2.1

I am trying to customize when the default WordPress mobile menu triggers. It appears right now that the responsive menu kicks in at min-width: 600px. I would like it to trigger at 800px. I was hoping ...
Marc P's user avatar
  • 513
0 votes
1 answer
12 views

Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another

I am trying to remove the header and footer menus from this page (https://revrex.com/revrex-banking-onboarding) so that it is just blank with the embedded demo. I got the Conditional Menus plugin to ...
Nickie's user avatar
  • 1
0 votes
1 answer
430 views

Give custom class names to WP nav sub-menu

I'm creating a menu that will have sub-menu > sub-menu > sub-menu. The styling is really involved so ideally I could rename the class name "sub-menu" based off what level of sub-menu ...
Kyle Klaiber's user avatar
0 votes
0 answers
28 views

Custom Menu (only showing direct cildren) ACF not showing

I have working codes for both problems, but can't combine them. following code adds the acf in a standard menu: function my_wp_nav_menu_objects( $items, $args ) { // loop foreach( $items ...
Thomas's user avatar
  • 1
0 votes
0 answers
30 views

Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size

I only have a few menus in my nav, and I don’t think a hamburger menu has the appropriate look for my mobile site. Anyway to force it to look like it does on the desktop?
Ethan Allen's user avatar
0 votes
0 answers
34 views

Nav menù doesn't display selected pages

I've included Elementor inside my custom plugin and now I'm creating my wp site layout. I've noticed that my nav menu will show all the pages I have created for my website, but from the settings I've ...
ICTDEV's user avatar
  • 123
0 votes
0 answers
54 views

Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in Wordpress

Am creating a WordPress site whereby am enabling users to upload their own custom profile images from a custom form. Once they upload am storing the image URL in a custom database table and the image ...
Pweb's user avatar
  • 1
0 votes
1 answer
248 views

Apply walker_nav_menu_start_el but only to one menu

I'm building an accessible dropdown menu and successfully created a button to toggle the menu for screen readers that doesn't interfere with a top-level link. I targeted the class menu-item-has-...
Matthew Wright's user avatar
0 votes
1 answer
251 views

How to set menu Display location

I have created a menu and I have the ID. $menu_id = wp_create_nav_menu( 'Main Menu' ); And I have registered a navigation menu location: register_nav_menus( array( 'menu-header' => '...
djanym's user avatar
  • 125
0 votes
0 answers
258 views

get_the_post_navigation not working

I am using a custom post type with 9 posts. Whichever post I click on the_post_navigation shows the same post. When I go to that post it shows the only other post in its taxonomy. From then on I can ...
Badger's user avatar
  • 193
0 votes
1 answer
283 views

Previous / Next Links For Custom Post Type Sorted By Meta_Value

I created a template page for a custom post type called auctions-upcoming.php... <?php /** * Template Name: Upcoming Auctions */ get_header(); $args = array( 'post_type' => 'auction', ...
Kevin Burnett's user avatar
0 votes
1 answer
155 views

WordPress navigation wont appear with wp_head

so im building a custom theme and ive got stuck on the navigation if i use wp_head(); it loads bootstrap and my custom style sheet but not the navigation if i use get_header(); it loads the navigation ...
crad98's user avatar
  • 5
0 votes
1 answer
314 views

Wordpress change wp_nav_menu walker with a custom one

I have a downloaded theme and it where the wp_nav_menu is created it looks something like this: <div class="nv-nav-wrap"> <div role="navigation" class="<?php ...
Roland's user avatar
  • 101
0 votes
0 answers
13 views

Additional navigation bar in header

Recently, my site started showing two navigation bars at the top of my page. They are also the wrong layout. I am fairly new to WordPress. I have only designed five websites so far. This is the ...
Steph's user avatar
  • 1
-1 votes
1 answer
27 views

How was this menu system created?

Can anyone give me a clue how this menu system was created? https://40thdems.org/ This is a WordPress site using the Divi theme. Thanks in advance for any pointers!
user1147171's user avatar
2 votes
0 answers
452 views

You do not have permission to create Navigation Menus - Twenty Twenty-Two theme

I have a WP Multisite, where I am the super-admin of the Network and the only admin (also super-admin) of this particular site. Everything is working fine, but whenever I try to edit/add Navigation ...
Unaiza Khalid's user avatar
-1 votes
1 answer
1k views

can't add EVENT LISTENER to a element

I'm trying to add a click eventListener to a element in homepage, it doesn't work. the event is not even added to the element. the above picture shows the html of the homepage. where I wanted to add ...
Jai Shankar's user avatar
0 votes
1 answer
51 views

Custom menu not showing even though it shows as being registered?

I'm running into a really weird problem. Some quick background: I cloned this workflow from one I've been using before but just updated everything including node packages and the gulp functions and ...
Jan's user avatar
  • 3
1 vote
0 answers
608 views

How to change how WordPress renders navigation menu on Block Themes

With classic templates it was easy to understand how to overwrite how Wordpress navigation menu was rendered, but I'm struggling with the new Theme blocks approach. I know it uses the navigation block ...
out_sid3r's user avatar
  • 141
0 votes
1 answer
64 views

Problem with links once in portfolio item

Hope someone could help me. Link problem: This is my Homepage URL: https://epix.com.mx Portfolio onepage link: https://epix.com.mx/#Projects Portfolio item link: https://epix.com.mx/?portfolio=...
Epix Media's user avatar
0 votes
0 answers
219 views

How do I add 3rd level of dropdowns to wp_nav_menu array?

How do I get 3rd level to show? <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'collapse navbar-collapse', '...
RLM's user avatar
  • 247
0 votes
0 answers
190 views

How to get Previous Visited Page Information

I want to Change for Customized my Contact Form based on Previous URL Visited or We ca say I want to Dynamically Change the Values of Contact Form based on Previous URL Visited. So I had searched and ...
Bhargav Joshi's user avatar
0 votes
1 answer
1k views

Adding a unique ID to each sub-menu

I have the following menu via header.php: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'items_wrap' => '<ul class="...
Sam's user avatar
  • 2,136
0 votes
1 answer
909 views

Replace menu <a> tag with <button> tag

I have the following menu setup via header.php: <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'items_wrap' => '<ul class=&...
Sam's user avatar
  • 2,136
0 votes
0 answers
43 views

Possible to append class to nav menu added to widget area?

I'm wondering if it's possible to add a menu class to a navigation menu added to a widget area? I realize that when adding a menu to a template via wp_nav_menu one can use the menu_class option to ...
nickpish's user avatar
  • 217
0 votes
0 answers
273 views

In PHP how do I make my navigation bar show certain links to admins only?

My admin panel on my nav bar only shows to accounts with the username 'admin' as the moment, I would like it to search my USERS database and only show the link to userswith a user_level of 1. My DB ...
Ghost's user avatar
  • 1
1 vote
0 answers
36 views

How to approach this menu design?

I was given this design, and I'm struggling to find a way to implement something like this. The 6 items on the top bar dropdown on hover, then each has a submenu in the orange box to the left. ...
Kyle R's user avatar
  • 11
1 vote
0 answers
46 views

How can I add a login/logout link in the sub-nav of my website?

Using the code below I was able to get a login/logout button working on my navigation. This code makes it so that it displays on my main navigation and I just wanted it to appear as a sub-nav item ...
Demo's user avatar
  • 11
0 votes
1 answer
419 views

How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]

How do I buid wordpress menu with auto width sub-menu items in dropdown menu without any sub-menu items sharing one line (appearing side by side).but with an automatic width for dropdown items that is ...
Kevin Kenan's user avatar
1 vote
0 answers
32 views

Trying to Create Menu in Wordpress

I have been trying to create a mega menu on the WordPress website. The problem that I am facing is not able to create a mega drop-down for different services. What I want to create is: When should I ...
Sukhwinder Singh's user avatar
0 votes
0 answers
143 views

Help with Wordpress Custom Nav Walker

I want to convert my navigation menu in custom wordpress theme, I have created the design using html/css and now for the naviation bar I want to make it dynamic so it can be manipulated from wordpress ...
AliShafi's user avatar
0 votes
0 answers
31 views

Why is my navigation in my onepage not working?

I have a one-pager who has two sites. One is German and the other English. I made an own navigation for the English one, but it doesn't work. The navigation is throwing me back to the German one. The ...
steffi's user avatar
  • 1
0 votes
1 answer
69 views

url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB

I am using the walker class to create my custom mega menu, and using it to display post thumbnails at a menu depth of 2. It seems using the url_to_postid method seems to be causing a high ttfb of >...
Prateek Pandey's user avatar
1 vote
0 answers
141 views

URLs and navigation in custom themes

I have created a custom theme for my site, using stand-alone PHP files (PHP files that are not associated with core, plugins or WordPress themes, eg index.php, header.php ...). In case anyone is ...
Jose's user avatar
  • 11
1 vote
0 answers
184 views

How do I add recent posts to the menu?

How to add recents posts to the menu? Entries with pictures. "Menu-item-object-custom" items in a div container? What I have now is: header.php wp_nav_menu( array( '...
Tomasz B.'s user avatar
0 votes
1 answer
154 views

Make Audio Element Persistent Across Pages

I'm making a radio site and as part of that there's a listen live element which uses an audio plugin. When the user clicks on a navigation item to bring them to a new page the audio stops (...
Toby's user avatar
  • 1
0 votes
0 answers
29 views

Disguise Multi-Page site as Single Page

I'm building a site that needs the audio element on the page to be persistent and keep playing when the user clicks on any navigation item. It's located in the header so I want that to be sticky too. ...
Toby's user avatar
  • 1

1
2 3 4 5
19