Tag Info

New answers tagged


You gave each each script the same handle/id of 'grid' Try something like this. function banana_scripts() { wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/jquery.min.js', null, null); wp_enqueue_script('grid2', get_stylesheet_directory_uri() . '/js/main.js', null, null); } add_action('wp_enqueue_scripts', ...


You should be able to dequeue like normal. Despite the complexity of the function, it is really just enqueueing scripts and styles. Tested with the admin bar script on the front end: add_action( 'wp_enqueue_scripts', function() { wp_dequeue_script('admin-bar'); } ); You just want admin_enqueue_scripts and set-post-thumbnail: add_action( ...

Top 50 recent answers are included