Home Forums WoodMart support forum child theme functions.min.js doesn't override main theme functions.min.js Reply To: child theme functions.min.js doesn't override main theme functions.min.js

#187658

Artem Temos
Keymaster

Hello,

This file can’t be overridden as well as standard WordPress template files. You need to first dequeue the parent theme JS file and then enqueue your own from the child theme. But we suggest you not to override this particular file but simply add another JS file where you can write your code or use our Custom JS in Theme Settings.
If you still want to do this, you will need to add a localization array as well. You can find how to do this in the file funcitons.php PHP function – woodmart_enqueue_scripts

Regards