Problem with more than one menu at the same time – Polylang and timber
-
Hello!
I’m having some problems with my menus and polylang. I’ve got two menus displayed on the website. Let’s say they are named “primary_nav” “mobile_nav”. The problem is that for some reason they are now the same. Whatever menu I call I still get the primary navigation. As soon as I deactivate Polylang the correct menus are displayed. What am I doing wrong here?
I register my navigations like this:
$data[‘primary_nav’] = new \Timber\Menu(‘primary-nav’);
$data[‘mobile_nav’] = new \Timber\Menu( ‘mobile-nav’ );and fetch them like this:
{% for item in primary_nav.items %}
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Problem with more than one menu at the same time – Polylang and timber’ is closed to new replies.