June 26, 2020 at 10:21 pm
#10033596
Keymaster
Hello, first thanks for your purchase and sorry for that issue.
We will fix that in a future version of Porto. For now to fix, please change the code in (js/theme.js) around line 5168 to this new:
self.checkStickyHeader = function() {
if( $window.outerWidth() > 991 && $html.hasClass('side-header') ) {
$html.removeClass('sticky-header-active');
activate_flag = true;
return;
}
if ($window.scrollTop() >= parseInt(self.options.stickyStartAt)) {
if( activate_flag ) {
self.activateStickyHeader();
activate_flag = false;
deactivate_flag = true;
}
} else {
if( deactivate_flag ) {
self.deactivateStickyHeader();
deactivate_flag = false;
activate_flag = true;
}
}
};
* Note we just changed the $window.width() to $window.outerWidth().
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads