Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #21910

    1. On this page http://s462107297.onlinehome.us/ and any other page that I load a calculator, the slideshow will not operate properly.

    2. Also, I would like to restrict the slideshow to a 3/4 column on the homepage. Is this possible?

    Thank you very much.

    #113531

    Hey!

    Please remove following line from your custom script:

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

    - it loads the jquery script a second time and it’s not required.

    2) If the page uses the fullwidth layout (no sidebar) it’s not possible to change the slideshow width. (Or basically it would be possible but the links on the right will still appear underneath the slideshow and you can’t add your content to the 1/4 column on the right side of the slideshow – thus this mod doesn’t make much sense).

    Regards,

    Peter

    #113532

    When I remove <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script> from the page, the calculators break. When I add it back in, the slider breaks.

    Go figure.

    Thanks.

    #113533

    I think the main problem is that you’re loading the calculator code at the top (head section) but the jquery script (which is required for the calculator) at the bottom. Move the jquery script to the top or move the calculator script to footer.php and insert it before the closing html tag.

    #113534

    I see that now. I had a plug in that moved all of the scripts to the footer. I have now disabled that plug in and jquery is at the top of the page again, before the calculator script. But the script still does now work.

    When the script is in a plain html page, the script executes perfectly. Very frustrating!

    Thank you for your assistance and any further assistance you may be able to give me on this.

    #113535

    Our theme uses the jquery.noconflict() mode and thus the $ shortcode won’t work. There’re two solutions -

    1) Replace all occurrences of $ in your calculator script with jQuery

    2) Wrap your code into function and use $ as an alias inside the function scope – compare the second code snippet below “Examples”: http://api.jquery.com/jQuery.noConflict/

    #113536

    Thank you, thank you, thank you for both your time and expertise.

    I did # 1 above and although I have not tested it across all of the browsers yet, so far it works.

    You guys are great, and your support is outstanding.

    Thanks.

    #113537

    Hi!

    Glad that I could help you :)

    Regards,

    Peter

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Custom Javascript breaking slideshow’ is closed to new replies.