• Resolved sh0wtym3

    (@sh0wtym3)


    I’ve added a link on one of my pages as such:

    <li><a href="/" class="smcf-link">Contact Me</a></li>

    And in the smcf settings, I have “/” set as the contact link URL… But the link doesn’t work, the form doesn’t pop up.

    But when I change the above values from “/” to something else, like “/contact” it DOES work. How can I get it to work on the main page?

    http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sh0wtym3

    (@sh0wtym3)

    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.

    Thread Starter sh0wtym3

    (@sh0wtym3)

    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 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: SimpleModal Contact Form (SMCF)] How can I get it to work on the main page?’ is closed to new replies.