@jeffjeffbobeff
There are at least 4 ways to do that:
1) (deprecated) change tc-scripts.min.js adding the right code, or change tc-script.js adding the right code, and force customizr to load it instead of the minified version. But you should change two core files, and you will lose your changes with the next update.
2)(suggested) Make a child theme.
2.a) make a new directory in your child theme directory, and call it “js”.
So you’ll have:
‘customizr-child/js’
2.b) create a new file named “hammer_patch.js” in the just created dir “js” and fill it with this code:
jQuery(document).ready(function () {
! function ($) {
//prevents js conflicts
"use strict";
//prevent propagation event from sensible children
$(".carousel input, .carousel button, .carousel textarea, .carousel select, .carousel a").
on("touchstart touchmove", function(ev) {
ev.stopPropagation();
});
}(window.jQuery);
});
2c) Open your brand-new child-theme functions.php (which, now you know, has to start with <?php
) and append this code:
add_action('after_setup_theme', 'prepare_hammer_patch');
function prepare_hammer_patch(){
if ( ! wp_is_mobile() )
return;
add_action('wp_enqueue_scripts', 'hammer_patch', 5);
}
function hammer_patch(){
wp_enqueue_script('hammer-patch', TC_BASE_URL_CHILD . 'js/hammer_patch.js' , array('jquery') );
}
3) (lazy you mode on) Wait for next customizr release, hopefully ??
4) (lazy you mode on++) Download this zip file and decompress it in wp-content/plugins/ , then activate Customizr Hammer Patch plugin.
Cross your finger ??