Title: Child theme functions.php
Last modified: September 1, 2016

---

# Child theme functions.php

 *  Resolved [tcempk](https://wordpress.org/support/users/tcempk/)
 * (@tcempk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-9/)
 * I’m trying to override a js from my child theme. I created a js folder in my 
   child theme and placed the modified scripts.js in that folder. Now I know I have
   to call this file from fuctions.php but I don’t seem to get the code right.. 
   this is what I came up with after some research and past experience.
 *     ```
       function oria_scripts() {
   
           wp_enqueue_script( 'scripts', get_stylesheet__uri() . '/js/scripts.js', array(), '1.0.0', true );
       }
       add_action( 'wp_enqueue_scripts', 'oria_scripts' );
       ```
   
 * I’m using, as seen from the code, a theme called oria.

Viewing 1 replies (of 1 total)

 *  Thread Starter [tcempk](https://wordpress.org/support/users/tcempk/)
 * (@tcempk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-9/#post-7716543)
 * As it often happens, I found the answer soon after asking the question. Here 
   it is bellow.
 *     ```
       function oria_js() {
           wp_enqueue_script( 'oria_js', get_stylesheet_directory_uri() . '/js/scripts.js', array( 'jquery' ), '1.0', true );
       }
   
       add_action('wp_enqueue_scripts', 'oria_js');
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Child theme functions.php’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [fuctions.php](https://wordpress.org/support/topic-tag/fuctions-php/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 1 reply
 * 1 participant
 * Last reply from: [tcempk](https://wordpress.org/support/users/tcempk/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/child-theme-functionsphp-9/#post-7716543)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
