sh0wtym3
Forum Replies Created
-
Ok.. I got it working.. Found out there was a PHP error inside the theme I’m using, which preventing the remaining PHP code from being executed (like wp_footer()) which therefore prevented the necessary JS from being loaded.
Nothing wrong with your plugin – its working fine now 🙂
Additional info:
The function wp_footer() is being called inside my footer.php file, however jquery.simplemodal.js and smcf.js are not being called on the home page.
I tried adding the following to my header.php file which didn’t work:
<?php if (function_exists('smcf')) : ?> <?php smcf(); ?> <?php endif; ?>I tried manually adding the following to my header.php file:
<script src="http://www.mydomain.com/wp-content/plugins/simplemodal-contact-form-smcf/js/jquery.simplemodal.js"></script> <script src="http://www.mydomain.com/wp-content/plugins/simplemodal-contact-form-smcf/js/smcf.js"></script>… After adding, I saw that jquery.simplemodal.js and smcf.js were being loaded on the home page. But the form still did not pop up, and I was getting the javascript error “jquery is not defined”. So I added a link to jquery as such:
<script src="http://code.jquery.com/jquery-1.6.4.js"></script>… and now I’m getting the javascript error “smcf_messages is not defined”.
This is a nifty little plugin I just wish I could get it to work properly.