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
23 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 ...
  • 3
0 votes
0 answers
9 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
23 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 ...
  • 1
0 votes
1 answer
61 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
17 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' => '...
  • 125
0 votes
0 answers
13 views

Add featured posts to nav menu

The nav menu I'm bulding needs to have blog posts inside of it, so on the left there would be classic nav items (links) and on the right there would be three posts with an image, see image: I have no ...
0 votes
0 answers
77 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 ...
  • 191
0 votes
0 answers
23 views

Custom Navigation Bar JSON Syntax Error in JSON at Position 0

I am adding a custom nav bar thanks to this awesome guide by Pressidium! I have tried contacting the author but they aren't responding. Things started to go awry after editing the functions.php, like ...
0 votes
1 answer
63 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
0 answers
14 views

Include "Scheduled" ("Future") Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type

I found this post that about 90% answers my question... However, the code from this answer applies to all post types (regular posts and all custom post types) in my site. I would like to make this ...
  • 1
0 votes
0 answers
11 views

Customize Widget Navigation

How is it possible to customize the footer menu that has been added via widget and not defined in the functions file? I'm looking for a way to remove the container and add a predefined icon for the ...
0 votes
0 answers
7 views

Navbar affect loading all products

I am currently working on an eCommerce website. I am using a jetsmart filter for product categories and displays the active filter. Added a product category navbar menu on the footer. When I click the ...
0 votes
0 answers
11 views

Customize menu link for taxonomy in WP menu

I have a Taxonomy that I would like to change the link to in the WP menu. When clicking it goes to the Add Taxonomy page, like normal. What I would like to do is navigate to the Edit Page. In other ...
0 votes
1 answer
56 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 ...
  • 5
0 votes
1 answer
37 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 ...
  • 101
0 votes
0 answers
11 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
0 votes
0 answers
13 views

How do I structure my permalinks in Wordpress?

I am using wordpress and all I want to do is make the URL appear in the form where, Blogs is mentioned and then the blogname. But I want this structure only when someone visits blogs page. The blogs ...
  • 1
0 votes
0 answers
14 views

How to get next post link of child custom post type from parent post and get next post link of parent post from the last child post?

I have a custom post type with this structure: First Parent 1st child of First Parent 2ndchild of First Parent 3rd child of First Parent Second Parent 1st child of Second Parent 2nd child of Second ...
0 votes
0 answers
9 views

display specific category when website loads

I have a website with WordPress and I want to load a specific category when the page loads. I have not tried it. Will it create problems or error if I change it.
-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!
1 vote
0 answers
327 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
696 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
18 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 ...
  • 3
0 votes
0 answers
227 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 ...
  • 131
0 votes
1 answer
37 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
97 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', '...
  • 247
0 votes
0 answers
138 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
585 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="...
  • 2,023
0 votes
1 answer
462 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=&...
  • 2,023
0 votes
0 answers
29 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 ...
  • 217
0 votes
0 answers
180 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
1 vote
0 answers
30 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. ...
  • 11
1 vote
0 answers
33 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 ...
  • 11
0 votes
1 answer
239 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
27 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
107 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
27 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 ...
  • 1
0 votes
1 answer
39 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
91 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 ...
  • 11
1 vote
0 answers
48 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
109 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 (...
  • 1
0 votes
0 answers
25 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. ...
  • 1
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
104 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
60 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 ...
0 votes
1 answer
66 views

Blog posts pagination not working

I have been debugging this but I cannot seem to find what's wrong. An extra eye would help! I am trying to add pagination on my blog posts. Here is the code On home.php <?php $total_pages = $...
  • 7
1 vote
0 answers
31 views

Easiest way to add dropdown to a page

I am trying to add a dropdown menu to my page (not menu or widget section) and once the user selects an item from that menu, it redirects to a specific page. I have tried using the block editor, but ...
  • 11
2 votes
2 answers
763 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
2 answers
362 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', __( '...
  • 1,696
1 vote
1 answer
61 views

wp_list_pages to show all pages on all sub pages

I have this code to list my parent page and all pages under it on the sidebar. It shows both parent and child pages on first two levels but when I open a third level page, it only shows the current ...

1
2 3 4 5
18