Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Issue with Mobile Menu using official AMP Plugin

Home / Forums / Membership Forums / Issue with Mobile Menu using official AMP Plugin

This topic is: Not a support question
[Not a support question]

Tagged: 

May 9, 2020 at 7:40 pm

This should be pretty simple. I’m trying to get the mobile hamburger menu to work while using the official amp plugin in standard mode (AMP first).

I’m trying to use the amp_theme_support flag from this guide:

add_theme_support(
'amp',
array(
'nav_menu_toggle' => array(
'nav_container_id' => 'site-navigation',
'nav_container_toggle_class' => 'toggled-on',
'menu_button_id' => 'site-navigation-toggle',
'menu_button_toggle_class' => 'toggled-on',
),
)
);

I used the menu_button_xpath

I thought I’d added the correct container id’s and classes.. but must not have.

URL:

  • The forum ‘Membership Forums’ is closed to new topics and replies.