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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘javascript from child theme’ is closed to new replies.