Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/global.js Secret
Created Mar 9, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.