Questions tagged [navigation]
A structure with links used to help you navigate from page to page.
898
questions
0
votes
0
answers
6
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 ...
0
votes
1
answer
48
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 ...
0
votes
1
answer
23
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 ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
37
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 ...
0
votes
1
answer
35
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 ...
0
votes
1
answer
34
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 ...
0
votes
1
answer
52
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 ...
0
votes
0
answers
51
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 ...
0
votes
1
answer
11
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 ...
0
votes
1
answer
155
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 ...
0
votes
0
answers
21
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 ...
0
votes
0
answers
25
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?
0
votes
0
answers
130
views
Adding a navigation with wp_nav_menu() to a custom block in the site editor
I'm using the create-block package to build a custom navigation block, and I'm running into an issue with getting the menu to display in my edit.js file.
In my render.php file i have:
<nav>
&...
0
votes
0
answers
29
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 ...
0
votes
0
answers
46
views
How can I merge a several related posts into one post?
I'm working on a site whose navigational structure needs to be flattened (it's been migrated from Joomla). I want to merge four or five levels of navigation into one post, and I need to do this many ...
0
votes
0
answers
49
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 ...
0
votes
1
answer
192
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-...
0
votes
1
answer
130
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' => '...
0
votes
0
answers
214
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 ...
0
votes
1
answer
221
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',
...
0
votes
1
answer
129
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 ...
0
votes
1
answer
214
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 ...
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 ...
-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!
2
votes
0
answers
426
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 ...
-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 ...
0
votes
1
answer
26
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 ...
1
vote
0
answers
439
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 ...
0
votes
1
answer
53
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=...
0
votes
0
answers
187
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',
'...
0
votes
0
answers
184
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 ...
0
votes
1
answer
951
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="...
0
votes
1
answer
791
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=&...
0
votes
0
answers
38
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 ...
0
votes
0
answers
255
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 ...
1
vote
0
answers
34
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. ...
1
vote
0
answers
44
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 ...
0
votes
1
answer
372
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 ...
1
vote
0
answers
30
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 ...
0
votes
0
answers
136
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 ...
0
votes
0
answers
29
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 ...
0
votes
1
answer
58
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 >...
1
vote
0
answers
115
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 ...
1
vote
0
answers
144
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(
'...
0
votes
1
answer
134
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 (...
0
votes
0
answers
26
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.
...
0
votes
0
answers
23
views
Navigation item - current date in url
I need to create a navigation item with custom URL (Food) with url (https://domain.com/food-menu/{current-date}. How can I do that ?
0
votes
1
answer
110
views
Add Different Class on Different Ul in twenty-twentyone theme
I'm creating a custom menu with wp_nav_menu. I want to add different classes on menu and submenu which are coming under different li, but unable to find a solution. Can anyone help me to figure out ...
1
vote
1
answer
84
views
Conditional secondary menus
I have a main menu of 3 items, and for each of these I have a different secondary menu. I would like to show the related secondary menu on each page.
I currently used is_page with slug. I will need to ...