Questions tagged [navigation]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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 #...
0
votes
1answer
13 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
0answers
9 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 ...
0
votes
0answers
5 views

How can I get individual menu items to hover over in different colours? They need to relate to their specific category colour [closed]

I'm building a wordpress website with Elementor Pro, but i'm struggling to get the individual menu items to hover different colours on the top bar - the dropdown menu works fine. I can change them ...
1
vote
0answers
21 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
0answers
42 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
0answers
17 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
1answer
18 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
0answers
40 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 ...
0
votes
0answers
11 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 ...
1
vote
0answers
17 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
0answers
29 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="...
0
votes
1answer
35 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
0answers
18 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
0answers
13 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 ...
0
votes
0answers
19 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
1answer
44 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
1answer
34 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
0answers
16 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 ...
0
votes
1answer
24 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 = $...
1
vote
0answers
26 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 ...
0
votes
0answers
23 views

Bootstrap Navigation

<div class="mobile-menu"> <ul id="mobile-menu" class="menu"> <li class="dropdown"> ...
0
votes
0answers
11 views

Menu items not found on category or tag page

I have the following menu call in the header.php file <nav id="site-navigation" class="navigation main-navigation" role="navigation"> <?php wp_nav_menu( ...
0
votes
2answers
154 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
2answers
113 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
vote
1answer
22 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
1answer
18 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
0answers
24 views

Nav Bar icon not working after click

My navbar icon is not working after a click. Here is the website. The icon is in the upper right corner. Any ideas?
0
votes
0answers
22 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 ...
2
votes
1answer
53 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 ...
0
votes
0answers
7 views

Navigation labels showing on some web-pages while not showing on others

Hopefully someone could give me a valuable hint regarding the following issue :) Navigation labels are showing correctly on such pages like (get a look at the sidebar on the left, please!) https://neu....
0
votes
0answers
13 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, ...
0
votes
1answer
14 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.
1
vote
0answers
50 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 ...
0
votes
1answer
18 views

retrieves menu and converts it to a readable array

I have added this code in function.php to retrieves menu and converts it to a readable array but It's not working and give me this warning. Warning : Invalid argument supplied for foreach() in C:\...
1
vote
0answers
79 views

How to remove role="navigation" from all nav elements?

I did a W3C validation of my wordpress website and I got several warnings like this: The navigation role is unnecessary for element nav. r">↩ <nav role="navigation" class="...
1
vote
0answers
12 views

Add clickable arrows to parent menu items with children elements e.g. with <em>

I am currently working on a website with a custom theme where the following behaviour should be possible for the mobile version: The navigation can be opened via a hamburger button. Then all parent ...
0
votes
0answers
20 views

Get Navigation Menu name, pages and subpages into a variable

If I have a defined Nav Menu that is named MAIN MENU and within MAIN MENU are the pages: Main Page Sub Page I Sub Page II Sub Page III What is the appropriate terminology used for Main Page and Sub ...
0
votes
0answers
25 views

Breadcrumb - Getting Nav Menu Items

I would like to create a breadcrumb function that uses the created Nav Menu in the WP Admin Panel. I've seen register_nav_menu and wp_nav_menu for themes, but they're irrelevant as I'm using Elementor....
0
votes
1answer
31 views

Nav Menu: Theme Location not working

Why do my created Menus on the WordPress Admin dashboard appear in customtemplate.php DESPITE not defining it the correct 'theme_location'? It will show in that location EVEN if the created menu in ...
0
votes
1answer
80 views

Manually adding current_page_parent to wp_list_pages()

I'm using wp_list_pages() like so: <?php wp_list_pages('title_li=&include=1714'); ?> But would like it so that the link has a current_page_parent class under the following conditions: if (...
0
votes
1answer
17 views

I want to show cart items number if any or nothing, simple CART text

I am making a custom WooCommerce site and stuck at coding the CART link. I want the link to look simple text "CART" when there is no item in it. But to show the number of items if any like &...
0
votes
0answers
23 views

Programatically Created Menu not Editable in Dashboard

When my custom theme gets activated, it programatically creates some default pages with custom templates, a nav menu, and several menu items. This saves me a lot of time not having to do those same ...
0
votes
0answers
29 views

Exclude a parent page with get_pages()

I have the following code: <?php $pages = get_pages('exclude=10'); ?> <?php foreach ( $pages as $page ) : ?> <?php echo $page->post_title; ?> <?php endforeach; ?> I ...
0
votes
0answers
20 views

Is it all right to put the whole <head> tag into template_part file?

I need to have more than one headers so this looks as a good idea but I'm not sure if it is valid. If so, what am I supposed to name a file? I named it head.php so far. Example: <html> <!-- ...
0
votes
0answers
16 views

Does single webpage do not need navigation to create a slug in permalink?

I have concern about the permalink in my working project do i need to create a slug for the permalink in navigation. Your answer will highly appreciated. Someone help me stock in
0
votes
1answer
69 views

Is it possible to add a dynamic link in the main navigation in a child theme

My client would like to have a link to the most recent post in the main navigation, but still be able to manage the navigation through the dashboard as usual. I did not find a plugin that will do this ...
0
votes
0answers
72 views

Current menu item highlights wrong

The menu is with different types of links equipped. The first is a link to a subsite. The other is with to an anchor link. The problem is that the anchorlink is highlighted on the homesite. If I don't ...
1
vote
1answer
831 views

Change Navigation Bar based on logged in or not

I am using the BuddyBoss theme (BB child theme active) and need to control which menu appears based on whether the user is logged in or logged out. Logged out are granted access to a few URIs but most ...
0
votes
1answer
32 views

How can I include ALL post types in the_post_navigation() links, not just current post type?

I have a site with several Custom Post Types: blog posts, movie reviews & book reviews. In my single.php template I call the_post_navigation(). When viewing a blog post the previous and next links ...

1
2 3 4 5
18