Hi,
i've got a question. Is it possible to change the menu behaviour to make it visible after scroll down even when i am on the header image? (like creativity theme, for example)
Thanks for help
if (jQuery(window).scrollTop() > headerHeight && !jQuery('#gk-menu-wrap').hasClass('active')) {
//document.id('gkHeaderNav').inject(document.id('gkMenuWrap'), 'inside');
jQuery('#gk-menu-wrap').append(jQuery('#gk-header-nav'));
jQuery('#gk-head').attr('class', 'gk-no-menu');
// hide
jQuery('#gk-menu-wrap').attr('class', 'active');
}
//
if (jQuery(window).scrollTop() <= headerHeight && jQuery('#gk-menu-wrap').hasClass('active')) {
jQuery('#gk-head > div').first().css('display', 'block');
jQuery('#gk-head > div').first().prepend(jQuery('#gk-header-nav'));
jQuery('#gk-head').attr('class', '');
jQuery('#gk-menu-wrap').attr('class', '');
// if menu is not displayed now
if (jQuery(window).scrollTop() > 50 && !jQuery('#gk-menu-wrap').hasClass('active')) {
//document.id('gkHeaderNav').inject(document.id('gkMenuWrap'), 'inside');
jQuery('#gk-menu-wrap').append(jQuery('#gk-header-nav'));
jQuery('#gk-head').attr('class', 'gk-no-menu');
// hide
jQuery('#gk-menu-wrap').attr('class', 'active');
}
//
if (jQuery(window).scrollTop() <= 50 && jQuery('#gk-menu-wrap').hasClass('active')) {
jQuery('#gk-head > div').first().css('display', 'block');
jQuery('#gk-head > div').first().prepend(jQuery('#gk-header-nav'));
jQuery('#gk-head').attr('class', '');
jQuery('#gk-menu-wrap').attr('class', '');