Tagged Questions

Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into a theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files.

learn more… | top users | synonyms (4)

1
vote
0answers
16 views

View specific content of a page in menu

I think I'm trying to do something unusual I guess because I can't find it anywhere.I want to have a submenu base upon content off the associated page. e.g. In my menu there is a menu-item called ...
-1
votes
1answer
21 views

How to remove UL class in wp_nav_menu?

How to remove ul-class in wp_nav_menu? 'items_wrap' => '%3$s', 'container' => false Adding above does not work.
0
votes
0answers
11 views

How do I turn my drop down menu into a table with UL's inside and 7 LI's per column? [on hold]

I am referring to the top menu, or any defined menu of wordpress that drops down on mouse hover. How do I modify it to be a item 1 item 2 item 3 ...
0
votes
0answers
11 views

Isotope JQuery Menu Link to a Filter in Section of One Page Website

I have an Isotope gallery on a one page parallax website. I would like to create a menu item in the header that points to a specific filter ("locations") in the gallery. Well, to be clear, this menu ...
-1
votes
0answers
13 views

Dropdown Menu hidden under Footer [on hold]

Can someone help me in resolving this issue? There are 100s of product categories on this website. As per requirement, I have to list most of them in the header as a dropdown menu. On the large ...
-1
votes
1answer
23 views

Link from navbar to categories

I have a navigation bar in homepage. I don't want show categories in navigation bar. I also do not want use a dropdown menu. I just want to have a link to a page that show all categories. I want ...
0
votes
0answers
7 views

How can I make a redirect depending on the selection in the dropdown menu (CONTACT FORM 7) [on hold]

How can I make a redirect depending on the selection in the dropdown, example: I have a select with two options when I choose an option to send the email it redirects me to a page, if I choose the ...
0
votes
0answers
14 views

Anchor link always scrolling to the top of the page [on hold]

I tried to look for the answer but previous posts seem to talk about other stuff. I created a WordPress menu with anchor links for a one page website (URL is just # + div ID). The problem is that it ...
0
votes
1answer
17 views

Having an issue with wp_nav_menu displaying custom navigation

Below is the HTML menu structure I would like to display with wp_nav_menu: <ul class="right-top"> <li><a href="#">Join Now</a></li> <li><a ...
0
votes
0answers
17 views

Removing a page from the header menu

My site is using the Hemmingway theme, I have a menu in the header. This is the menu whose structure results from assigning a "parent" on a page's edit form. One of my pages is less important and ...
-3
votes
0answers
11 views

Clickable Menu with submenu replacement (Plugin) [on hold]

I'm looking for a plugin which give you the possibility to click on the menu to show the submenu with a "back" button to go back. The submenus will "replace" the parent menu. Here is a preview with ...
0
votes
1answer
24 views

How to construct a custom html for submenus

How to write a walker class for constructing a new submenus. for my wordpress theme the submenu is looking like this: <li class="drop"> <a ...
0
votes
1answer
23 views

WordPress - Apperance > Menu

How do I use the menu on the dashboard under Appearance > Menu - http://prntscr.com/5052sl The one I'm using is based on page arrangement, so all my pages are displayed on the menu under some pages. ...
0
votes
0answers
11 views

Horizontal Navigation/Menu

New here, searched a few times, can't quite find the answer. Trying to insert a nav menu in a random location. I want to call a special menu (titled "custom-menu") but style it differently. My ...
0
votes
0answers
15 views

Removing menu item doesn't get removed on edit post

I have removed some menu links for a basic contributor role, just that when the user access the edit post section they re-appear(wp-admin/post.php?post=24731&action=edit). What am I missing? This ...
-3
votes
0answers
17 views

Fit 'ANY LIST SCROLLER' (jquery scroller) to wordpress menu [on hold]

I want to apply the 'ALS' jquery plugin on Wordpress menu. I have 2 menus in my web site, and the jquery plugin should be allied only on one of them (lets call this menu - 'menu-1'.) Here the link to ...
0
votes
0answers
13 views

Use Walker_Nav_Menu to remove automatically generated classes but keep user-added classes

My custom nav walker is outputting link elements like this: <a class="test-page-class menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-4 ...
0
votes
2answers
50 views

Add dynamic content block to nav section generated by custom walker

I am working on a theme that requires a piece of dynamic content nested in the navigation. I'm using a custom walker to generate the menu. I need a way to add markup to the code that will be editable ...
0
votes
0answers
23 views

Editing attributes of ul and div by wp_nav_menu

According to documentation of codex site, the code $defaults = array( 'theme_location' => 'header-menu', 'container' => 'div', 'container_class' => 'navCtrl', ...
0
votes
1answer
23 views

List all posts from custom post type by taxonomy

Having custom post types with taxonomies. Lets say I have a custom post type "Products" with taxonomies "new", "old", "fashion". Now I have a Nav where I can click on ...
0
votes
1answer
16 views

How to make menu items active based on hash

I'm creating a Wordpress portfolio site using the Simone theme. I have three menu items that link to the same page but with different hashes: tovly.com/work/#work-all-work ...
0
votes
1answer
33 views

Nav style for current page with custom post type

I'm trying to style the navigation of a WordPress site using the following CSS to highlight the current page or parent page. I'm using a custom post type to display projects. .current-menu-item > ...
0
votes
0answers
25 views

sharing slug between taxonomy and custom post

I am having trouble getting the relationship between a custom post and assigned taxonomy to work. The custom posts are clinics, the taxonomy is the location of each clinic: ...
0
votes
0answers
22 views

Adding custom page to the nav admin menu [duplicate]

I have added custom WordPress admin menu and pages, however, I would like for it to appear in the "Appearance > Menus" section so that the user can add it in the menu structure of their website. ...
1
vote
1answer
36 views

JSON file export of nav menu

I am trying to export the essence of my wordpress site's menu in json notation. I want to extract some details like id, type, name, sub-item and want to construct a Json object like below. Item - ...
0
votes
2answers
103 views

TwentyTwelve child theme mobile menu not working

I have a pretty simple child theme of Twenty Twelve active, but the mobile menu does not expand when pressed. Here is header.php: <?php/** * The Header for our theme. * * Displays all of the ...
0
votes
2answers
17 views

Adding a filter with custom function to the menu / navigation

I'm going to get crazy with the problem: I want to add a specific css class to the menu items, depending on a custom taxonomy. This is my code so far. add_filter('nav_menu_css_class', ...
0
votes
0answers
22 views

How to stop showing menu in static home page

Ok, I'm creating a wordpress theme. I don't want my navigation menu to show in the home page "Only" if the site admin setup Front page displays > A static page (select below). otherwise I want to ...
0
votes
1answer
30 views

How to add category post count in main navigation menu [closed]

Can you guys can help me on how to add/show the post count for category in main menu. eg: Web Design (10) | Typography (12) | Inspiration (10) | Business (19) I’m using Hueman & Hueman child ...
0
votes
1answer
22 views

How to add scroll IDs to WordPress menu anchors

In my theme the top menu is like this: <nav> <ul> <li> <a class='active' data-scroll-nav='0'>Home</a> </li> <li> ...
0
votes
0answers
18 views

Posts of Certain Category as Menu

I want to retrieve posts by certain category dynamically as a menu. What I need is: On the left-side of the page I want to display a menu as following | Category Name | | Post of This | | ...
0
votes
1answer
20 views

change link of menu particular tab

Wordpress theme - Twenty Twelve. I want to change link of menu. Current --> No link. Required -->#about (link for particular tab only) I've tried to change link from menu tab (Apperance ...
0
votes
0answers
9 views

Change Custom Menu Header Manually

I am working on a legacy site and typically don't work with Wordpress, so I'm crashing very hard into the WP world here. Basically, from what I can tell the site has these Custom Menus set up. I want ...
0
votes
0answers
12 views

Same menu is being displayed twice - one is overriding the other

I've registered three menus in functions.php like so: add_action( 'init', 'register_my_menus' ); function register_my_menus() { $menus = array( 'ranges-menu' => __('Ranges Menu'), ...
0
votes
0answers
18 views

Customizing label/title output of admin nav_menu selecter

On the left side of the menu editor, where you can add Page, Posts, Links, or Categories to a menu, how would I append a string to the title that shows up next to the checkbox? I've tried using ...
0
votes
2answers
16 views

Create menu without admin panel

I am wondering where I can create menus without using the admin panel, or if it is a waste of time. In admin you can go to Appearance => Menus Where you can select a number of pages to add to ...
0
votes
0answers
25 views

drag & drop re arrange menu items in front end page

in my WP MultiUser project i am designing a template for managing the menu like delete page, drag & reorder menu items by using below code <?php $menu_name = 'header'; if ( ( $locations ...
0
votes
1answer
78 views

How to target specific wp_nav_menu in function?

I am adding a specific class on my wp_nav_menu link via function.php but I am not able to target a specific menu: This is what I got which targets all wp_menu_nav on my page: function ...
0
votes
0answers
12 views

Menus: Item appears twice in menu, current item classes fail – Bug?

I think I found a small bug in how Wordpress handles CSS classes applied to menu items. I would love to fix it, but so far I wasn't able to pinpoint the problem - it's probably in ...
0
votes
0answers
25 views

Custom menu walker: Repeating a menu item when it has children

I am trying to repeat a menu item when it has children. To better understand, maybe take a look at this example markup: <ul id="main-nav"> <li>Item 1</li> <li ...
0
votes
1answer
16 views

Admin menu post type

Is it possible to get a container post type menu item with all custom post types inside of it?! 1.All post types 1.1 post type 1 1.2 post type 2 1.3 post type 3 1.4 ect....
0
votes
0answers
33 views

Best practice for blank top level menu item?

I create a LOT of WP sites and therefore tons of menus. A lot of times there is no sensible page for a top level menu item. For instance I was creating a site with internal learning. The top level ...
1
vote
0answers
19 views

Dropdown menu issue

I've just installed wamp on my pc and i'm trying to setup my test site. I've installed WP 4.0 so the default theme is 2014. I have created a menu with 1 dropdown for testing purposes but the ...
0
votes
1answer
33 views

menu item active class for author.php

I am building a custom theme. For the author.php file that displays an author profile with their posts, I would like my 'About' menu item to turn active (get active class). I have tried: ...
0
votes
2answers
26 views

Extend Individual Menu on Page Function to individual Submenue on Page Function?

It seems that WordPress Development is building a knowledge-base about the best functions out there. Thanks a bunch this helped already a lot! I found a function (find it down here) that offers a ...
1
vote
1answer
17 views

Check what “type” a menu item is

The question I would like to check what type of menu item each item in my menu is i.e. is it a Page, Category, or Custom link. What I want to achieve I want to create a menu made up of categories ...
1
vote
2answers
72 views

Anchor only wp_nav_menu

I am trying to create a list less wp_nav_menu. Below is the desired output: <nav class="nav header-nav"> <a href="#" class="nav-link nav-active">Home</a> <a href="#" ...
0
votes
0answers
9 views

Top level menu items different container than sub menu items

Is there a way to split the menu into two containers. The top level items would be in a separate container than the sub menu items. Here is the default structure <ul> <li> <a ...
0
votes
1answer
21 views

Showing the same menu in multiple location

Today I have faced an weird problem regarding WordPress menus. Here is the register function of my menus - function register_adaptive_menus() { register_nav_menus(array( 'top-menu' => __( 'Top ...
0
votes
2answers
53 views

Hide a Menu Item on Login

I am using the following code to hide a menu item when a customer is not logged and show it when a customer is logged in. .hide-item-not-login{ display: none !important; } .logged-in ...