Javascript won't work in page?
-
I am using this Dynamic Dependant DropDown List: US States & Counties in a form on a page outside of wordpress and it works fine. The problem is I cannot get it to work in a wordpress page using a page template, ie. page-test.php
I have followed tutorials to register and and use wp_enqueue_scripts() but that isn’t making a difference. I know I did it right because the link to the path is showing in the headers and I am using
<?php require(‘wordpress/wp-load.php ?> to integrate my theme into the page outside of wordpress.Using this method is working but I would rather use a page inside of wordpress. Can anyone tell me what more I need to do to get this to work inside of wordpress?
btw, I am using the database option they provide. Inside the wordpress test page it is using the info from the database just fine – just not using the script to load the counties.
You can see it here:
https://ididntsee.com/test/ <– inside of wordpress not working.
https://ididntsee.com/share-your-story.php <– outside wordpress working.
- The topic ‘Javascript won't work in page?’ is closed to new replies.