Turns out OOTS Flex theme is not a flexy as what we thought. Am trying to create a centered header with menu bar on left (with a drawer menu) and cart on right but the ‘Centered Header’ setting has a top bar with the cart icon by default, and only allows mega menu dropdowns.
To overcome this, I am trying to only engage the mobile header (which has the look and functionality that we want) on all devices by tweaking the max width of the mobile header but i’m not having much luck.
Have already deleted the main header with this
.navbar {
display: none;
}
Am trying to play with the mobile header and changing the max widths ’ @_media only screen and (max-width: 798px)’ to engage on all screens but cant quite seem to find the right bit to change…
Hey Suyash… I have managed to get the mobile header on to all screen sizes. But now my menu wont open when the screen is above 768px. Cart works fine. I have no idea what may be causing this. If you could point me in the right direction, that would be great
@ClemFandango - Hi , I am also not getting it, I checked on desktop there is no jquery conflict too, what I believe is the javascript code written for opening mobile menu is set for mobile only, I recommend to ask theme support first, if they too can not help then we can add new code to force action on button click.
But it is better to ask them first, else we can try by forcing via code.
Copy this window.PXUTheme.mobileMenu.init(); and move it outside of the if statement. This is the function that needs to run in order for the mobile menu animation to work on desktop. You will also have to amend the CSS to show the mobile menu and hide the desktop menu.