Support » Plugin: Responsive Mortgage Calculator » Not getting any results from the calculator

Viewing 15 replies - 1 through 15 (of 31 total)
  • The JavaScript file isn’t being loaded – it should be loaded in the footer. Does your theme have a call to wp_footer() before the closing </body> tag?

    It looks like there was a bug with the [rmc] shortcode. Now fixed. Try the update.

    Thread Starter shanafourde


    I have made sure wp_footer() is before the closing </body> tag and I updated the plugin.

    I’m still not getting any results :-/

    Something is preventing the CSS and the JS from loading. I will continue to ponder.

    As a temporary work-around or for testing, you could hard code links to the CSS and JS.

    In the header, you could add:
    <link rel="stylesheet" href="<?php echo plugins_url(); ?>/responsive-mortgage-calculator/css/style.css?ver=2.0.0' type='text/css' media='screen' /">

    In the footer, you could add:
    <script type="text/javascript" src="<?php echo plugins_url(); ?>/responsive-mortgage-calculator/js/lidd-mc.js?ver=2.0.0"></script>

    I see you included the JS file and the calculator is working. Have you found a satisfactory solution?

    Thread Starter shanafourde


    Yes it is working fine now once I hard coded the JS file.

    You may experience some problems with this approach if you update to the latest version, since it now relies on script localization.

    Thread Starter shanafourde


    It doesn’t seem to be working with the update. Whether I leave or remove my code that added the JS file to the footer, the calculator isn’t working.

    Mortgage Calculator

    Going forward, inserting the call to the JS file isn’t going to work. The plugin now relies on script localization which means that whatever is blocking the script from being loaded will also stop the localization object from being loaded – and it will all fail.

    Contact me through my blog and we’ll see if we can get the issue resolved:

    Hi there,
    Just had this issue at work, in the end we had to fix it by commenting out lines in includes/load_scripts.php

    Line 13:
    // if ( is_active_widget( ”, ”, ‘lidd_mc_widget’ ) ) {

    // }

    Hope this gives you some clues for a proper fix.

    Interesting. I’ll have a look. Thanks.

    Scripts and styles are now enqueued on the ‘wp’ action if either the widget or shortcode is detected. Hopefully this solves the problem.

    I’m marking this as resolved. The issue appears to be caused by another plugin preprocessing the shortcode before saving in the database, whereas the plugin uses shortcode detection when displaying the content in order to add scripts and styles.

    When I hit “Calculate”, it only refreshes the page and does not give me any results. What did I do wrong?

    Financing Your Home

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Not getting any results from the calculator’ is closed to new replies.