Title: How to upload a folder (javascript app) to WordPress?
Last modified: August 31, 2016

---

# How to upload a folder (javascript app) to WordPress?

 *  [JMunce](https://wordpress.org/support/users/jmunce/)
 * (@jmunce)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-upload-a-folder-javascript-app-to-wordpress/)
 * The top-level folder for the app is called “app”
 * On, ftp, which folder on my WordPress do I put the “app” folder into to view 
   it live on my site?
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-upload-a-folder-javascript-app-to-wordpress/#post-7106014)
 * I should put it at:
    wp-content/uploads/app
 * But wherever you put it, you will need to do more work to be able to see it live
   on your site.
 * You should make a child theme:
    [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 * Next, use a code snippet in functions.php for the child theme to load the javascript
   into the required page. Something like:
 *     ```
       <?php
         add_action( 'wp_enqueue_scripts', 'add_my_script' );
         function add_my_script() {
           $my_page_id = 57; // set to the required page
           if ($my_page_id == get_the_id() ) {
             wp_enqueue_script( 'my-js', '/wp-content/uploads/app/whatever.js', array(), "1", true);
           }
         }
       ```
   
 * Other steps may be necessary depending on exactly how the app has been setup.
 *  Thread Starter [JMunce](https://wordpress.org/support/users/jmunce/)
 * (@jmunce)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-upload-a-folder-javascript-app-to-wordpress/#post-7106030)
 * I just dropped it into the html folder at the root of the site, and it worked.
   I just had to change a couple of location pointers (just removing slashes from
   the beginning of the location pointer).
 * Thanks, though.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to upload a folder (javascript app) to WordPress?’ is closed to new
replies.

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [JMunce](https://wordpress.org/support/users/jmunce/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-upload-a-folder-javascript-app-to-wordpress/#post-7106030)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
