Title: Loading scripts in child theme
Last modified: August 22, 2016

---

# Loading scripts in child theme

 *  [Bflin](https://wordpress.org/support/users/bflin/)
 * (@bflin)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/loading-scripts-in-child-theme/)
 * Hello,
 * I have an issue about how do I get my scripts and css from a Jquery plugin that
   I would activate on a child theme’s page. I used get_stylesheet_directory_uri()
   function with wp_enqueue functions as the codex tells to do but I still have 
   404 errors and wrong paths in my chrome inspector despite the fact that get_stylesheet_directory_uri()
   is returning the right string. I don’t get what is wrong in my code. If someone
   knows about similar issues, I would be saved.
 * Here is my code that I used on my child theme’s template page :
 *     ```
       function references_scripts() {
       		wp_enqueue_style( 'styles', get_stylesheet_directory_uri().'/stylesheets/styles.css' );
       		wp_enqueue_script( 'jquery', get_stylesheet_directory_uri().'/js/jquery.quicksand.js', array(), '1.0.0', true );
       		wp_enqueue_script( 'jquery', get_stylesheet_directory_uri().'/js/sorting.js', array(), '1.0.0', true );
       	}
   
       	add_action( 'wp_enqueue_scripts', 'references_scripts' );
       ```
   

The topic ‘Loading scripts in child theme’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [Bflin](https://wordpress.org/support/users/bflin/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/loading-scripts-in-child-theme/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
