Skip to content

Instantly share code, notes, and snippets.

@bryanmonzon
Created September 17, 2014 17:32
Show Gist options
  • Save bryanmonzon/aef0e1181d4ecaa8d390 to your computer and use it in GitHub Desktop.
Save bryanmonzon/aef0e1181d4ecaa8d390 to your computer and use it in GitHub Desktop.
<?php
//First you register the script
//The parameters are (title, path, what the script depends on, version-leave this blank, in footer)
wp_register_script('GIVE-IT-A-UNIQUE-TITLE-HERE', get_bloginfo('template_url').'/js/skrollr.js', array( 'jquery' ), '', true);
//Then you enqueue it (so it renders on the page)
wp_enqueue_script('skrollr');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment