Thank you @milindmore22
Now the toggle menu works correctly.
Best Regards
Hello @milindmore22
Thank you for the code. I have updated it inside functions.php and style.css, but unfortunately, it still does not work correctly.
Best Regards
Thank you for the video link @milindmore22
Because there are no IDs, I have used XPath for them, but still, there is a problem with the code because the mobile menu doesn’t use toggle class but style=”display: block;” for open toggle and display: none for the closed toggle. So, this code doesn’t work still.
`add_theme_support(
‘amp’,
array(
‘nav_menu_toggle’ => array(
‘nav_container_xpath’ => ‘//*[@id=”masthead”]/div/div[2]/div’,
‘nav_container_toggle_class’ => ‘drawer-menu-explore’,
‘menu_button_xpath’ => ‘//*[@id=”masthead”]/div/div[1]’,
‘menu_button_toggle_class’ => ‘toggle-active’,
),
)
);
Anyway, thanks again.
Best Regards