Website Template .js Files
Opening and Editing .js Files
To edit the .js files that are included with the template you can use Notepad, TextEdit, SimpleText or any plain text editor.
Editing .js file variables:
Open your "sidebar.js", "header.js" or other .js file in a plain text editor like Notepad. Click on the eye below to see what code to change.
NOTE: You may want to make a backup copy of the .js files before you start editing. In all .js files the yes/no options should be all lowercase.
Editing contact info in a "sidebar.htm" or Minisite "contact.htm":
If your template includes a "sidebar.htm" or you have a Minisite template that includes a contact form (Biz and Drop Menu models), you will want to view the visual below to see how to edit the contact information in the sidebar.
When you double click the .js file and get some type of error or it will open in the wrong application. This means that the .js files are associated with another application. To open and edit them in Notepad, TextEdit or a simple text editor there are three options.
- Open Notepad or TextEdit, open the template folder, then drag the .js file into Notepad or TextEdit and drop it.
- Open Notepad or TextEdit, select "file" then "open", browse to the template folder, select "all file types" and open the .js file that way.
- Windows Only You can change the file associations so when you double click a .js file it will open in Notepad: Open "My computer" choose "tools" or "options" then choose "folder options" choose the "file types" tab. Find "JS" on the list and change the opening application to use Notepad.exe in the Windows folder. Changing this association should cause no problems on your computer.
- Mac Only You will change the application in which a .js document opens. In Finder, select the .js file, like "menu.js", the choose "File" > "Get Info". In the Info window, click the disclosure triangle next to "Open With", and select the TextEdit application to open the document from the "Open With" pop-up menu. If you want all .js documents to open with the same application, click "Change All".
See also Editing .js Files in Windows
Editing the Menu