WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to upload JS files (6 posts)

  1. Bluefire2
    Member
    Posted 1 year ago #

    This may be a stupid question due to me missing something in the documentation, but I can't seem to find anything. Is there a button in the CMS interface that lets me upload JavaScript files to my website? There's always FTP, but I was wondering if WordPress offered its own way too.

  2. stuartwider
    Member
    Posted 1 year ago #

    Depends what kind of Javascript files you are talking about.
    If you are talking about javascript such a the type found in adsense ads then that would be generally added to worpdress using an adsense plugin or theme.

    If you are talking about .js files then you would normally upload them via ftp into your plugin or theme folder an enqueue them in your theme functions.php or main plugin file
    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

  3. Daiv Mowbray
    Member
    Posted 1 year ago #

    If you need a per post java script option you could try:
    superslider-perpost-code plugin. It provides a metabox to add java script and css on a per post basis.
    Headspace2 plugin offers the option to attach java script files on a per post basis, but you still have to upload them.

  4. GravitySailor
    Member
    Posted 1 year ago #

    you can "upload" them easily in filemanager via c-Panel. from there you can enque them from within your header php file

  5. GravitySailor
    Member
    Posted 1 year ago #

    you can also use the google CDN plugin to access Jquery from there

  6. Bluefire2
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic