On PS1.7 We’re trying to override JS for module stnewsletter, by putting the file stnewsletter.js in the /themes/child1/modules/stnewsletter/views/js/ folder.
However, the updated file is never used (even after cache reset). Any clue on how to get the override working ?
Hello
As it’s still not working, we’ve investigated further. It turns out JS executed is in /public_html/themes/transformer/assets/js/theme.js and is never regenerated, even after clearing/disabling cache: what are we doing wrong?
Thanks
Hi,
Yes, most js files were merged and compressed into the theme.js file to spend site up. so you need to add your code to the “Custom javascript code” field under Theme editor > Custom codes or the custom.js file.
Best regards.