I need unregister this enqueue style of wp_footer() hook and add it to the top of site with hook wp_head(), this is possible?
I'm optimizing my theme to validate in W3C, and one of the requirements of W3C is that all styles are within the tag <head></head>
... I am using an specific plugin called Crayon Syntax Highlighter
, and this plugin are inserting a style at the bottom of the page (probably using wp_footer()
hook).
The name/id of script is crayon
:
I've tryed all this functions but no success:
wp_deregister_style( 'crayon' );
wp_dequeue_style( 'crayon' );
remove_action( 'wp_enqueue_style' , 'crayon' , 10 );
wp_deregister_style( 'crayon-css' );
wp_dequeue_style( 'crayon-css' );
remove_action( 'wp_enqueue_style' , 'crayon-css' , 10 );