Skip to content
pinegrow.com

Add stylesheet or script to the page

Need to add a CSS stylesheet or Javascript file to the page? Just drag it from the Project panel.

This approach requires Pinegrow Web Editor PRO 5.95

To add an existing stylesheet or script to the page, simply drag it from the Project panel to the page view:

Html5up-Editorial project tree with app.logic.js under assets highlighted, and a callout to drag the file to the page.

Files that can be dragged to the page have icon displayed next to their name.

Javascript files are added to the end of the <body> element by default. To change that, use the Tree panel to drag the script element to the <head> of the page.

Create a new file

If you need to add a new file, create it by right-clicking on the project name or project subfolder and choose “Create new file” command from the menu.

Project context menu with Create new file highlighted, opened from the Html5up-Editorial project name.

Enter and confirm the file name:

Create new file dialog with the name app.logic.js entered and OK and Cancel buttons.

Next, drag the newly created file to the page.

Editing the file

To edit the file click on the file in the Project panel to open it in the code editor:

Project tree with the context menu open on app.logic.js and Open in code editor highlighted.

Refresh the page view to re-run the Javascript code without having to save the code first.

app.logic.js open in the code editor below the Html5up-Editorial page, with a three-line jQuery function that calls doSomethingCool.

Although this works for both stylesheets and scripts, we recommend that you use the Style panel to edit stylesheets.