Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@elioverbey
Created March 18, 2014 21:09
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 elioverbey/9629687 to your computer and use it in GitHub Desktop.
Save elioverbey/9629687 to your computer and use it in GitHub Desktop.
Remove the Shrinking Header Action on the Centric Pro Theme from Genesis
jQuery(function( $ ){
$(".site-header").after('<div class="bumper"></div>');
$(window).scroll(function () {
if ($(document).scrollTop() > 1 ) {
$('.site-header').removeClass('shrink');
} else {
$('.site-header').removeClass('shrink');
}
});
$("header .genesis-nav-menu").addClass("responsive-menu").before('<div id="responsive-menu-icon"></div>');
$("#responsive-menu-icon").click(function(){
$("header .genesis-nav-menu").slideToggle();
});
$(window).resize(function(){
if(window.innerWidth > 600) {
$("header .genesis-nav-menu").removeAttr("style");
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment