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)

0
votes
2answers
24 views

Making wordpress menu horizontal [on hold]

Hey guys am new to wordpress development actually.I am trying to make my wordpress menu horizontal at the top below the title name. My header.php In my header file i have assigned the menus with a ...
0
votes
1answer
20 views

Get custom classes in Wordpress Navigation Menu

i'm a beginner to Wordpress. I have a question is how to get only classes we put in CSS classes box in Navigation Menu? Not all with the default Wordpress classes. The purpose of this is i want to ...
0
votes
0answers
11 views

custom post types menu

I am wanting to create an accordion menu of states and cities that are defined in a custom post type. The cities are defined in a custom field of the post type and the states can also be a custom ...
0
votes
0answers
9 views

Custom Admin Menu Order

I have a simple solution in my functions.php for reordering the admin menu. Here it is: // Admin menu - reorder function custom_menu_order($menu_ord){ if (!$menu_ord) return true; return array( ...
-4
votes
0answers
34 views

add posts automaticly under categories in top menu [on hold]

Is it possible to make the categories in main menu to show my posts and add them automatically every time i create i new one and of course under the right categories
0
votes
0answers
10 views

Replacement for wp_get_attachment_image() inside loop

Currently I am using the Menu Image plugin. It simply adds an image field to the backend Menu page, so you can have images in your menu items. Well I have a large menu structure with a lot of small ...
0
votes
0answers
16 views

Menu links' destination url changed to an hashtag

Here is the website: http://www.aiteq.it In the menu on the left, all of the links seem to point to "#",instead of the pages selected in the wordpress menu section of the control panel. Viewing the ...
0
votes
0answers
17 views

Custom menu creation

So I wrote my first custom menu with a walker. In the admin panel I see the locations, so they are registered. The problem is that the very first menu I created gets added to all the locations. I ...
0
votes
0answers
11 views

After theme change the menus have to be manually linked to the corresponding theme location

When publishing a new version of a theme after I upload and select the new version of the theme the menus aren't visible on the site anymore. Everytime I have to link them to the corresponding theme ...
0
votes
1answer
15 views

active menu in post page

I am showing a wp menu with the following function: <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
1
vote
0answers
7 views

Override customizer values on a per-menu base

suppose I have a few options in the theme customizer, and I might want to show for example 5 different categories listing menus in the site. In the customizer I can set options for all of those, ...
0
votes
2answers
22 views

Wordpress Menu Exchange On Tablet's Orientation

I am using the plugin PHP Browser Detection and I want to achieve different menus for different devices. I have set them up called primary and mobile. Now, I want to switch those on used device. ...
0
votes
1answer
25 views

Hiding menu on mobile only when viewing posts?

I would like to hide menu on mobile only when viewing posts. Menu at the homepage should be visible on mobile but not the other pages. How can I do it? Here is the menu snippet: <nav ...
0
votes
1answer
18 views

What happens when you create/edit a menu

I need to know this for a plugin I'm developing: What happens when a user creates a menu, add/remove menu items in the admin, what updates are made in the database, what tables/columns are affected?
0
votes
1answer
15 views

Wordpress Menu Exchange for Mobile Layout

I want to have two different menus for desktop and mobile phone users. So, I have created two places for two menus (primary, mobile) with this function: functions.php: function ...
0
votes
1answer
31 views

Active page link not getting class assigned

I'm having problems with one of my menu items on http://itsnwa.com/ - When you enter the site, 'Work' should be bold and underlined, the same happens if you go to '50mm', but on 'Findings' this ...
0
votes
0answers
10 views

Fixed Menu and Submenu Position and Label

I'm creating a wordpress site based on PSD submitted by my client. The client requested to keep the clickable menu at the selected page with the current position. Examples in the images: ...
0
votes
1answer
22 views

How to hide page links from theme menu

I'm working on a plugin, I programatically create some pages in posts table, the links appear in the theme menu(front end), I don't want some of these page links to appear, how do I do this?
0
votes
0answers
9 views

Mega Menu with posts

I am trying to create a menu with posts on it. I don't know how to add extra code to a dropdown. Or just add the HTML to show the mega menu on hover, How can I do that? Please help.
0
votes
2answers
42 views

Appearance > Menus

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. ...
0
votes
0answers
28 views

Building a drop down menu for child categories

We have an auto selling WP site with a makes page with logo and a link to view all vehicles in that category. Ideally we would like a drop down menu in their displaying all models (the childs of the ...
0
votes
0answers
10 views

Showing main menu and child menu in diffent places in a same page

This question may sound a bit novice, but I am facing a problem. I have a menu structure like this: Home About -History -kontact Posts -Category1 -category2 For design purpose, I have 2 different ...
0
votes
0answers
29 views

Add items to a menu

I'm reading The Absolute Beginners Guide to Wordpress, but possibly it's too advanced for my purposes. I cannot get information about basic navigation, wiring the menu to pages. I've created three ...
0
votes
1answer
24 views

how to set more than one menus to the same theme location

In my theme i need to display different left side menus on different pages. so i register a secondary menu too by this register_nav_menus( array( 'primary' => __( 'Top Menu' ), ...
0
votes
0answers
19 views

Using 'array' method in wp_nav_menu causes it to disappear

I want to change the menu_class on my navigation bar, but the second I try to use the 'array' method to display my nav, it disappears. This works: <?php wp_nav_menu('Profit.Ology'); ?> This ...
0
votes
0answers
22 views

Using categories and pages in menus

I've got a problem with mixing categories and pages within menus. As a fictional example: - About us (custom page template) -- What we do (page) -- Key staff (page) -- CEO blog (category) ...
0
votes
0answers
17 views

Page template where sidebar navigation menu is selected dynamically

I'm creating a WordPress site where I have about a dozen top-level pages, and each of these pages have sub-pages. All of the pages look exactly the same, but each "section" in the site (i.e. a ...
0
votes
0answers
11 views

extra <a> tag is added in wp_nav_menu

I am a wordpress lover and i am facing this issue for the first time, below is the code i am using for making menu to be displayed. <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
0
votes
0answers
23 views

Auto Create Page and Menu

I'm trying to create a membership plugin, I want it to be able to work with any theme, such that there are some pages that will be automatically added to the theme and the links to them automatically ...
1
vote
1answer
44 views

View h2 content tags of a page in sub 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
29 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
29 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
1answer
25 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
1answer
37 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
1answer
26 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 ...
0
votes
1answer
36 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
26 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
16 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
18 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 ...
0
votes
0answers
20 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
65 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
37 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
29 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
25 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
44 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
26 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
24 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
52 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
195 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
19 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', ...