I have tried the below as well, my-account is the page the menu will go
add_action( ‘wp_enqueue_scripts’, ‘menu_scripts’ );
function menu_scripts() {
wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘classie’, get_template_directory_uri() . ‘/js/classie.js’, array(), ‘1.0.0’, true );
wp_enqueue_script( ‘menu’, get_template_directory_uri() . ‘/js/menu.js’, array(), ‘1.0.0’, true );
wp_register_script(‘menu’, get_stylesheet_directory_uri() . ‘/js/menu.js’, false, null, true);
if(is_page(‘my-account’)){ wp_enqueue_script(‘menu’); }
}
I have also tried this
add_action( ‘wp_enqueue_scripts’, ‘menu_scripts’ );
function menu_scripts() {
wp_enqueue_script( ‘jquery’ );
wp_enqueue_script( ‘classie’);
wp_enqueue_script( ‘menu’, get_template_directory_uri() . ‘/js/menu.js’, array(), ‘1.0.0’, true );
}
Still not working