Wp_head and wp_footer vs wp_enqueue_script javascript files?
I’m converting a bootstrap html website into WordPress. Now, all recommend using wp_enqueue_script() for registering javascript files. i.e. function themeslug_enqueue_script() { wp_enqueue_script( ‘my-js’, ‘filename.js’, false ); } add_action( ‘wp_enqueue_scripts’, ‘themeslug_enqueue_script’ ); But I have some js files loading in the head and some other ones in the footer of the original html code. I was … Read more