Title: WP Vs Localhost
Last modified: August 21, 2016

---

# WP Vs Localhost

 *  [mpsdyard](https://wordpress.org/support/users/mpsdyard/)
 * (@mpsdyard)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp-vs-localhost/)
 * 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](http://www.loanemicalculator.co/?page_id=808)
 * The source files can be downloaded from [here](https://drive.google.com/?usp=folder&authuser=0#folders/0BxdqEt5T4n8sQU83eVhqS3pVdzg)
 * 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)

 *  [Sandy McFadden](https://wordpress.org/support/users/ourvalley/)
 * (@ourvalley)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp-vs-localhost/#post-5074703)
 * 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](https://wordpress.org/support/users/mpsdyard/)
 * (@mpsdyard)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp-vs-localhost/#post-5074795)
 * Hi Sandy, thanks for the useful tip. Can you please walk me through as I am not
   a pro in Js.
 *  [Sandy McFadden](https://wordpress.org/support/users/ourvalley/)
 * (@ourvalley)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp-vs-localhost/#post-5074821)
 * 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?
 *  [Sandy McFadden](https://wordpress.org/support/users/ourvalley/)
 * (@ourvalley)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/wp-vs-localhost/#post-5074828)
 * 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](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.

## Tags

 * [compatibility](https://wordpress.org/support/topic-tag/compatibility/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Sandy McFadden](https://wordpress.org/support/users/ourvalley/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/wp-vs-localhost/#post-5074828)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
