Okay
  Print

How to Disable Sticky Menu

1) Go to ThemeREX Addons section.

2) Turn on Debug Mode


3) Go to the templates files \wp-content\themes\melanie-hanson\js and open _init.js file.
4) You need to find a line 538 and remove code :


// Fix/unfix top panel
if (!jQuery('body').hasClass('mobile_layout') && !jQuery('body').hasClass('menu_style_side') && !jQuery('body').hasClass('header_position_under')) {
var slider_height = 0;
if (scroll_offset <= slider_height + MELANIE_HANSON_STORAGE['top_panel_height']) {
if (jQuery('body').hasClass('top_panel_fixed')) {
jQuery('body').removeClass('top_panel_fixed');
jQuery('.top_panel_navi').removeClass('state_fixed');
}
} else if (scroll_offset > slider_height + MELANIE_HANSON_STORAGE['top_panel_height']) {
if (!jQuery('body').hasClass('top_panel_fixed') && jQuery(document).height() > jQuery(window).height()*1.5) {
jQuery('.top_panel_fixed_wrap').height(MELANIE_HANSON_STORAGE['top_panel_height']);
jQuery('.top_panel_navi').css('marginTop', '-150px').animate({'marginTop': 0}, 500);
jQuery('.top_panel_navi').addClass('state_fixed');
jQuery('body').addClass('top_panel_fixed');
}
}
}


5) Save and reload website to check.