Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Last active October 7, 2015 12:28
Show Gist options
  • Select an option

  • Save jameskoster/3165260 to your computer and use it in GitHub Desktop.

Select an option

Save jameskoster/3165260 to your computer and use it in GitHub Desktop.
Add a .parent class to parent menu items in wp_nav_menu
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