Skip to content

Instantly share code, notes, and snippets.

@kriot1
Last active November 29, 2015 01:24
Show Gist options
  • Save kriot1/adf5fd357ad1efd81e4c to your computer and use it in GitHub Desktop.
Save kriot1/adf5fd357ad1efd81e4c to your computer and use it in GitHub Desktop.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
add_action( 'wp_enqueue_scripts', 'riot_enqueue_script' );
function riot_enqueue_script() {
wp_enqueue_script( 'sticky-nav', get_bloginfo( 'stylesheet_directory' ) . '/js/sticky-nav.js', array( 'jquery' ), '', true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment