Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- function wpbootstrap_scripts_with_jquery()
- {
- // Register the script like this for a theme:
- wp_register_script('bootstrap-script', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array('jquery'), 20140902, true);
- // For either a plugin or a theme, you can enqueue the script:
- wp_enqueue_script('bootstrap-script');
- wp_register_script('custom-script', get_template_directory_uri() . '/bootstrap/js/custom.js', array('bootstrap-script', 'jquery'), 20140902, true);
- // For either a plugin or a theme, you can enqueue the script:
- wp_enqueue_script('custom-script');
- wp_register_script('respond', get_template_directory_uri() . '/bootstrap/js/respond.js');
- wp_enqueue_script('respond');
- }
- add_action('wp_enqueue_scripts', 'wpbootstrap_scripts_with_jquery');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement