scripts.js file) full of
//@prepros-prepend commands calling other .js files, including the one I want to override, with relative paths like so:
I only need to change one
true value to a
false one inside an
if statement in
wc-product-gallery.js. I tried copying the relevant code into my child theme's
custom-scripts.js that gets properly enqueued, but it doesn't override the parent theme's code.
I could, in theory, dequeue the parent theme's
scripts.js and enqueue a modified version from the child theme, but then how do I go about the relative paths to make sure only one prepended file is loaded from the child theme directory, and all the other ones keep getting loaded from the parent theme, and at the right time as well?