Created
          December 3, 2013 17:34 
        
      - 
      
 - 
        
Save crixlet/7773610 to your computer and use it in GitHub Desktop.  
    proper way to add custom js
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function wpb_adding_scripts() { | |
| wp_register_script('custom_js', get_template_directory_uri() . '/js/func.js', array('jquery'), true); | |
| wp_enqueue_script('custom_js'); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' ); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment