Leave the mainnav menu between 767px and 1024px
-
Hi !
I’m trying out this Theme for a new website, and I really love it. Nevertheless, I’m struggling on something to customize the theme.
I’m trying to leave the full screen menu (#mainnav) for screen with width > 767px. In order to do that, I’ve made the following changes :
In the js>main.js file :
$(window).on('load resize', function() { var currMenuType = 'desktop'; if ( matchMedia( 'only screen and (max-width: <strong>767px</strong>)' ).matches ) { currMenuType = 'mobile'; } In the style.css file :
@media only screen and (max-width: 767px) {
#mainnav {
display: none;
}}After reloading the page, I can still see the class #mainnav changing in #mainnav-mobi for screen with width lower than 1024. What did I forget ?
Thanks a lot for you help ??
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Leave the mainnav menu between 767px and 1024px’ is closed to new replies.