Created
June 20, 2014 10:26
-
-
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
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($) { | |
/* 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