Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Mario Campos

Member
  • Content Count

    39
  • Joined

  • Last visited

  • Days Won

    3

Reputation Activity

  1. Like
    Mario Campos got a reaction from Jesse_effective in Where do I upload JavaScript files?   
    I contacted Squarespace Support and they provided a helpful answer, which I expanded open by organizing my scripts onto a single page:
    Add a new page called 'JavaScript Files' [optional] Go to Page Settings and Disable the page [optional] Add a Text Block Add some text, preferably the name of your JavaScript file, like Sample JavaScript Select the ‘Sample JavaScript’ text and make it into a Link Click Files on the Link menu Click in the white space and select the file from your hard drive (or drag it onto the space from your hard drive) - I’ll use javascriptfile.js for this example
    Click in the Text Block again, and click on the Link Text – Squarespace automatically displays the URL it points to when you click on it, which should be /s/javascriptfile.js [whatever the name of the file your uploaded is] You can right click and ‘Copy Link Address’ to make sure you have the correct URL Go to your Code Injection (either the Page’s Code Injection or your site-wide Page Injection) and insert the code: <script src="/s/javascriptfile.js"></script>
    Using the name of the file you just uploaded instead of javascriptfile.js of course. You can keep adding JavaScript files, and it appears Squarespace automatically adds them to a javascriptfile.js directory.
    No need to link scripts via Dropbox or include the entire script in the Code Injection.
    You can use this to upload any file as well, but most other things have a place (CSS files and image get uploaded in the CSS Upload File area, etc.).
    Source: Creating a Text Link
  2. Like
    Mario Campos got a reaction from LIGHTSHACK in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  3. Like
    Mario Campos got a reaction from sleeptomorrow in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  4. Like
    Mario Campos got a reaction from kvick in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  5. Like
    Mario Campos got a reaction from CedricLor in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  6. Like
    Mario Campos got a reaction from warenbale in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  7. Like
    Mario Campos got a reaction from staus in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  8. Like
    Mario Campos got a reaction from matvei in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  9. Like
    Mario Campos got a reaction from lalush in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  10. Like
    Mario Campos got a reaction from lalush in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  11. Like
    Mario Campos got a reaction from greenclover in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  12. Like
    Mario Campos got a reaction from Kevin Stachelek in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  13. Like
    Mario Campos got a reaction from Sue Williams in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
  14. Like
    Mario Campos got a reaction from Scoobie in Where do I upload JavaScript files?   
    I have a few JavaScript files that I need to upload (such as jQuery Waypoints - among others).
    Where do these get uploaded?
×
×
  • Create New...