By default menu shows when you scroll under the header. It is done by this script in gk.scripts.js:
- Code: Select all
if(jQuery('#gkTop').length > 0 && !jQuery('#gkTop').hasClass('active')) {
jQuery(window).scroll(function() {
var currentPosition = jQuery(window).scrollTop();
if(currentPosition >= jQuery('#gkHeader').height() && !jQuery('#gkTop').hasClass('active')) {
jQuery('#gkTop').addClass('active');
} else if(currentPosition < jQuery('#gkHeader').height() && jQuery('#gkTop').hasClass('active')) {
jQuery('#gkTop').removeClass('active');
}
});
}
It gets header height.
Now you need to modify it and insert fixed value:
- Code: Select all
if(jQuery('#gkTop').length > 0 && !jQuery('#gkTop').hasClass('active')) {
jQuery(window).scroll(function() {
var currentPosition = jQuery(window).scrollTop();
if(currentPosition >= 100 && !jQuery('#gkTop').hasClass('active')) {
jQuery('#gkTop').addClass('active');
} else if(currentPosition < 100 && jQuery('#gkTop').hasClass('active')) {
jQuery('#gkTop').removeClass('active');
}
});
}
Please note 100 values - modify it to suit your needs (in both places).