Tag Archives: wp_register_script

Behind the Websites: JavaScript the WordPress Way / Part 2

In Part 1 we introduced the wp_register_script and wp_enqueue_script functions developed to avoid JavaScript conflicts.

In this section we’ll deal with a more complicated example. We’ll also take what we’ve learnt about including JavaScript and apply it to our CSS.

Behind the Websites: JavaScript the WordPress Way / Part 1

Problems arise when your theme or plugin both use the same JavaScript library or if Prototype and jQuery are both used on the same site.

Two of the most important WordPress functions are often ignored by WordPress theme and plugin developers. Introducing: wp_register_script and wp_enqueue_script.