Dropdown menu does not work on mobile
-
Here’s what I’ve done so far to troubleshoot the problem:
– Switched to the Parent “Sela” theme (menu works fine in mobile, so not a problem with the parent theme)
– Switched back to the Child theme. Deleted everything in my child theme’s style.php file except the heading below (menu didn’t work)/* Theme Name: Sela Child Description: Child theme of Sela template Template: sela Version: 1.0 */– Deleting everything except the following in my functions.php file
<?php function my_theme_enqueue_styles() { $parent_style = 'sela-style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); ?>– Deactivating all my plugins (still no dropdown)
I’m at a loss what the problem could be. I’ve made major changes recently (new plugins, playing with CSS in the child theme, deleting the Jetpack plugin) and am not sure at what point the mobile menu button stopped working. Please help!
-
Hi @ssiu!
I see you’ve marked this as resolved, did you still need help or is it sorted out now?
If it is – what was the answer? (just in case someone else with the same problem finds this thread later) 🙂
I started playing with everything that was different from the parent theme in hopes of finding the snag, and it was in the last place I thought to look. I’m not sure what was wrong with my footer.php but I replaced it with code copied from the parent theme’s footer.php and then the menu started working perfectly again.
Oh, I’ve been there – sometimes a fresh copy and paste can work wonders! Glad you’ve gotten it sorted!! 🙂
The topic ‘Dropdown menu does not work on mobile’ is closed to new replies.
