Anatomy Of A WordPress Plugin: Loading CSS & JavaScript Together

In the last couple of posts in this series I’ve taken a look at using wp_enqueue_scripts to load the CSS and JavaScript files. In those examples, the CSS and JavaScript were loaded via different functions. However, we could use add_action to call one function to load both the CSS and… Read more“Anatomy Of A WordPress Plugin: Loading CSS & JavaScript Together”

Anatomy Of A WordPress Plugin: Loading The JavaScript

Additional functionality can be added to a WordPress using JavaScript. For example, the Series Index uses JavaScript to allow the index to be shown or hidden when the user clicks a toggle link. The JavaScript will be stored in a separate file which, when I use it, I usually call… Read more“Anatomy Of A WordPress Plugin: Loading The JavaScript”