Title: WordPress not recognizing simple Javascript file
Last modified: August 20, 2016

---

# WordPress not recognizing simple Javascript file

 *  [Martyn Chamberlin](https://wordpress.org/support/users/martyn-chamberlin/)
 * (@martyn-chamberlin)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/wordpress-not-recognizing-simple-javascript-file/)
 * Okay, so I’ve uploaded this *super* simple HTML page here:
 * [http://medicaldevicesgroup.net/wp-content/themes/medicaldevicesgroup/test.html](http://medicaldevicesgroup.net/wp-content/themes/medicaldevicesgroup/test.html)
 * It’s utilizing LinkedIn’s “Sign In” API. View the source. It’s two lines of code.
   Nothing.
 * BUT
 * I created a home.php file in my child theme directory, and pasted this:
 * `<?php require(CHILD_DIR.'/test.html'); ?>`
 * This means that if you view the source at [http://www.medicaldevicesgroup.net/](http://www.medicaldevicesgroup.net/),
   it’s EXACTLY the same as the source at [http://medicaldevicesgroup.net/wp-content/themes/medicaldevicesgroup/test.html](http://medicaldevicesgroup.net/wp-content/themes/medicaldevicesgroup/test.html).
   The only difference is that the home page is in WordPress, and the other URL 
   isn’t.
 * The home page script, however, doesn’t work. WHY???? Help! Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Martyn Chamberlin](https://wordpress.org/support/users/martyn-chamberlin/)
 * (@martyn-chamberlin)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/wordpress-not-recognizing-simple-javascript-file/#post-2473016)
 * Fixed! Here’s what I friend told me:
 * >  The reason is because the LinkedIn API that you are using is for [http://medicaldevicesgroup.net](http://medicaldevicesgroup.net)
   > and not [http://www.medicaldevicesgroup.net](http://www.medicaldevicesgroup.net).
   > Notice the “www” in 2nd URL. You need to change your URL in the LinkedIn API.
   > To see what I mean try going to [http://www.medicaldevicesgroup.net/wp-content/themes/medicaldevicesgroup/test.html](http://www.medicaldevicesgroup.net/wp-content/themes/medicaldevicesgroup/test.html)
   > and it will not work there too.
 * I changed my URL to “www” in my LinkedIn API, and everything’s working now. xoxoxo

Viewing 1 replies (of 1 total)

The topic ‘WordPress not recognizing simple Javascript file’ is closed to new replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [weird](https://wordpress.org/support/topic-tag/weird/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Martyn Chamberlin](https://wordpress.org/support/users/martyn-chamberlin/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/wordpress-not-recognizing-simple-javascript-file/#post-2473016)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
