Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Themes create the public (front-end) interface for a WordPress site.
1
vote
1
answer
129
views
Is there a way to add a class to non current menu item?
When using the wp_nav_menu function, the current menu item markup usually is like so:
<li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item …
3
votes
Accepted
Is there a way to add a class to non current menu item?
The markup of the wp_nav_menu can be totally customized by using the Walker class.
Here's the code I used:
functions.php
class Walker_Menu extends Walker {
var $db_fields = array(
'par …