This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Load Backstretch script and prepare images for loading | |
add_action( 'wp_enqueue_scripts', 'sixteen_nine_enqueue_scripts' ); | |
function sixteen_nine_enqueue_scripts() { | |
wp_enqueue_script( 'sixteen-nine-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_script( 'sixteen-nine-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_script( 'sixteen-nine-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'sixteen-nine-backstretch' ), '1.0.0' ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
$("body").backstretch([ | |
"http://bradpotter.com/themes/sixteen-nine/wp-content/uploads/glacier.jpg", | |
"http://bradpotter.com/themes/sixteen-nine/wp-content/uploads/flowers.jpg", | |
"http://bradpotter.com/themes/sixteen-nine/wp-content/uploads/mountains.jpg", | |
"http://bradpotter.com/themes/sixteen-nine/wp-content/uploads/bear.jpg" | |
],{duration:4000,fade:1500}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register and Enqueue Primary Navigation Menu Script | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
*/ | |
function gst_primarymenu_script() { | |
wp_register_script( 'primary-menu', get_stylesheet_directory_uri() . '/js/primarymenu.js', array('jquery'), '1.0.0', false ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register and Enqueue Secondary Navigation Menu Script | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
*/ | |
function gst_secondarymenu_script() { | |
wp_register_script( 'secondary-menu', get_stylesheet_directory_uri() . '/js/secondarymenu.js', array('jquery'), '1.0.0', false ); |