Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 9, 2015 21:55
Show Gist options
  • Save billerickson/14daabc32a22abaa3c03 to your computer and use it in GitHub Desktop.
Save billerickson/14daabc32a22abaa3c03 to your computer and use it in GitHub Desktop.
Customizations using Sidr ( www.berriart.com/sidr )
// Mobile Menu
$('.site-header .wrap').append( '<div class="mobile-show"><a id="sidr-menu" href="#sidr-menu" class="mobile-menu-toggle"></a></div>' );
$('#sidr-menu').sidr({
name: 'sidr-mobile-menu',
source: '.nav-header',
side: 'right',
});
$(document).on('click', '.sidr-open', function(){
$.sidr('close', 'sidr-mobile-menu');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment