Skip to content

Instantly share code, notes, and snippets.

@lonchbox
Created June 20, 2014 10:26
Show Gist options
  • Save lonchbox/0727d8d489df8376c06e to your computer and use it in GitHub Desktop.
Save lonchbox/0727d8d489df8376c06e to your computer and use it in GitHub Desktop.
App.js to load Foundation Zurb javascript. Make WordPress custom menu compatible with Foundation Zurb top-bar classes
jQuery(document).ready(function($) {
/* WORDPRESS NAV-BAR SUPPORT ------------- */
/* Adds support for the top-bar with flyouts in WordPress */
$('.top-bar-section li').has('ul').addClass("has-dropdown");
$('.top-bar-section li.has-dropdown ul').addClass("dropdown");
/*loads foundation*/
jQuery(document).foundation();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment