I’m having a similar problem. I’m trying to add styles and scripts to my plugin so I use:
function add_my_scripts() {
wp_register_script( 'test_scripts', plugins_url('test_scripts.js', __FILE__) );
wp_enqueue_script( 'test_scripts' );
}
add_my_scripts();
in my plugin page but it adds the script to the footer rather than inside the <head> tags. The same thing happens with wp_enqueue_style.