Hello,
Is there a way to use different primary menus depending on the viewport size?
First of all: I don’t mean the typical breakpoint where a mobile menu with a toggle button is shown.
Instead, my theme has multiple “desktop resolutions” like 1156, 960, and 856 pixels wide, which I want to fill with a regular (non-mobile) menu as efficiently as possible.
For example, at 1156 pixels wide, I want to show:
Menu-Link-1 Menu-Link-2 Menu-Link-3 Menu-Link-4 Menu-Link-5 Menu-Link-6 Menu-Link-7 Menu-Link-8
At 960 pixels:
Menu-Link-1 Menu-Link-2 Menu-Link-3 Menu-Link-4 Menu-Link-5 Menu-Link-6 OTHER
(with children links: Menu-Link-7, Menu-Link-8)
At 856 pixels:
Menu-Link-1 Menu-Link-2 Menu-Link-3 Menu-Link-4 Menu-Link-5 OTHER
(with children links: Menu-Link-6, Menu-Link-7, Menu-Link-8)
Is this possible in any way?
With JQuery, simple and fast.
Or put all possible links in one menu, and hide unnecessary with CSS mediaquery.