Guest User

Untitled

a guest
Sep 23rd, 2015
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function theme_enqueue_styles() {
  4. wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
  5. wp_enqueue_style( 'child-style',
  6. get_stylesheet_directory_uri() . '/style.css',
  7. array('parent-style')
  8. );
  9. }
  10. function wpb_adding_scripts(){
  11. wp_register_script('my_script', get_stylesheet_directory_uri() . '/script_1.js', array(),'1.1', true);
  12. wp_enqueue_script('my_script');
  13.  
  14. }
  15. add_action('wp_enqueue_scripts', 'theme_enqueue_styles');
  16. add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' );
  17.  
  18. ?>
RAW Paste Data