Hamburger Menu Toggle doesn’t work when in AMP mode
-
Hi,
I tried to incorporate this code in order to get the menu toggle working just like the non-amp mobile but for some reason it won’t work as I can’t seem to find the ID’s for the Elementor Menu toggle that is on the website. My nav toggle is not working when in AMP responsive mode. Below is my code that I currently have.add_theme_support(
‘amp’,
array(
‘nav_menu_toggle’ => array(
‘nav_container_id’ => ‘menu-1-0719615’,
‘nav_container_toggle_class’ => ‘menu-is-active’,
‘menu_button_id’ => ‘mobile-nav-menu-btn’,
‘menu_button_toggle_class’ => ‘hfe-active-menu’,
),
)
);The hamburger toggle for mobile doesn’t work in AMP. Please let me know what I’m doing wrong? I don’t know if the mobile-nav-menu-btn is the correct id for the menu_button_id as the elementor menu doesn’t have an id so I had to assign an ID, which put it in a different spot.
Thank you!The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.