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

learn more… | top users | synonyms

1
vote
1answer
32 views

I am facing a problem with the navigation menu of my website

The link to my website is http://ashevilleandbeyond.com/ and when you load it on your browser, for a few initial loading seconds, you will notice that the menu items are visible at the top left side ...
1
vote
0answers
28 views

Categories as main menu items and subcategories as nested lists

I am new to WordPress and am trying to make my website. Would it be possible to list categories and subcategories as a nested list with links in the main navigation menu. What am i trying to achieve ...
1
vote
0answers
14 views

Navigation doesn't render when wp is hosted

I have created a theme on my local host and it works fine. I am using the walker function in order to get the bootstrap navigation. However when I upload the site on godaddy the navigation doesn't ...
0
votes
1answer
68 views

`start_el` depth argument in custom nav walker always evaluates to zero

I have a custom nav walker I'm trying to use to output only the first level of a menu: <?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'depth' => 1, 'walker' =>...
1
vote
1answer
68 views

Programmatically set current-menu-item using wp_nav_menu

I'm calling wp_nav_menu programmatically on a class and I'd like to be able to set the field that will be shown as the current-menu-item but I don't see an argument for that. It seems like I may be ...
0
votes
1answer
168 views

the_posts_navigation is not working

Unfortunately, the_posts_navigation function is not working for me. When I click on 'Older Posts' it's showing '404 page I don't know why my code is not working. Here is the code - <div class="...
0
votes
0answers
254 views

Extending Nav walker with Yamm menu

Here is my navigation code where only service tab should have col wise layout of menu. I am using bootstrap nav walker menu which is working fine for other nav except services menu which should have ...
0
votes
1answer
54 views

Default pagination in Home/Front page

I am using my home page to show all my posts. Therefore I use WP_Query. When I click on the pagination, the url changes but not the page content. This is my code, <?php $paged = (...
0
votes
2answers
26 views

Set custom id to list element walker custom function

I am creating a navigation with bootstrap in a custom WP theme. I have managed to get this result: <li id="menu-item-27" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-...
1
vote
1answer
28 views

Custom theme navigation

I am creating a theme from scratch and have a problem to understand how to link the pages in the navigation. The pages are written in plain html. And I have "About me", "Contacts", "Blog", etc... ...
0
votes
0answers
39 views

Include in post navigation if field is checked

I need to display certain posts in the previous and next buttons using the_post_navigation() function. I want to to exclude any post with a checkbox that is not ticked. Another twist is that the ...
0
votes
0answers
125 views

wp-nav menu with custom walker , how to remove a tag if it has any submenu

i want to do wp_nav_menu custom walker ? can i convert wordpress menu this html if it has any submenu remove a tag from list item for example below galleries item I tried to leave empty link . but ...
1
vote
1answer
67 views

How can I put two menus in the same div?

I'm converting an html5 site into a wordpress theme, but have got stuck with my menus! this is the html version: And this is my result so far in wordpress: as you can see I can't get the social ...
0
votes
0answers
45 views

Getting Menu Items Parameters in Javascript Loop

I'm using the Menu Image Plugin - https://wordpress.org/plugins/menu-image/ It adds a image to the menu I need to extract or output the menu items ie Name, Menu-Url, Menu-image into javascript loop, ...
-2
votes
1answer
164 views

I would like to hide menu on desktop but still have it visible on small screen

I have added the code bellow in order to hide the navigation menu from my homepage. add_filter( 'pre_wp_nav_menu', 'wpse_210095'); function wpse_210095($menu) { if (is_home()) { $menu = ''; } ...
0
votes
0answers
24 views

display menu depending on selection on homepage

Like I wrote in the topic On my homepage there are two links: business and consumer depending which link I choose I want to display a certain get_template_part (menu) So If you click on "business" ...
0
votes
1answer
39 views

Hide menu from homepage

I am using the WP- Spirit 01 theme and would like to know how can I hide the navigation menu ONLY from the website homepage. I don't have my website live yet. The css code bellow works to hide the ...
0
votes
0answers
19 views

Customize navigation menu in the Twenty Fifteen theme

Is it possible to change the behavior of the navigation menu in the Twenty Fifteen theme so when a user clicks a menu item to open a submenu all the other already opened submenus are closed? I'm ...
0
votes
1answer
39 views

Menu Details Output in Javascript [closed]

I have to output page, parameters( Page Url, Page Name, and Page's featured image) in javascript loop, one by one I think we can display it through NavMenuItems or NavMenu functions Pages displayed ...
0
votes
1answer
231 views

Adding Custom “Current Menu Item” class to navigation?

I'm using the following code to force my wordpress navigation to reflect the category of the current post. It works perfectly, but I need help to extend this function to more than just 1 category ...
5
votes
1answer
91 views

Remember the last post I read

I am currently publishing a book series with WP (not in english). Books, chapters and subparts are arranged this way: Each book (category) is divided into chapters (subcategory) which is divided into ...
13
votes
3answers
318 views

Is there an easy way to replace a custom menu link with a page or post?

I've looked for plugins and couldn't find anything and I believe this should be a core feature. The Problem: The current methodology for replacing a custom link, or any menu link is by doing the ...
0
votes
1answer
118 views

How to reverse post navigation at bottom of post

I am using a child theme derived from twentythirteen. I wanted to have my posts displayed in chronological order(ascending). I tried adding the code from this answer to index.php but for some reason ...
0
votes
0answers
34 views

Custom nav menu current item custom link problem

Because I want to add <span class="dashicons [class]"></span> inside each link of my menu I needed to create a custom made nav menu. I did this by the code below which works great, but ...
1
vote
1answer
138 views

Replace menu permalink/hyperlink with only menu name/slug

I don't know if i am asking this correctly, but i will try. I am doing this for history pushstate purpose. Code to get menu wihout ul and li: $topmenu= array( 'container' => false, '...
0
votes
1answer
10 views

Installing wordpress on subdirectory 2 levels down

An unusual one for you and I appreciate how ridiculous this set up sounds but It's currently what I've got to work with so here we go... I have a joomla website set up on www.myjoomlasite.com. I am ...
0
votes
1answer
161 views

Remove current_page_parent nav class from blog index when in CPT

I'm trying to remove current_page_parent class from the blog index menu item (I got a custom page to display all blog posts and it is in the menu) when navigating custom post type archive page and ...
0
votes
2answers
123 views

How to Add support for sub-menu item description in wordpress?

I am working on a Custom Nav Walker and I want to use Description field in wordpress menu in my theme. The field works fine as far as for First Level Menu items but when I add something in sub-menu ...
0
votes
1answer
30 views

Site-wide tabs at WordPress website?

Is there a solution to add tabs at the whole site (site-wide) and not just in posts and pages? For example: I need one "tabs group" consisted of 3 tabs, and I like to add it sitewide (the same ...
0
votes
0answers
88 views

How can I add a custom list item to the start of sub menus?

I'm trying to change the output of the Wordpress navigation through a custom nav walker, but I have a some issues I'm not managing to work out. If an item has children I want to add two list item ...
0
votes
1answer
27 views

Wordpress functions.php does not affect the theme menus

I am trying to customize my pre bought theme. What i try is, to have different menus for each page without using a plugin. Original theme has a function about navigation which uses walker class. here ...
0
votes
0answers
21 views

Reproduce sub-navigation drop down

We have a navigation bar that when you hover over it there is a drop down on 3 out of the 5 menu items; I'm trying to add the other two. I have added what looks like the right code but I can't figure ...
0
votes
0answers
87 views

Connect custom rewrite rules and query variables to wordpress navigation

Setup for getting content My setup for getting custom content in Network of sites where many sites use the same custom data on the side of worpress generated content. Custom classes to get custom ...
0
votes
1answer
82 views

Current author archive in navigation menu

I want logged-in user see her/his own author archive page link in top navigation menu,say (a link to a list of all her/his posts). What I achieved so far is this: function my_nav_menu_author_link( $...
0
votes
1answer
18 views

Custom location for menu

Does anyone know why when I the code to implement the menu it displays the menu right after the body tag. And this is where I add my code <div class='nav'> <a href='#' class='menu_btn'&...
0
votes
1answer
343 views

How to remove anchor of current menu item in navbar?

Wordpress nav menu created by wp_nav_menu can highlight current menu item. How can i strip anchor from current menu item? For example, we have menu: <ul> <li class="current-menu-item">&...
0
votes
0answers
78 views

Apply Twenty Fifteen Menu Functionality to a Secondary Menu

I'd like to apply the same dynamic, category-to-subcategory dropdown menu that's used in WordPress's Twenty Fifteen theme to a new secondary menu that I've registered in a different WordPress theme (...
1
vote
1answer
68 views

Prepend to start of WordPress nav loop

I am trying to add some markup before the <ul> tag of a WordPress menu using a custom Walker, which extends Walker_Nav_Menu, however I can't get any of my custom markup displaying on the front-...
11
votes
2answers
226 views

How to give paged links custom title?

I have split my post content into mutiple pages using the <! - nextpage -> code. I want to give my paginated links their own title instead of the regular 1,2,3. How can I do this? cause on this ...
2
votes
4answers
604 views

Get only <ul> or <li> from the wp_nav_menu

I have tried several options like setting 'container' => false and registering the theme_location and searching on forums but I am unable to get rid of the "div" coming with the wp_nav_menu in my ...
-2
votes
1answer
48 views

how can i get the page_ID in nav li [closed]

I need a menu with the page IDs of the linked Pages in the li Tags. It should look like that: <ul id="menu"> <li class="pageid_23"><a href="page1">Page 1</a></li> ...
0
votes
0answers
23 views

How to separate a nav with child levels into full length menus?

I am using the wordpress underscores theme taken from https://github.com/automattic/_s I have tried to use a custom walker but am getting confused with it. All I want to do is create a list of links ...
0
votes
0answers
111 views

Navigation (wp_nav_menu) refuses to nest within parent element

I have a shortcode that (among other things) echoes out a menu using wp_nav_menu like so if ( ! function_exists( 'foundationPress_main_nav' ) ) { function foundationPress_main_nav() { ...
0
votes
1answer
182 views

Walker_Nav_Menu Add Strings and Class Name

How to make this pattern using Walker_Nav_Menu? <ul class="nav navbar-nav"> <li><a href="portfolio.html">Portfolio</a></li> <li class="dropdown"> ...
2
votes
1answer
293 views

How do i style the current menu anchor link's parent anchor link? [closed]

I have this code <div class="mainmenu"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li> <a href="#"&...
0
votes
1answer
41 views

Creating custom Menu for custom theme

I want to create a custom menu for my theme. The default menu architecture created by wordpress wp_nav_menu() function is made by <ul> <li> tags. But my custom Menu architecture is: <...
0
votes
2answers
791 views

Bootstrap dropdownl nav pills not working as wordpress drop down menu

I am using Bootstrap nav pills with drop-down items as WordPress menu, the menu without drop-down is looking good but when I add nested ul as drop-down the menu not working as expected.. HTML <...
0
votes
1answer
214 views

Adding direct link to post editor in admin menu

I'm trying to make a shortcut in navigation that will take user to one certain post. So far I'm using add_action('admin_menu', 'add_custom_menu_position'); function add_custom_menu_position() { ...
0
votes
1answer
43 views

Wordpress get_pages meta_key don't show page

I'm using get_pages in a Wordpress theme to create the nav. I have some pages I don't want to show in the nav. On all pages I have a 'dont_show_in_nav' true/false custom field. I can use meta_key ...
0
votes
1answer
221 views

has_children in custom nav_walker

I am trying to create custom menu nav walker. I added below code function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) { $id_field = $this->...