Twenty Nineteen
When Max Mega Menu is enabled in Twenty Nineteen, you might notice the following conflicts:
- Menu items are duplicated within sub menus
- Focusing on input boxes within sub menus immediately removes the focus
To resolve these issues, add the following to your child themes functions.php file:
1 2 3 4 5 6 7 8 9 10 11 |
function remove_parent_filters(){ //Have to do it after theme setup, because child theme functions are loaded first remove_filter( 'wp_nav_menu', 'twentynineteen_add_ellipses_to_nav'); remove_filter( 'wp_nav_menu_objects', 'twentynineteen_add_mobile_parent_nav_menu_items'); } add_action( 'after_setup_theme', 'remove_parent_filters' ); function wpdocs_dequeue_script() { wp_dequeue_script('twentynineteen-touch-navigation'); } add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 ); |