WordPress WordPress Theme Development Working with CSS and JS in WordPress Themes Adding CSS to a Theme Via the functions.php File


Should wp_register_style be used prior to wp_enqueue_style?

1 Answer

Gary Stewart
Gary Stewart
14,142 Points

I would say it is better to register the style before enqueuing it, the Wordpress documentation doesn't state it as a rule but does mention it is best to use after registering :)

Hope that helps. Gary