N
N
Nik_10112020-08-18 10:10:59
WordPress
Nik_1011, 2020-08-18 10:10:59

How to include your jquery in wordpress if jquery is inside app.min.js?

Hello.

How to include jQuery in WP is clear:

add_action( 'wp_enqueue_scripts', 'my_scripts_method', 11 );
function my_scripts_method() {
  wp_deregister_script( 'jquery' );
  wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
  wp_enqueue_script( 'jquery' );
}


What if the jQuery file is inside app.min.js? How then to register it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question