Articles of menus

Recreating the hierarchy of taxonomies for a dropdown form menu?

I have a form that contains a dropdown menu. This form is on a page form.php and is not part of my theme. It exists outside of my site. This dropdown menu contains my list of values for a custom taxonomy called Formats. My Formats are as follows: Entry Form Facebook – Entry Form – […]

wp_nav_menu (secondary menu) not adding current classes

I’ve looked everywhere, but i can’t find a solution. My secondary menu isn’t adding any current classes to the tags when it’s rendered. I have added this menu in my functions.php file function register_menus() { register_nav_menus( array( ‘second-menu’ => __( ‘Second Menu’ ) ) ); } Then I created a menu in wordpress with the […]

How to limit wordpress menu depth in admin panel

Is it possible to limit maximum menu depth in admin panel /nav-menus.php? I need this because my theme won’t support more than two levels of menu, so there is no point in allowing a user to make deeper menus.

Multiple menu items highlighted

I am using WordPress as the CMS for my website. For my navigation menu, I am using WordPress’ inbuilt navigation menu function. You add categories, page, etc, to this and it generates a list with certain classes you can style – like current-menu-item. My problem lies here: I have several categories in my menu, and […]

How to target children of child pages

I would like to apply special styling to the menu items of pages that are children of child pages. Is there a way to do this?

What is the difference between current_page_parent and current_page_ancestor?

In the function wp_page_menu there is an auto-generated classes to the list elements and the function generates current_page_parent and current_page_ancestor to a parent menu item if I clicked a child menu item (I mean if the current page is the child menu element). So now why does WordPress generate two different classes for the same […]

Menu Multiple Taxonomies

I have a post_type “products” which has both “Category” and “Brand” taxonomies. Each product has exactly 1 Category, and exactly 1 Brand. I would like to display a menu which first lists the Categories as the top-level menu, and then lists the Brands contained in each as a Sub-Menu. Each Sub-Menu should only display the […]

How to specify or extend the CSS-class of a menu item?

is there a way to allow admin users to add classes to individual menu items in the back end? we have done some individual javascripting and CSS using the title tag, but that is not flexible as it is visible to the end user, so the method is not suited effects needed to be applied […]

Second menu not showing

I am running WP 3.2.1 on a dedicated server and having a little trouble with a second menu. I have a menu at the top of the page which is working fine but I’ve added a secondary left menu to the left column which is currently showing the top menu despite it being selected in […]

How to remove class attributes from custom menu markup?

Just playing around with adding “custom menu” support to my theme. I’m super excited about it. HOWEVER, Check this out > <ul id=”menu-my-main-menu” class=”menu”> <li id=”menu-item-12″ class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-12″> <a href=”http://localhost/bizsite”>Home</a> </li> </ul> Worst case of “class-itus” I think I’ve ever seen. Is this something “I” did unintentionally or is this […]