Last active
October 7, 2015 12:28
-
-
Save jameskoster/3165260 to your computer and use it in GitHub Desktop.
Add a .parent class to parent menu items in wp_nav_menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function() { | |
| jQuery( 'ul.sub-menu' ).parent().addClass( 'parent' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment