I am attempting to add custom css through my plugin. I do have wp_head() called in my header.
My code is -
/**
* Enqueue plugin style-file
*/
function prefix_add_my_stylesheet() {
wp_enqueue_script('style1', plugins_url('style1.css', __FILE__) );
}
add_action( 'wp_enqueue_scripts', 'prefix_add_my_stylesheet' );
I can access style1.css when I
echo plugins_url('style1.css', __FILE__);
So I know it exists and is available. I do not get any errors and the style sheet does not show.
I am placing the above code inside mysite/wp-content/plugins/mycustomplug/plugin.php
Can anyone let me know why this may not be loading? Nothing errors out so I assume my syntax is correct.