Title: Try to upload files of Javascript (WP_ENQUEUE_SCRIPT) into functions.php
Last modified: August 30, 2016

---

# Try to upload files of Javascript (WP_ENQUEUE_SCRIPT) into functions.php

 *  [Niko LionWD](https://wordpress.org/support/users/nikoernestoleone/)
 * (@nikoernestoleone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/try-to-upload-files-of-javascript-wp_enqueue_script-into-functionsphp/)
 * Hi everyone,
 * I try to add wp-enqueue-script, because I need upload files of JavaScript and
   my page has appeared this by opening the page:
    Parse error: syntax error, unexpected
   T_STRING in /usr/home/newreformesbcn.com/web/wp-content/themes/appointment/functions.
   php on line 1.
 * I am new to the world of wordpress.
    Any solution?

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

 *  [Sean Davis](https://wordpress.org/support/users/sdavis2702/)
 * (@sdavis2702)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/try-to-upload-files-of-javascript-wp_enqueue_script-into-functionsphp/#post-6674151)
 * Looks like there’s a mistake in the syntax of your PHP. Can you please go to 
   [http://snippi.com/](http://snippi.com/) and paste the exact code you’re trying
   to use into a new Snippi then link it here? I will look at it and see if I can
   point out the error.
 *  Thread Starter [Niko LionWD](https://wordpress.org/support/users/nikoernestoleone/)
 * (@nikoernestoleone)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/try-to-upload-files-of-javascript-wp_enqueue_script-into-functionsphp/#post-6674252)
 * Hi Sean,
 * Thank you for answering me.
 * I try to upload a files js, but now I try to upload file js, name: progress-slideshow.
   js . So, I don’t know how to insert a file javascript into functions.php.
 * I leave here a snippi.
    [http://snippi.com/s/j7x43mm](http://snippi.com/s/j7x43mm)
 * If not correct, so how I can to insert js into functions.php? To run a file of
   Javascript?
 * I would greatly appreciate.
 * Thanks
 *  [Sean Davis](https://wordpress.org/support/users/sdavis2702/)
 * (@sdavis2702)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/try-to-upload-files-of-javascript-wp_enqueue_script-into-functionsphp/#post-6674344)
 * Sorry for the delay here. One thing I am noticing is that at the end of your 
   wp_enqueue_script line at the bottom of the file, you did not use a semicolon.
 * `wp_enqueue_script( 'progress-slideshow', get_stylesheet_directory_uri() . '/
   js/progress-slideshow.js' )`
 * should be
 * `wp_enqueue_script( 'progress-slideshow', get_stylesheet_directory_uri() . '/
   js/progress-slideshow.js' );`

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

The topic ‘Try to upload files of Javascript (WP_ENQUEUE_SCRIPT) into functions.
php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/appointment/3.5.5/screenshot.png)
 * Appointment
 * [Support Threads](https://wordpress.org/support/theme/appointment/)
 * [Active Topics](https://wordpress.org/support/theme/appointment/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/appointment/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/appointment/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [T_STRING](https://wordpress.org/support/topic-tag/t_string/)
 * [wp-enqueue-script](https://wordpress.org/support/topic-tag/wp-enqueue-script/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sean Davis](https://wordpress.org/support/users/sdavis2702/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/try-to-upload-files-of-javascript-wp_enqueue_script-into-functionsphp/#post-6674344)
 * Status: not resolved