SHARE
TWEET

Untitled

a guest Jan 13th, 2016 13 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'wp_enqueue_scripts', 'quality_child_add_scripts' );
  2.  
  3. /**
  4. * Register and enqueue a script
  5. */
  6. function quality_child_add_scripts() {
  7. if(is_page_template('page-template-blog-right-sidebar-php')){
  8. wp_register_script('quality_child-custom-subscription-script',get_stylesheet_directory_uri() . '/custom.js',false,'1.0',true);
  9. wp_enqueue_script( 'quality_child-custom-subscription-script' );}
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top