Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpa_scripts() {
- wp_enqueue_script(
- 'wpa_script',
- get_template_directory_uri() . '/js/custom.js',
- array('jquery'),
- false,
- true
- );
- $script_data = array(
- 'image_path' => get_template_directory_uri() . '/images/'
- );
- wp_localize_script(
- 'wpa_script',
- 'wpa_data',
- $script_data
- );
- }
- add_action( 'wp_enqueue_scripts', 'wpa_scripts' );
- $(function(){
- jQuery(document).ready(function() {
- $('#home').backstretch([
- image_path+"home-bg-slideshow1.jpg",
- image_path+"home-bg-slideshow2.jpg",
- image_path+"home-bg-slideshow3.jpg",
- ], {duration: 2000, fade: 750});
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement