web
You’re offline. This is a read only version of the page.
close
Checkmark

Thank you for your feedback

Create files at the root level

Learn how to create HTML, CSS, and JavaScript files in Store Editor.

Article ID: SLN29357

Merchants can create JavaScript, HTML, and CSS files at the root domain level rather than having to upload the files to Store Files. For example, creating a JavaScript file at the root level allows merchants to create functions such as browser notifications.

Create a file at the root level in Store Editor

Jump to:

 Create a JavaScript file

  1. Sign in to your My Services page.
  2. Click the Store link.

  3. Go to Store Editor.
    The Store Editor link is under Edit.
  4. Click the Contents button.
    The Contents button.
  5. Click the New button.
    The New button.
  6. In the Create New Object dialog:

    • In the Id field, enter an ID for the file.
    • Select raw. from the Type pull-down menu.
    • Click the Continue button. You will be taken to the Edit page for the file.

    The Create New Object dialog.

  7. Under Object properties:

    • Enter your JavaScript into the File-content field.
    • Select Js from the File-type pull-down menu.

    The Object properties section.

  8. Click the Update button.
    The Update button.

 Create an HTML file

  1. Sign in to your My Services page.
  2. Click the Store link.

  3. Go to Store Editor.
    The Store Editor link is under Edit.
  4. Click the Contents button.
    The Contents button.
  5. Click the New button.
    The New button.
  6. In the Create New Object dialog:

    • In the Id field, enter an ID for the file.
    • Select raw-html. from the Type pull-down menu.
    • Click the Continue button. You will be taken to the Edit page for the file.

    The Create New Object dialog.

  7. Under Object properties, enter your code into the Html field.
    The Object properties section.
  8. Click the Update button.
    The Update button.

 Create a CSS file

  1. Sign in to your My Services page.
  2. Click the Store link.

  3. Go to Store Editor.
    The Store Editor link is under Edit.
  4. Click the Contents button.
    The Contents button.
  5. Click the New button.
    The New button.
  6. In the Create New Object dialog:

    • In the Id field, enter an ID for the file.
    • Select css. from the Type pull-down menu.
    • Click the Continue button. You will be taken to the Edit page for the file.

    The Create New Object dialog.

  7. Under Object properties, enter your code into the Css-text field.
    The Object properties section.
  8. Click the Update button.
    The Update button.

Important: Publishing these types of files will require a Publish Changes or Publish All of your store. It's not currently supported for the Publish Individual Pages option. Learn more.

See Also: