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
17 views

Build Isotope filter groups with category terms

Sorry for the large question. I'm a bit lost and I want to provide all data possible for problem understanding. There are two options for achieve the goal. First, build the markup with a walker, ...
0
votes
0answers
7 views

Issue with Transparent Navbar on First Load

This is a test website I am i the middle of created – http://newsite.camerabeanbags.co.uk The issue I am having is that the Top Navigation Menu/header should be transparent when the page is at the ...
0
votes
1answer
26 views

Navbar is hidden behind carousel when using wp-boostrap-navwalker

I'm trying to show a navbar over a carousel within wordpress. To achive this I'm using WP Bootstrap Navwalker (https://github.com/wp-bootstrap/wp-bootstrap-navwalker) Without WP Bootstrap Navwalker ...
0
votes
0answers
17 views

Change URL of previous posts and next posts link in Wordpress

I'd like to change the URL of the <?php previous_posts_link ?> and <?php next_posts_link ?> that are being outputted by Wordpress. Problem: When I am on my single page, I am getting ...
0
votes
0answers
5 views

Touch device friendly navigation

A client purchased Genesis Education pro theme for their site, now, the responsive navigation works 100%, but that's controlled with media queries and device width. On tablets and laptops, you still ...
0
votes
0answers
15 views

previous_post_link & nex_post_link on single.php

I have wierd issue. I need to create posts navigation on single php. I use previous_post_link() and next_post_link() and it's only navigating through 2 posts although I have 6 published. I also ...
-1
votes
0answers
14 views

My Account navigation not displaying in other languages than EN

Baseline ; I'm working on a legady project where they used WPML + Woocommerce plugins. They have 5 languages. The default one is IT. They made translations of My Account page and inserted the ...
0
votes
1answer
19 views

Searching for a one page overview widget

I am currently using the Lodestar theme. My website is built up in a way that the navigation bar at the top leads you to different pages which have a one-page static structure. To allow for ...
0
votes
0answers
30 views

Warning: sprintf(): Too few arguments in nav-menu-template.php

I installed new template (increased max and post fields) and after that the site shows in main page an error: Warning: sprintf(): Too few arguments in nav-menu-template.php What should I check? If ...
0
votes
0answers
13 views

Navigation sticky box with anchor links and highlight

I have long pages in my site, in which I would like to put a sticky box containing the titles of the paragraphs/sectiones, so that it will be easy to navigate through the page: by clicking on one of ...
0
votes
0answers
18 views

Search to another page

I need a bit of help and been scratching my head with this one. So i have a main page and would like a search box but this search box to only search to another page so I have page number 5106 ...
0
votes
0answers
25 views

How do I add this custom nav menu to my wordpress?

So I'm trying to recreate the nav menu over from stripe.com over on wordpress, and I found this tutorial. I haven't found any plugins that can recreate the stripe nav menu effect so I'm resorting to ...
0
votes
1answer
7 views

Sidebar pagination posts not shown when sidebar is in single.php

A quick question. So I have created a loop in a new file called sidebar-extra.php which I include via the header.php into my single.php file. Problem: when I go to a post (single.php), I can't see ...
0
votes
0answers
15 views

How to add Buddypress user avatar to navigation menu item

So i have installed buddypress on localhost what i am looking to do is add user profile image (avatar) to navigation menu item something like this,
0
votes
1answer
38 views

How can I show a custom WordPress menu anywhere I want on my website?

I went into Appearances > Menus and created my own menu called "default menu." Then I tried to include it in my WordPress theme, but was unsuccessful. I am trying to include it just before the footer. ...
0
votes
2answers
29 views

Wordpress Menu Navigation links not working

Navigation Menu links not working, but the bootstrap CSS is working. Can anyone help me in getting the links working? Thank you <ul class="navbar-nav mr-auto"> <?php ...
1
vote
0answers
22 views

Automatically list top level menu item child pages

I am building a website that has a lot of pages. The client is not a big fan of the Wordpress menu builder works (in appearance -> menus), and we have come to the conclusion that the best way for the ...
0
votes
0answers
20 views

WP Bootstrap Nav (not JS, not missing ID)

For clarification: I'm using a bs4 navwalker, and Bootstrap 4. Creating a WP Theme from scratch, so I'm learning, and experimenting. I've spent a few hours reading through a variety of issues ...
0
votes
1answer
52 views

set certain item in nav walker to active when on archive pages or singles

I have created an event custom post type and a link in my menu to the archive page for that event (/events). I'm using wp_nav_menu() to call the menu. When I'm on /events the menu has the ...
0
votes
0answers
28 views

Change markup for just 2nd list element in custom Walker menu

I have been struggling a bit with this idea. The thing I want to achieve is that all elements are regular dropdown but the second one is a megamenu styled item. And for that I have prepared markup ...
0
votes
2answers
30 views

How to add nofollow to the_post_navigation?

I tried to edit original the_post_navigation, inside the loop, so I could get the rel="nofollow" inside of it the_post_navigation( array( 'mid_size' => 3, 'next_text' => __( '...
0
votes
0answers
12 views

How can I hide a menu item from navigation menu when that section is empty?

I want to hide the news section from navigation menu when there's no news in the site.
0
votes
0answers
12 views

How to add a menu when user is logged in (via my own database table)

I am trying to let the user login via my own table that I created in phpmyadmin. I also am using an insert php plugin so that I can insert php into my code. How can I make it so the user can see a ...
0
votes
1answer
89 views

Bootstrap Nav Walker Sub Menu Image

I would like to add images to each item of my sub menu. At the moment, i've added a custom css class to each menu item in the wordpress admin dashboard and add to my css a class like that : .menu-...
1
vote
0answers
147 views

Custom Walker_Nav_Menu issue with variables on PHP 7.3

I've made this custom walker that extends Walker_Nav_Menu for "mega menu" implementation. It works perfectly fine from PHP 5.4 to PHP 7.2, however it it has problems on PHP 7.3. The idea is to compare ...
0
votes
0answers
29 views

current-post-parent for custom post type

I have 2 archive pages on my site. First "News" is for standard wordpress posts. Second "Projects" is for my custom post type. When I go to specific post from "News" archive then my menu position "...
1
vote
2answers
69 views

How to have the Header show different content on different pages?

I made a Navigation (primary) via Appearance->Menus which navigates the user to anchor tags on the side, but I also have subpages, where I want a different navigation - only with my 'Home'-button in ...
1
vote
2answers
91 views

How can I add a custom class to only nav sub-menu > li > a items in WordPress?

I've this DOM here: <ul class="sub-menu"> <li id="menu-item-1424" class="menu-item menu-item-type-taxonomy menu-item-object-product_cat"> <a href="#">Item</a> &...
-1
votes
1answer
324 views

Bootstrap 4 mobile menu not working for Wordpress Development

I have a custom bootstrap 4 theme I am building out in wordpress. The drop down mobile menu does not work when the hamburger menu is pressed at smaller viewports. I am not sure if I need to add a ...
0
votes
0answers
27 views

Swap menu or menu item based on link click ( user input )

I maintain a website for the production company I work for. I'd like to display in the main menu a specific director list based on whether the user has clicked either AU or NZ. This will be a link in ...
0
votes
0answers
15 views

Show Custom field value instead of title in WP Menu

any idea how to display custom field values (I am using acf for those) in a Wordpress Menu instead of the respective wp_title? Have nothing to show, as I have nothing tried yet, as I haven't found ...
0
votes
1answer
28 views

My custom pagination not displaying

I'm testing a custom pagination feature but my pagination is not showing, is there something I forgot to do? here's my arguments and query inserted in my template: <?php ...
1
vote
1answer
157 views

How do I create page navigation linking to each H2 within the page? [closed]

I require each page on a WordPress site that I'm developing to have page-level navigation linking to each H2 on the page. How do I best automate this?
0
votes
0answers
13 views

Paginate by individual page links, not /page/1, /page/2, etc

I'm moving a group of 20 or so pages from another CMS into WP. These are pages not posts. Each page is a chapter in a book and each page has bottom nav links much like a blog index page. In our case ...
0
votes
1answer
142 views

get_next_post() and get_previous_post() return wrong posts

I’ve been trying to retrieve the next and previous post in one of my Wordpress templates. Please note that I want to get the full post object instead of just the pre-formatted links to the posts. The ...
0
votes
0answers
10 views

odd issue at navbar positionings

So something causes main navigation to not be displayed, it flexes out ok but I'd still need top items be constantly visible. overflow: visible does not fix this nor does z-index, nor removal of ...
1
vote
1answer
30 views

How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?

I'm trying to get pagination in my pages, so I use this default option: <?php wp_link_pages( array( 'before' => '<div>', 'after' => '</div>', '...
0
votes
0answers
29 views

get_next_post() not working with future post status

I'm using in single post template simple navigation below the post content: $next_post = get_next_post(); if($next_post) { $next_title = strip_tags(str_replace('"', '', $next_post->...
1
vote
1answer
28 views

Is this format possible with a custom Nav Walker class?

I'm looking to have the following output on a wordpress menu <nav> <a href="#">Link</a> <a href="#">Link</a> <aside> <a href="#" class="custom-class"&...
0
votes
1answer
19 views

wp_nav_menu() | Outputting my own custom code using built in features

I have created (more so WordPress has) using this: <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_id' => 'primary-menu' ) ); ?> It outputs this: <...
0
votes
0answers
9 views

Create navigation that changes depending on how you get to a single page?

I'm trying to make conditional navigation along the lines of "if a user goes into the tag "foo" make sure the navigation once in the single page only goes back and forth in the "foo" tags. But if the ...
0
votes
2answers
44 views

Wordpress “add to menu” button not working

I moved my WordPress installations from my old server to a new one. I copied all databases..etc and things seem to be working fine. (I have already migrated servers before, so I guess I know how to do ...
0
votes
1answer
23 views

Creating navigation out of specific IDs and their children?

I'm looking for a way to list three specific pages in a nav-menu (I want to get these pages by their unique page ID's), and also list the children of these three pages - appended to each list item, in ...
0
votes
0answers
20 views

Creating navigation menu out of page-related parent/child/grandchild relationships

I am trying to create a sidebar navigation menu, that detects what pages are related to the page you are currently viewing, and then outputs the whole hierarchy of this family-tree inside a tiered ...
0
votes
1answer
51 views

I want the “next” and “previous” buttons to appear in my custom navigation function

I'm looking for a way to display the two buttons "previous" and "next" of the navigation of my page, but with the code below, I can only show one. I do not understand what's wrong in the code (below): ...
0
votes
2answers
40 views

Unable to edit Navigation bar

I should first mention I am fairly new to wordpress and web development. I was given the task to update an existing site which includes the navigation bar. I have been digging through code trying to ...
1
vote
1answer
88 views

Third level navigation class

I'm currently working on a third level navigation. The output should something like this: <ul class="menu"> <li> <a href="#">Level 1</a> <ul class="sub"> ...
1
vote
1answer
95 views

previous/next_post_link in the same sub-category?

As the title: is there a way to navigate between posts of the same subcategory using the previous_post_link and next_post_link functions? But maintaining however both the category and the sub-category ...
2
votes
1answer
48 views

WordPress wp_nav_menu with a nav tag

I'm thinking about wrapping the wp_nav_menu with a nav tag instead of a div tag. I've read at the WordPress codex that the container argument is only for using ul or div. Do you guys know a way how ...
0
votes
1answer
35 views

Navigation dropdown issue, need it to work on hover

I have created my own theme from Bootstrap 3, everything went ok except for the navigation. After many hours trying ot figure out why my navigation didn’t drop down, I finally fixed and thought that ...