Research Resource Discovery

WordPress Developer Tips: Enqueuing Styles and Scripts

Affiliation: UIUC


Type: Streaming Resource

Description: There's a right way and a wrong way to add style sheets and JavaScript libraries and scripts to your WordPress themes. The right way takes advantage of the WordPress enqueue system, which prevents script and style conflicts. In this installment of WordPress Developer Tips, staff author Morten Rand-Hendriksen introduces the two main functions for enqueuing: wp_enqueue_style() and wp_enqueue_script(0). He'll show how the functions work and how to adjust their parameters, as well as theoretical and practical examples of implementing them in themes. This course uses Simone, a theme developed especially for Morten's WordPress: Building Themes from Scratch Using Underscores course, but you can use any theme or subtheme that you'd like.

Quality Level: production