[ad_1]
Hi guys, I was planning to separate my javascript into its own file, but I received an error because of the “url:ajax.ajax\_url” since this code is PHP. Do you guys have an idea how to prevent this error?
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
You need to define your file in your child theme with the wp_enqueue_script function.
This function must been add in your functions.php