Code on custom.js not working using child theme. #672
Replies: 2 comments
-
Hi Franklin,
wp_enqueue_script('custom-js', get_stylesheet_directory_uri() . '/js/custom.js', false, '', true) This works fine. But if it does not work on your site, we need a link to debug this. Please share a link to your project. BTW, have you cleared your cache? Child scripts & styles have no timestamp like the main theme yet. |
Beta Was this translation helpful? Give feedback.
-
Hi, I found the error, in front-page.php file i write: After fix the function name, the custom.js load normally on site. Thanks for help. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Using the bootScore Child theme, code on js/custom.js not working:
In another local installation(using LocalWP) is loading custom.js file.
Thanks for help.
Beta Was this translation helpful? Give feedback.
All reactions