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
8 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 ...
user avatar
  • 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 ...
user avatar
  • 1
0 votes
0 answers
12 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 ...
user avatar
  • 149
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.
user avatar
-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!
user avatar
0 votes
0 answers
42 views

How to display conditional menus with Twenty-twenty two theme?

With earlier versions of default Wordpress themes I was able to display an alternative main menu depending on the category of the given page or post, using this filter in my functions.php: ( In this ...
user avatar
  • 217
0 votes
0 answers
5 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>...
user avatar
  • 9
1 vote
0 answers
95 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 ...
user avatar
-1 votes
1 answer
73 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 ...
user avatar
0 votes
0 answers
7 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 ...
user avatar
0 votes
1 answer
15 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 ...
user avatar
  • 3
0 votes
0 answers
52 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 ...
user avatar
  • 101
0 votes
1 answer
31 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=...
user avatar
0 votes
0 answers
33 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', '...
user avatar
  • 247
0 votes
0 answers
41 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 ...
user avatar
0 votes
1 answer
97 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="...
user avatar
  • 1,913
0 votes
1 answer
88 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=&...
user avatar
  • 1,913
0 votes
0 answers
25 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 ...
user avatar
  • 215
0 votes
0 answers
16 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 ...
user avatar
  • 1
1 vote
0 answers
29 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. ...
user avatar
  • 11
1 vote
0 answers
30 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 ...
user avatar
  • 11
0 votes
0 answers
11 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 #...
user avatar
  • 37
0 votes
1 answer
73 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 ...
user avatar
0 votes
0 answers
14 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 ...
user avatar
1 vote
0 answers
25 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 ...
user avatar
0 votes
0 answers
55 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 ...
user avatar
0 votes
0 answers
21 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 ...
user avatar
  • 1
0 votes
1 answer
25 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 >...
user avatar
1 vote
0 answers
50 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 ...
user avatar
  • 11
0 votes
0 answers
14 views

Add 2nd logo on the opposite side of main logo in Lawyer lite theme

May I kindly request your assistance since I am actually stuck. I am using Lawyer lite WordPress theme for my site. I actually want to add a second logo on the opposite of the far left logo, which ...
user avatar
  • 1
1 vote
0 answers
25 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( '...
user avatar
0 votes
0 answers
32 views

Add menu class in wp_nav_menu <span> and list

I'm trying to convert HTML template to a wordpress. Now I'm trying to add a class to the elements of ul, li and in my wordpress wp_nav_menu. This is what the HTML menu looks like: <ul class="...
user avatar
0 votes
1 answer
77 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 (...
user avatar
  • 1
0 votes
0 answers
21 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. ...
user avatar
  • 1
0 votes
0 answers
19 views

How add counter bubbles to main menu (NOT ADMIN MENU)?

First things first: I am a newbie, so if you're scared off by now: Bye, Bye :-D To the rest I'd like to address this issue: I have searched extensively but couldn't find any answer to my question to ...
user avatar
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 ?
user avatar
0 votes
1 answer
80 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
0 votes
0 answers
23 views

Logo above menu

Good afternoon, everyone! I'm busy with my friend's website and have already used a lot of CSS, only I get stuck on the following. I would like to put the logo above the menu. So not the logo in the ...
user avatar
0 votes
1 answer
33 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 = $...
user avatar
  • 7
1 vote
0 answers
27 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 ...
user avatar
  • 11
0 votes
2 answers
357 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 </...
user avatar
0 votes
2 answers
186 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', __( '...
user avatar
  • 1,607
1 vote
1 answer
33 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 ...
user avatar
0 votes
1 answer
23 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', '...
user avatar
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 ...
user avatar
2 votes
1 answer
128 views

Second nav is merged with the first in mobile

When I load the website (https://notes.goncaloperes.com) on mobile one can see the two menus/navigations that exist However, when it loads, the two navs are merged and the second menu buttons can ...
user avatar
0 votes
0 answers
14 views

Navigating Wordpress Articles From Parent Category?

Good day, please tell me how to fix the navigation in the parent category. For example: Parent Category - News - Subsidiaries (Company News and Market News) Pagination now works within the category, ...
user avatar
  • 1
0 votes
1 answer
21 views

Hide a menu (navigation bar) on all posts

I would like to know if it is possible to hide the navigation bar on all posts. Thanks so much.
user avatar
  • 1
1 vote
0 answers
111 views

I want to remove numbers from the_posts_pagination function

I am not good in editing theme codes especially with wordpress but I tried to on my own to edit the pagination in my theme archive.php which include numbers (1,2...10) and next/prev links. <?php ...
user avatar

1
2 3 4 5
18