Title: javascript from child theme
Last modified: August 22, 2016

---

# javascript from child theme

 *  [psytanium](https://wordpress.org/support/users/psytanium/)
 * (@psytanium)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-from-child-theme/)
 * Hello,
 * I copied and modified js/maps.js
 * But when in theme-child/js.maps.js it don’t make any difference.
 * I was reading that i have to insert this code into theme-child/functions.php
 *     ```
       add_action('wp_enqueue_scripts', 'load_javascript_files');
       function load_javascript_files() {
       	wp_register_script('ajax_call_mkto', get_template_directory_uri() . 'js/marketo_wp_ajax.js', array('jquery'), true );
       	wp_enqueue_script('ajax_call_mkto');
       }
       ```
   
 * can someone offer some help ?
 * thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-from-child-theme/#post-5895124)
 * You need to use “get_stylesheet_uri” instead of “get_template_directory_uri”
 * [http://codex.wordpress.org/Function_Reference/get_stylesheet_uri](http://codex.wordpress.org/Function_Reference/get_stylesheet_uri)
 *  Thread Starter [psytanium](https://wordpress.org/support/users/psytanium/)
 * (@psytanium)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-from-child-theme/#post-5895268)
 * i found the script somewhere on this forums, can you tell me what should i replace?
   ajax_call_mkto what would it become ?
 * thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘javascript from child theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [psytanium](https://wordpress.org/support/users/psytanium/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-from-child-theme/#post-5895268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
