Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [navigation]

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

0
votes
0answers
23 views

Creating a simple metabox to the editor menu page

Right now I'm stuck creating a metabox to the menu section in a custom Wordpress Theme. I am using the hook load-nav-menus.php and this is what I have so far based on research and trying to learn ...
0
votes
0answers
25 views

Show all menu levels except top level. How to exclude top level of a menu?

I have a menu that looks like this: Women and Men har the top level menu items while the lower nagivation menu items are the children. The menu structure looks like this: Women New styles ...
0
votes
0answers
11 views

How to add a checkbox (or extend in any way) to Menu Custom Link metabox?

I'd like to add a checkbox to the Custom Links metabox. User will be able to select true/false. Based on the value, the front end will or will not display data. I've tried extending Walker_Nav_Menu ...
-1
votes
1answer
14 views

Add a navigation menu item using MySQL

I want to insert Wordpress nav menu items into MySQL using PHP. I dont think i can use wp_create_nav_menu() because I need to build a preliminary menu from the categories (over 100 cats!) then a ...
0
votes
0answers
17 views

Splitting stacked navigation into two columns for mobile

I'm new to HTML, taking my first class at university now, so apologies if this is a dumb question. I have a stacked navigation which I want to split into 2 columns when downsized for mobile use, but ...
0
votes
1answer
31 views

How to add post page pagination to template part?

How can I get this page to display the post page pagination? I'm using a custom blog template with a get_template_part. https://www.nowitconnects.com/blog/ <?php /** * Template part for ...
0
votes
0answers
16 views

Where to place a svg chevron down in my custom walker?

i am a bit stuck with the custom walker in my Wordpress theme. I wanted to place a svg chevron down on the first link when a submenu is detected. My theme uses a svg file with all the svg paths. The ...
0
votes
0answers
14 views

Cannot attach angular trigger to menu

I'm using Off-Canvas Sidebar to house my menu, but Frontier Post andAngular to handle display and sorting of my posts. How do I implement the js sorting trigger instead of the standard php menu link?
0
votes
0answers
6 views

Add an option to Appreance->Menus->pages

If I go to wp-admin and add a page, that page appears under Appearance->Menus->pages. How can I add the same link under pages without adding a page? By PHP ofcourse. I know how to add an item to the ...
0
votes
0answers
27 views

How to apply individual menu item's “CSS Classes” to <a>, not <li>?

WordPress' Menu constructor allows you to apply custom "CSS Classes" to menu items... However, those classes are applied to the list item which wraps anchors, and not to anchors themselves... <...
0
votes
0answers
12 views

Slash being removed from url of pager?

thesite.orgbeach-resources/?sf_paged=2 As you can see in the url above, there is no slash between .org and beach. I am just a front end web developer that is pretty familiar with drupal but not so ...
0
votes
0answers
28 views

Pagination doesn't work in query post in tag template

In tag template I use the following query post: global $query_string; // required $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ...
0
votes
0answers
17 views

Additional CSS for the nav menu

I have customised the navigation menu on this site. Each main menu item has its own hover colour. My question is, how do I change the selected menu item colour to match in the sub menus. Currently I ...
0
votes
0answers
11 views

Trying to make a dropdown menu with closebtn. please help

I am new to coding in WordPress. I am actually making a custom theme where I want a dropdown menu in header. I like Moz.com and Neilpatel.com's drop down menu so much. I tried to code one like that ...
0
votes
0answers
16 views

wp_nav_menu_items returns only a singly menu item

I try to retrieve the the list of my menu items and print them using the function wp_get_nav_menu_items() but this function return just an array with a single item not all the items I have in my main ...
0
votes
1answer
27 views

How do i create navigation links like this in wordpress? [closed]

Currently, I am using an Avada Theme and I would like this navigation to be in the shop and product pages.
0
votes
0answers
15 views

Page break availability check condition for WordPress post navigation

I'm running a small issue in my WordPress. I 've added custom styles for post navigation ( <!--nextpage--> ). So, this is my issue: The styles are displaying for all posts even tho there are ...
0
votes
1answer
40 views

WordPress Menu item > Sub menu Class update

I'm a newbie to WordPress core and development process. As I have a little knowledge of WordPress functions. But I need the help from you guys. Actually, i'm developing my first theme and i already ...
1
vote
1answer
188 views

HTML Bootstrap navigation menu to Wordpress menu using wp_nav_menu

I am trying to convert my existing HTML Bootstrap menu into Wordpress theme menu. I already created menu called "Primary" in Wordpress, but can't get it in theme exactly the same as in HTML. My HTML ...
0
votes
0answers
40 views

Pagination $paged return 0

i have problems with pagination. Here is my code: global $wp_query; $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; var_dump(get_query_var( 'paged' )); // HERE ...
0
votes
0answers
22 views

how to remove logo image hyperlink for wordpress

can any one tell how to remove the navigation menu for mobile & desktop view. and how to stop the logo redirection URL.
0
votes
1answer
200 views

Twenty Seventeen - Navigation bar, logo, header size

I'm new here, like 3 days learning about WordPress, I think is very good, have some problems to understand the CSS, I think I'll get over it with time. I have a problem maybe someone can help me. ...
0
votes
1answer
48 views

Override the WordPress default pagination markup

I want to render the WordPress posts pagination markup with my own HTML markup. My theme has a pagination markup with ul > li format. But the WordPress default pagination markup is different than ...
0
votes
0answers
41 views

Walker Nav Menu Depth

I've been looking for a way to add spans to my mobile menu so they can be targeted with jQuery. I found a custom walker_nav_menu and it works well and adds a span to menu items which have children. ...
0
votes
1answer
30 views

Move the social media icons to the left of a Wordpress nav menu for Soledad child Theme

I've been trying to move some social media icons (class="penci-topbar-social") to the left of a wp_nav_menu element for a bit and am stumped. I tried moving the social media code above the wp_nav_menu ...
0
votes
1answer
98 views

Add class to active top level (grandparent) menu item

I'm building a site with a mega menu. Here's what the structure looks like: <ul> <li class="active-grandparent">Grandparent <ul> <li>Parent</li> <li&...
0
votes
0answers
15 views

Show archives as a drop-down in the main navigation menu

I am using the Independent Publisher: 2 theme. It looks like this in action. I would like to be able to access my blog archives by clicking on the navigation menu, as a drop-down. In other words, I ...
0
votes
1answer
24 views

Dynamic next and previous post links

Is there any way to change the next and previous post links dynamically. By default the previous post link takes to the previous post. However I want it to link to some different post, that I posted ...
1
vote
1answer
22 views

Programmatically add existing pages and subpages to Appearance Menu

I have inherited a site with over 600 pages/subpages. I plan to use a plugin to change the way the navigation displays but it requires the pages to be in the Appearance -> Menu in this page: /wp-admin/...
4
votes
1answer
167 views

Next/Previous Links in same category

I've been pouring over this problem that seems really minor, but I can't seem to solve it. I'm trying to make next/previous links that only link to the category that the post is in. This is for a ...
0
votes
1answer
31 views

Add href to <a> tag in nav menu for mobile

I have a primary menu which is displayed for desktop <?php //Show the navigation menu wp_nav_menu(array( 'theme_location' => 'primary-nav', 'menu_class' => '...
0
votes
1answer
892 views

Add active class to wp_nav_menu

I'm using this code but it's not working function special_nav_class($classes, $item){ if( in_array('current-menu-item', $classes) ){ $classes[] = 'active'; } return $classes; } ...
0
votes
1answer
124 views

Remove a class from a <li> using Walker

I want to remove a class from 2 lvl depth,from li tags of ul class="sub-ul".How can I do that using Walker? <ul class="navigation d-block"> <li class="d-...
1
vote
0answers
389 views

bootstrap menu parent toggle and arrow

I have created a menu in Bootstrap 4: Here is the code: <section class="menuBar"> <nav class="navbar navbar-expand-lg navbar-light" data-toggle="sticky-onscroll"> <div class="...
0
votes
0answers
215 views

Bootstrap 4 navwalker - multilevel menu

I'm using this nav walker in my Wordpress project. I want to create multilevel menu, for example. What I need to change to get it work? Or maybe is it another walker for BS4 with multilevel menu ...
0
votes
0answers
28 views

wp_get_archives() --> only show posts, a user is allowed to read?

i'm trying to build a navigation in which all posts are listed in a sidebar (all the time) -> but only the ones a user is allowed to see. i tried to do this with wp_get_archives() which gives me a ...
1
vote
1answer
998 views

Multi Level Bootstrap Navigation Menu in WordPress

I am converting a static website made with Bootstrap in WordPress. Here is my bootstrap multilevel navigation menu code: <section class="menuBar"> <nav class="navbar navbar-expand-lg ...
0
votes
0answers
18 views

Plugin for Content Restriction: Individual NAV for each User (contains ordered & segmented list of all posts he's allowed to see)

I'm unsure about the right way to realize one of my next projects and would love to hear some of your thoughts. I'm quite sure that there is already a plugin out there that contains a solution to my ...
2
votes
0answers
19 views

Use walker for specific menu, or avoid use of walker

I'm trying to solve a particular problem and having trouble figuring out which way is best. So, I have a menu (generated through WP's menu creator) and would like to pull the featured image of each ...
0
votes
3answers
35 views

append to existing parent theme function

My parent theme calls a function: function get_nav_markup() { ob_start(); ?> <nav class="navbar navbar-toggleable-md navbar-inverse site-navbar" role="navigation"> <div ...
1
vote
2answers
14 views

I want to hide the navigation menu on a particular page

I want to hide the navigation menu on a particular page. I know how to find the page id, but I am clueless about how to find the rest of the stuff, it would be great if someone could look into my blog'...
0
votes
1answer
54 views

Excluding category from post navigation in Wordpress?

I'm looking to exclude a category from the post navigation. Originally, I looked up manipulating <?php the_post_navigation(); ?> to exclude categories, but a few posts I read (like this) pointed ...
0
votes
0answers
10 views

Custom Post Dropdown not always highlighting subposts when hover

I am very novice at wordpress, fair warning. I tried to change the menu in the appearance tab of the dashboard and think i may have messed something up. Now, when I hover over the custom post in the ...
0
votes
0answers
29 views

wordpress page navigation numeric pagination showing same posts on each navigation

Hi I have a similar issue with page nav, we are showing listing and due to the amount want to page them, We have got most of the code sorted but seems to just duplicate the page and not sure the ...
0
votes
0answers
56 views

Custom Navigation Menu Widget wordpress 4.9

I am a beginner @ wordpress and I am having difficulty in removing classes that are being added to the custom navigation menu widget. Everything that I have come accroos to add my own custom menu ...
0
votes
0answers
156 views

Why is my css class for a custom link item not working?

I have created a typical menu in Wordpress. If I add css classes to regular menu items (pages/posts) they work, but when I add a css class to a Custom Link item it is not working (it is saving, but ...
1
vote
0answers
131 views

wp_get_nav_menu_items wp-admin/customize.php problem

Hello what can I do I somehow get the following error on the custom panel at admin panel. Normally there is no problem on the menu. I only get an error when I enter the Customize page to live the ...
-2
votes
1answer
10 views

How do i add logo in wordpress studiopress (glam theme)?

i am beginner at wordpress. and i wanted to add navigation logo in my theme. i am using glam theme develop by studiopress. i have used plugin (nav menu images) for navigation link.but it is adding ...
0
votes
1answer
20 views

Next and previous links category infinite loop

I wish create a next previous category navigation. I found an old post on stackexchange (2012) about category navigation but it's returning an error. So I made something like this: $category = ...
-1
votes
1answer
30 views

Site pages show the page title under navigation bar

On all my site pages it displays the page they are already on under the navigation bar e.g 'Home' as in the photo. How can I not show this? Thanks.