Questions tagged [navigation]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
8 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
7 views

Set Path (hidden page) as Parent Page for Breadcrumb Navxt [closed]

I'm using a theme and within this theme there is a page /portfolio which displays an overview of the items of the custom type projects. But this page does not exist as page in the page overview. Now I ...
1
vote
0answers
9 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
8 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
10 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
19 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
28 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
34 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
15 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
18 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
10 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
19 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
15 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
22 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
18 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
91 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
17 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 ...
0
votes
0answers
22 views

White screen of death on index.php page 3 and above?

I am experimenting with custom loops and following the tutorial of the illustrious Chip Bennett, and I actually got everything to work on index.php! ... Up to, that is, page 3. Everything works lovely ...
0
votes
0answers
21 views

Wrap <div> around navwalker elements

So I'm having some issues and I can't figure out how to solve them, I've recently started working with WordPress navwalkers and I'm stuck on a particular piece and I can't figure out how to get around ...
0
votes
1answer
39 views

How to set Nav as a default menu in wordpress

I am new to WordPress and PHP. I have created 4 menus but when I load the website (at path /), it shows "No post found"(because I am not setting any default page). I wanted to use one of the ...
0
votes
0answers
10 views

Can you start a WordPress menu at at depth other than 0?

WordPress allows you to set the depth of a menu using wp_nav_menu. I have a 4 tier menu, and the first two tiers are in the header, while the next two tiers are in the side nav. They all need to exist ...
0
votes
0answers
9 views

Creating sub-slugs without actual parent page

I would like to create individual pages for each member within a team: http://www.example.com/team/person-a http://www.example.com/team/person-b In the navigation menu I provide a parent entry ...
0
votes
0answers
15 views

Extend wp_nav_menu() code

Whats the most simple way to change my wp-menu generated output from <ul class="primary-menu"> <li class="menu-item"> <a href="">nav link</a> ...
0
votes
0answers
16 views

How do i show my HTMl5 Navbar on my Wordpress Navbar?

I am learning HTML, CSS, JS etc practically basic web design. I have made a navbar using HTMl5, CSS, Bootstrap, JS etc. I was wondering is it possible to make the navbar I made in HTML5 the navbar of ...
0
votes
0answers
33 views

Header displaying for mobile in elementor dashboard is different than coming on mobile

I have used this theme(https://themesgavias.com/wp/vizeon/) to create my website(https://talbizsolutions.com). I have created a header in the header builder but it is somehow not showing up on the ...
1
vote
0answers
16 views

Reuse a custom WordPress menu on another WordPress website

My WordPress website consists of two separate WordPress installs (one lives in a subdirectory). From a visitor's perspective it feels like one single website. To achieve this I had to manually ...
-1
votes
1answer
15 views

How can I create a navigation menu in the sidebar that can also act like a slider?

I am trying to create a page with a series of lesson/tutorial and looking to have something like a menu on the right/left side bar so the access to the topics are easier. Something like in the page ...
0
votes
1answer
42 views

How to remove empty <a> line space in navigation menu?

I have a custom link(user manual) going on in my navigation menu. I leave the original <a> empty and link a automatically download pdf under navigation label area. Now my menu has an empty space ...
0
votes
1answer
39 views

How to exclude posts by meta key value in the_post_navigation next prev links?

Context: We created a plugin, that allows posts to be either in web, mobile app or both. This is done via meta key. When shown only in mobile app mode, then its hidden from web. The plugin code, that ...
0
votes
1answer
19 views

How to change the navigation menu

I am fairly new to wordpress but i am having trouble working out how to customise navbar .I have added a new page.I created a new about us page.How to change the navigation bar of my about us page. ...
0
votes
1answer
26 views

Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?

I am trying to add the featured image of posts to my mega menu. I want to display the featured image inside a div tag. How would i add the featured image inside of a sprintf function? $thumbnail = ''; ...
0
votes
1answer
15 views

Prev/Next Navigation on Single Post Disappeared for Custom Post Type

Hope it's okay to ask this question here - I'm not really a developer. I've been using Dox theme for a friend's website, and we are ready to go live over the weekend and the Theme developer isn't ...
0
votes
0answers
48 views

3 Level Menu Navigation (3rd Level not displaying)

I am using wp_nav_menu on my wordpress theme but I can seem to figure out how to display the last level on my menu navigation. I would like the last level to display on hover of the parent item. Here ...
0
votes
0answers
13 views

Sub Menu Do Not Appear in Homepage

i have a problem here, i try to make 3 level navigation menu, but only 2 of 3 navigation menu are showing. This is my homepage When i try to inspect element from browser, i saw the sub menu. I try ...
0
votes
0answers
16 views

Need to limit the previous/next post links to current author editing post

I installed a plugin to be able to display a previous post / next post option in the backend, in the post edit screen. However the code does this for all posts and we really would like to build in a ...
0
votes
0answers
10 views

Add text before anchor link for product menu item type

I'm working on a nav menu that includes WooCommerce Products for part of the menu items. I am looking to add the WooCommerce thumbnails to the menu items that are products, but I can't seem to find ...
0
votes
0answers
39 views

how do i add prev/next button instead of number pagination?

I have a blog with multipage posts, I see the pagination is in numbers like 1 2 3 … is it possible to add the prev/next buttons to navigate instead of number pagination? Thanks.
1
vote
1answer
26 views

how to change site tag line for particular pages

I need to change my site tag line. Basically, this is school site we create for xyz higher sec school and ABC Nursery school; so I need to add both as a tag line in my site if I use xyz higher sec ...
0
votes
1answer
90 views

Secondary Menu and Logged In Users

I'm using the below code to display two different menus in my storefront based child theme based on a users logged in status. But When I have a secondary menu (links by the search bar) it is replaced ...
1
vote
1answer
28 views

How to dynamically populate a dropdown

I am tasked with creating a subnav in the body of our custom-built pages. The nav's last item is supposed to be a clickable dropdown (a "more" button) that can dynamically populate if extra pages are ...
0
votes
0answers
8 views

display all product categories in an existing menu item

Is there a way to place all the product categories in an existing menu item by using this snippet ? Create a Custom menu item fetched by Product Categories and Sub Categories The idea is, I have a ...
0
votes
1answer
113 views

Wordpress site hamburger menu toggle not working

When I shrink down the browser to test for mobile responsiveness, the hamburger menu does not open, even after I clicked on it. I have tried everything from troubleshooting my plugins to searching all ...
0
votes
0answers
74 views

Adding / Finding ID for Custom Walker start_lvl

I'm trying to figure out a way to get a dynamic ID to use in a custom walker. I'm using bootstraps "collapse" class to build a tree / accordion type menu, but right now the ID is static which causes ...
0
votes
1answer
15 views

How to replace home link anchor text with image

I'm trying to replace home link text with an image for breadcrumb trailer. Mouse cursor is still pointer but image doesn't appear. I'm using this breadcrumb trailer How could I this working please ...
0
votes
0answers
13 views

Wrap to First/Last when Linking to Previous/Next Post

I am trying to display two links, previous and next post in the current category. What I have so far works fine, but how do I make the next link to the first post when on the last post and vice-versa,...
0
votes
1answer
22 views

wp_nav_menu container style args

I am trying to add CSS from a html theme that I included. When I add my primary menu function that I defined to load my menu section I don't know how to include CSS as it return a defult ul style. ...
0
votes
0answers
13 views

Custom header with logo in bewteen navigation menus

I'm new to wordpress and coding in general, but I'd usually code with the help of bootstrap. I am currently building a website for a local charity (using wordpress) and I would love to have anyone's ...
0
votes
1answer
56 views

Add/remove image from navigation bar

I am picking up the work from one of our developers who has left our company and applied a background on our header seen here http://3.20.227.107/. When you scroll down you will see the header has a ...
1
vote
1answer
146 views

Hide Menu Unless Logged In

I have one menu that I created called "Main Menu" and only want to show it to users that are logged in. I have only been able to find plugins that allow me to show/hide individual menu items, but not ...
0
votes
0answers
8 views

Navigation Block Link Visibility

I created a navigation menu using a navigation block. Is there any way to hide/show a specific link in that block based on ultimate member user login? For example, I want the Login link in the ...

1
2 3 4 5
18