P
P
partyzanx2018-06-12 13:41:50
WordPress
partyzanx, 2018-06-12 13:41:50

How to run part of the scripts in the footer in wordpress?

The standard solution when changing false to true does not work

wp_enqueue_script( 'jquery-3.3.1', '/scripts/jquery-3.3.1.min.js', array(), '1.0', false);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kozlov, 2018-06-17
@partyzanx

wp_enqueue_script( 'jquery-3.3.1', '/scripts/jquery-3.3.1.min.js', array(), '1.0', false);

$in_footer - false works on true. It is important to understand where this function is called. For good she should be hung on
add_action( 'wp_enqueue_scripts', 'add_my_scripts' );
. If that's not the case, then it could be either $handle or $ver.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question