Responsive menu going crazy
-
I have encountered an issue where the menu on toggle open it expands a bit for then to quickly collapse. Everything happens in the same action.
What i think is the problem is my child-theme and the copy of js folder. I have run a dequeue script for custom.js in functions.php which looks like this:
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_custom_js’, 100 );
function theme_enqueue_custom_js()
{
wp_dequeue_script( ‘parent_theme_script_handle’ );
wp_deregister_script( ‘parent_theme_script_handle’ );
wp_enqueue_script( ‘child_theme_script_handle’, get_stylesheet_directory_uri() . ‘/js/custom.js’, array( ‘jquery’ ) );
}The script thou seems to be running simultaneously, on both themes.
Any tip?
- The topic ‘Responsive menu going crazy’ is closed to new replies.