The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS JQuery validator not working in WordPress Re: JQuery validator not working in WordPress


The ‘custom’ script -> ‘page.js’ is where I have replaced your inline code (the jquery in your header) and put it in an external file. You don’t have to seperate it but your code has to come AFTER wp_head(). That function is what begins loading all of the enqueued scripts.

You can also remove your wp_enqueue_script("jquery");
from your head, if you have it in your functions.php.

So either place your jquery after the wp_head, or into the ‘page.js’ file. If you don’t use the ‘page.js’ file then remove it from your functions.php, otherwise you are requesting a file that doesn’t exist.

View the source on the page in your browser and you’ll see your code reference before all other wordpress stuff!