Questions tagged [navigation]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
8 views

Creating a child theme so that I can create a page that doesn't show up in frontend Topbar (navgiation bar)

It seems as though every time I create a slider (in the form of a page) for my website's homepage, It creates a section on the topbar. From what I've read, I will need to create a child theme in ...
0
votes
1answer
16 views

Navigate through the posts using keyboard arrows

I'm building my site on localhost and I'd like to navigate to next and previous posts by using keyboard right and left arrow keys. I know about the WP functions get_adjacent_post, get_next_post and ...
0
votes
1answer
13 views

Adding additional html to the end of the root level in a custom nav walker

I have a custom nav walker, which essentially just add's new classes to the menu, however, my menu also contains some hard coded elements at the end (Contact button & Search Icon). Where/How to ...
0
votes
1answer
33 views

How to add css to single navigation text? [closed]

I only want to edit the "ticket". in the photo I only add the CSS in the inspect. I want it to be that size.how to put CSS in that span ?? I did add extra CSS class in the menu. but it only changes ...
0
votes
1answer
8 views

How can I order these pages in this navigation bar on this old wordpress theme?

It's using a superceded theme with no support. Even so, the theme has been working great for about a decade... Here is the site: https://www.vertebr.ae There is no menu to organise in the ...
0
votes
0answers
12 views

Header with both normal menu and sidebar navigation menu

I'd like to have something like the tinder homepage, with a few text menu icons, followed by a hamburger widget, that opens a sidebar menu. Currently I have tried using oceanwp, and astra themes, and ...
0
votes
0answers
20 views

language-[content-] switcher in mega menu - without any ml-system

language-[content-] switcher in mega menu - without any ml-system. i just plan to create a new site where i use Max-Mega-Menü etc. etx estimated textamount max 2000 words - in five languages: ...
0
votes
1answer
36 views

Adding toggle-able element after menu item

I've got this menu on my site: <ul id="menu-primary" class="offcanvas"> <li class="menu-item menu-item-has-children"> <a href="#">Parent</a> <ul class="...
0
votes
1answer
9 views

Pagination (including title of each page) in a post for a long posts

I currently have pagination on my website for long posts. I have split the post into several pages. But it only displays the page number with navigation arrows, but not a title for each page in a ...
0
votes
1answer
25 views

Redirect User when they click Menu Option

I am setting up a new website where I am managing a small amount of clients. I have created a menu page that when the user is logged out it basically just tells the user to login. But I want to code ...
0
votes
1answer
19 views

Change text color dynamically in Wordpress [closed]

I would like to have a transparent nav bar. On the landing page, there will be a slider with images of varying colors, so I would like to change the text color of menu items to contrast against each ...
0
votes
0answers
21 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
10 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
34 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
6 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
17 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 ...
0
votes
1answer
20 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
51 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
20 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
19 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
11 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
24 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
93 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
53 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
110 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
29 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
32 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
13 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
182 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
161 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
30 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
71 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
209 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
645 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
31 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 ...
1
vote
1answer
195 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
34 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
32 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
30 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
21 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: <...