Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * A safe way of adding javascripts to a WordPress generated page.
- */
- if (!is_admin())
- add_action('wp_enqueue_scripts', 'responsive_child_js');
- if (!function_exists('responsive_child_js')) {
- function responsive_child_js () {
- // JavaScript at the bottom for fast page loading.
- wp_enqueue_script('custom-scripts', get_stylesheet_directory_uri() . '/js/custom-scripts.js', array('jquery'), '1.0.0', true);
- wp_enqueue_script('custom-plugins', get_stylesheet_directory_uri() . '/js/custom-scripts.js', array('jquery'), '1.0.0', true);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement