Change to mobile menu

2 replies · opened Mar 25, 2022

Bbrano099Mar 25, 2022

Hi,
I'd like to ask how the easiest way to make the menu change to a mobile menu sooner than at 991.98px .. e.g. at 1200px
where does the bet make a change?
thank you

SSemicolon WebSTAFFMar 25, 2022

Hello,

Having a Mobile Menu at 1200px is Definitely Possible but there is a fair bit of Customization required to achieve this:

  1. In the style.css File, you will need to change all the Media Queries that includes the #header,#primary-menu and other Header Elements from @media (min-width: 992px) to @media (min-width: 1200px) and from @media (max-width: 991.98px) to @media (max-width: 1199.98px).

  2. In the js/functions.js File, you will need to change all the following codes targeting the Headers and Primary Menus:
    [ch_pre type="js"]$body.hasClass('device-xl') || $body.hasClass('device-lg')[/ch_pre]

to:
[ch_pre type="js"]$body.hasClass('device-xl')[/ch_pre]

and:
[ch_pre type="js"]$body.hasClass('device-md') || $body.hasClass('device-sm') || $body.hasClass('device-xs')[/ch_pre]

to:
[ch_pre type="js"]$body.hasClass('device-lg') || $body.hasClass('device-md') || $body.hasClass('device-sm') || $body.hasClass('device-xs')[/ch_pre]

That's all. This should definitely work fine. We are already working on making this much more easier and this feature will be available in the next major version of Canvas. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Bbrano099Mar 26, 2022

perfect .. Thank you!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard