Skip to content

Instantly share code, notes, and snippets.

@rickrduncan
Created August 6, 2013 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickrduncan/6163513 to your computer and use it in GitHub Desktop.
Save rickrduncan/6163513 to your computer and use it in GitHub Desktop.
How To Build a Collapsible Responsive Menu for Genesis: http://www.rvamedia.com/wordpress/collapsible-responsive-menu-for-genesis
<script type="text/javascript">// <![CDATA[
jQuery(document).ready(function($){
/* prepend menu icon */
$('#title-area').append('<div id="mobile-menu"></div>');
/* toggle nav */
$("#mobile-menu").on("click", function(){
$("#nav_menu-2").slideToggle();
$(this).toggleClass("active");
});
});
// ]]></script>
@StephanieWiermann
Copy link

Thanks a lot!
Need to change Line 4 from # to .title-area

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment