WordPress MooTools Framework Plugin

Description

This WordPress MooTools plugin simply provides you with the latest MooTools JavaScript framework on the front-end of your WordPress website. It makes use of the wp_head WordPress action hook in order to insert code into the HEAD section of your layout. The MooTools framework will be referenced in your markup as a JavaScript file after it has been safely enqueued using the WordPress wp_enqueue_script function.

Installation

  1. Download the WordPress MooTools plugin.
  2. Unzip the ZIP archive in order to obtain the mootools folder.
  3. Log in to your WordPress admin and go to the “Plugins” panel.
  4. Activate the “MooTools” plugin by clicking the “Activate” link.

Usage

The plugin makes use of the wp_head WordPress action hook to enqueue the MooTools framework. Ensure that your WordPress theme has the following code inside the HEAD section in order for the appropriate MooTools JavaScript reference to be inserted.

<?php wp_head(); ?>

Once the WordPress MooTools plugin has been activated in the “Plugins” panel, the MooTools JavaScript framework will be referenced in the HEAD section of your WordPress website’s front-end automatically.

The MooTools framework is now ready to be used. You may put the following shortcode into any WordPress post or page to test whether it is being loaded. A message “MOO!” will be displayed if the framework is successfully being loaded.

[mootools]

Thats all there is to it! Enjoy using MooTools with WordPress.

Demonstration

Feel free to check out the WordPress MooTools plugin demonstration. It simply uses the MooTools $chk to see whether MooTools is actually loaded and active.