WP Enqueue Styles – Plugin
-
I’ve been reading about wp-enqueue and used their example and modified it to my own..
(This is in my Plugin.php)/** * Proper way to register and enqueue scripts and styles */ function stepline_stylesheets() { wp_register_style( 'stepline-min', get_template_directory_uri() .'/css/Stepline.min.css', array(), null, 'all' ); wp_register_style( 'stepline-css', get_template_directory_uri() .'/css/style.css', array(), null, 'all' ); wp_enqueue_style( 'stepline-min' ); wp_enqueue_style( 'stepline-css' ); } add_action( 'wp_enqueue_scripts', 'stepline_stylesheets' );
For some reason, this isn’t working? I’ve been confused for a while now.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WP Enqueue Styles – Plugin’ is closed to new replies.