Title: Adding Javascript to child-theme
Last modified: August 21, 2016

---

# Adding Javascript to child-theme

 *  [Tche111](https://wordpress.org/support/users/tche111/)
 * (@tche111)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-javascript-to-child-theme/)
 * Hello,
    I am trying to add further features to a twentyfourteen-child theme. 
   Some tutorials indicate that they should be set in the “main JS file” but I dont
   know which one it is in twenty-fourteen. The folder “js” includes:
    -  customizer.js
       featured-content-admin.js functions.js html5.js keyboard-image-
      navigation.js slider.js
 * Which one should I copy-paste twentyfourteen-child/js/ for modification?
    Many
   thanks in advance for your help!!! T’Cheers

Viewing 1 replies (of 1 total)

 *  [WP SITES](https://wordpress.org/support/users/wordpresssites/)
 * (@wordpresssites)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-javascript-to-child-theme/#post-5136221)
 * [Create a child theme](http://codex.wordpress.org/Child_Themes) first and then
   use [wp_enqueue_scripts](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
   function for the new JS file.

Viewing 1 replies (of 1 total)

The topic ‘Adding Javascript to child-theme’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentyfourteen/4.5/screenshot.
   png)
 * Twenty Fourteen
 * [Support Threads](https://wordpress.org/support/theme/twentyfourteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentyfourteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentyfourteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentyfourteen/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [WP SITES](https://wordpress.org/support/users/wordpresssites/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/adding-javascript-to-child-theme/#post-5136221)
 * Status: not resolved