• When I am using files locally I am able to see the perfect thing which I need for the website but when I put it in wordpress, it doesn’t work. All gets messed up.
    Webpage I am concerned about is this

    The source files can be downloaded from here

    Kindly help me to discover I am falling short.
    P.S: I have the js and css files on the server and I link them properly when I put the html code in wp. And I have tried multiple theme changes to no use.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m getting JavaScript errors in the WordPress version and not in the source files.

    It could possibly be a jQuery conflict in versions. WordPress is using version 1.11.0 and I believe your script is using an older version.

    Thread Starter mpsdyard

    (@mpsdyard)

    Hi Sandy, thanks for the useful tip. Can you please walk me through as I am not a pro in Js.

    I can take a closer look and see what I can find. Where did you get the code from? Is it an open source script you downloaded somewhere?

    I took a quick look and believe I figured out two things which were causing issues.
    There was an undefined variable in the file js3.js on line 17.
    Also WordPress filters seemed to be encoding some of the HTML comments in the html file.

    I took the liberty of doing up a quick plugin which adds a shortcode to display this calculator for you.

    https://www.dropbox.com/s/mwwfy19mwhmb4x3/sm-loan-calc.zip

    Now all you have to do in WordPress is type in [sm_loan_calc] where ever you would like it to show up on a page. I didn’t test it but with the specific ID’s etc in the HTML only use it once per page or it will likely break.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Vs Localhost’ is closed to new replies.