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
14 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 ...
  • 189
0 votes
0 answers
14 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
19 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
12 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
8 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
24 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
19 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
10 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
13 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
26 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!
0 votes
0 answers
23 views

How to get previous and Next Post Url in the_post_navigation

<?php the_post_navigation( array( 'prev_text' => '<div class="na-prevpost"> <a href="#"> <i class="fa fa-angle-left"></i><span>...
  • 9
1 vote
0 answers
241 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
330 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
0 answers
8 views

WordPress navigation URL became hashed URL automatically

I'm customizing a WordPress theme and while changing the nav bar I faced an issue. When I add some page Link under the main service page the main service page URL became hashed URL. I've also used a ...
0 votes
1 answer
17 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
114 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 ...
  • 121
0 votes
1 answer
32 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
61 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
68 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
285 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="...
  • 1,943
0 votes
1 answer
224 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=&...
  • 1,943
0 votes
0 answers
27 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
47 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
32 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
0 answers
12 views

WP Menu Rollover Nav Item and Effect DIV Elsewhere

I have a WP Navigation with three navigation items. I want to rollover a navigation item (the first of the three) with the ID #mega-menu-item-5128 and change the display of a div ID #...
  • 37
0 votes
1 answer
144 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 ...
0 votes
0 answers
16 views

need help in wordpress navbar setup

i am searching from a whole day long for a easy way to create a dynamic wordpress nested navbar. now i am looking for a function if there is to get all pages list as a nested object i am using ...
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
71 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
24 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
31 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
59 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
30 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
87 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
23 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
92 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
57 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
37 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
30 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
548 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
244 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,644
1 vote
1 answer
37 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 ...
0 votes
1 answer
26 views

Get Each Menu Nav Label of Menus in HTML tag

I have footer menus built with wp_nav_menu using code below: wp_nav_menu( array( 'container' => '', 'depth' => 1, 'items_wrap' => '%3$s', '...
0 votes
0 answers
23 views

Bizarre Child Menu Issue on WP Site

I have a bizarre problem that I just can't figure out. I have been fixing this site for almost 3 days with so many customizations that the previous developer did. The structure of this site was ...

1
2 3 4 5
18