Advertisement
Guest User

functions.php

a guest
Dec 23rd, 2012
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2.     /**
  3.      * A safe way of adding javascripts to a WordPress generated page.
  4.      */
  5.     if (!is_admin())
  6.         add_action('wp_enqueue_scripts', 'responsive_child_js');
  7.  
  8.     if (!function_exists('responsive_child_js')) {
  9.  
  10.         function responsive_child_js () {
  11.             // JavaScript at the bottom for fast page loading.
  12.             wp_enqueue_script('custom-scripts', get_stylesheet_directory_uri() . '/js/custom-scripts.js', array('jquery'), '1.0.0', true);
  13.             wp_enqueue_script('custom-plugins', get_stylesheet_directory_uri() . '/js/custom-scripts.js', array('jquery'), '1.0.0', true);
  14.         }
  15.  
  16.     }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement