Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Hamburger menu on a different resolution

$
0
0

Replies: 0

Hi,

I’m curently working on a site for the company of a mate of mine using the Sydney Theme. I’m trying to let the hamburger menu appear at a different resolution, because I still want to use the normal menu at a resolution of 1024px. I’ve already changed the line

if ( matchMedia( ‘only screen and (max-width: 1024px)’ ).matches )

to

if ( matchMedia( ‘only screen and (max-width: 640px)’ ).matches )

in the main.min.js file in the hope that at least the hamburger menu wouldn’t appear at 1024px.

Unfortunately this did not work and I have no idea why. I seems to me like this should do the trick.

Could you please help me fix this problem?

Sincerely,

dc0015


Viewing all articles
Browse latest Browse all 59525

Trending Articles