Sticky menu not working when I choose the Airi > Lawyer > menu (basic 4)
Could you tell me What should I do for make it better?
Please give advice…
Thank you.
Sticky menu not working when I choose the Airi > Lawyer > menu (basic 4)
Could you tell me What should I do for make it better?
Please give advice…
Thank you.
Hi,
Thank you for reaching out to us. I am happy to help with your queries.
Try these steps:
(function($) {
function stickyHeader() {
if ( matchMedia( 'only screen and (min-width: 1024px)' ).matches ) {
$('.menuStyle6.sticky-header.admin-bar .site-header').sticky({
topSpacing: 32,
responsiveWidth: true
});
$('.menuStyle6.sticky-header:not(.admin-bar) .site-header').sticky({
topSpacing: 0,
responsiveWidth: true
});
var headerHeight = $('.site-header').outerHeight();
$('#masthead-sticky-wrapper').css('min-height', headerHeight);
} else {
$('.sticky-header .site-header, .sticky-header .main-navigation, .sticky-header .bottom-bar').unstick();
}
}
stickyHeader();
$(window).on('resize', stickyHeader );
})( jQuery );
.menuStyle6 .is-sticky .site-header {
background-color: #181b33;
}
Regards,
Kharis
aThemes Support
Hello Mr.Kharis,
I could that’s exactly what I want to do!
Thank you so much!!
You’re welcome!
Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.
Regards,
Kharis
aThemes Support