i am created website using wordpress now i want to add some java script in wordpress theme but its not work.ho to add java script in wordpress theme please help.
Hi @like4you25, what exactly does not work? What have you tried?
The usual approach would be to enqueue the JS in your theme using
wp_enqueue_script(). If you haven’t developed the theme yourself you’ll have to fork a child theme first though, if you haven’t done so already.
for testing purpose, you can add js using plugin custom css & js , if it works properly this way then you should try adding it to the theme by the method @m3g4p0p told