Syntax Errors
-
There is a syntax error in the following code:
add_theme_support( 'amp', array( 'nav_menu_dropdown' => array( 'sub_menu_button_class' => 'dropdown-toggle', 'sub_menu_button_toggle_class' => 'toggled-on', // (optional) 'expand_text ' => __( 'expand', 'domain' ), 'collapse_text' => __( 'collapse', 'domain' ), ), ), );
The last comma needs removing please.
On the following page, you use an almost identical solution and that also needs the very last comma removing.
https://amp-wp.org/documentation/playbooks/toggling-hamburger-menus/
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', ), ), );
Hope this helps, because I’m a non-coder, well a coding newbie to be exact, and for people like me these things are frustrating if you don’t know how to resolve them.
Thanks in advance.
David
The page I need help with: [log in to see the link]
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Syntax Errors’ is closed to new replies.