File Editor
What This Page Does
The File Editor lets you edit your website's files directly from the admin panel -- no separate software needed. You can update page content, change how your site looks, edit translations, and more, all from your browser. It works like a simplified version of a professional code editor with color-coded text, multiple open files, and a built-in history so you can undo mistakes.
[Screenshot: page-overview]
How to Get Here
Navigate to Admin Panel > Template Manager > Files
Understanding the Page
When you open the File Editor, you see three main areas side by side.
File Browser (Left Side)
This is your file list. It shows all the files and folders on your website that you can edit, organized in a folder tree -- just like the file browser on your computer. Click a folder to expand it and see what is inside. Click a file to open it for editing.
At the top of the file browser you will find:
- A search box to quickly find files by name
- A Refresh button to reload the file list
- A New File button to create a new file
- A New Folder button to create a new folder
Editor Area (Center)
This is where you make changes to your files. When you open a file, its contents appear here with color-coded text that makes it easier to read. If you open more than one file, each one gets its own tab at the top -- click a tab to switch between files.
Above the editor you will see a toolbar with:
- The file path showing which file you are editing
- A Find button to search within the file
- A Format button to tidy up the code automatically
- A Save button to save your changes
When no file is open, you will see a message asking you to select a file from the file browser.
History Panel (Right Side)
Every time you save a file, a snapshot is stored here. This panel shows the complete history of changes for the file you are currently editing -- who changed it, when, and what type of change was made. Most importantly, you can restore any previous version with one click.
Common Tasks
How to Open a File
- Look at the file browser on the left side of the page.
- Click on folder names to expand them and see the files inside.
- Click on the file you want to edit.
- The file opens in the editor area with its own tab.
How to Edit a File
- Open the file you want to change.
- Click in the editor area and make your changes.
- As you type, a small yellow dot appears on the file's tab to let you know you have unsaved changes.
Useful keyboard shortcuts while editing:
How to Save Your Changes
- After making your edits, click the Save button in the toolbar, or press Ctrl+S on your keyboard.
- A green notification appears in the bottom-right corner confirming the save was successful.
- The yellow dot on the tab disappears, meaning all changes are saved.
- A new entry appears in the history panel on the right.
How to Create a New File
- Click the New File button (the file with a plus sign) at the top of the file browser.
- A dialog box opens. Select the folder where you want to create the file from the dropdown.
- Type a name for your file, including the file extension (for example,
custom.cssorabout.php). - Click Create File.
- The new file appears in the file browser and opens automatically, ready for editing.
How to Create a New Folder
- Click the New Folder button (the folder with a plus sign) at the top of the file browser.
- Select the parent folder where the new folder should be created.
- Type a name for your new folder.
- Click Create Folder.
- The new folder appears in the file browser.
How to Rename a File or Folder
- Right-click on the file or folder you want to rename.
- Select Rename from the menu that appears.
- The current name is already filled in. Change it to the new name you want.
- Click Rename.
- The file or folder is renamed and the file browser updates.
.php or .css). Changing the extension could cause problems.How to Delete a File or Folder
- Right-click on the file or folder you want to remove.
- Select Delete from the menu that appears.
- A confirmation dialog appears showing what will be deleted. Click OK to proceed.
- The item is removed from the file browser. If the file was open in a tab, the tab closes automatically.
How to Search for a File
Finding a file in the file browser:
- Type part of the filename into the search box at the top of the file browser.
- The file list filters instantly to show only matching files.
- Folders containing matches expand automatically.
- Clear the search box to see all files again.
Finding text inside a file:
- Open the file you want to search.
- Click the Find button in the toolbar, or press Ctrl+F.
- A search bar appears at the top of the editor. Type what you are looking for.
- Use the arrow buttons to jump between matches.
- Press Escape to close the search bar.
How to Format Code
- Open the file you want to tidy up.
- Click the Format button in the toolbar.
- The editor automatically adjusts spacing and alignment to make the code cleaner and easier to read.
Version History and Restoring Files
The version history is one of the most important safety features in the File Editor. Every time you save, create, delete, or restore a file, a complete backup of the file's contents is saved.
How to View a File's History
- Open the file in the editor.
- Look at the History panel on the right side of the page.
- Each entry shows:
- The type of change (Created, Edited, Deleted, or Restored)
- The date and time of the change
- Who made the change
How to Restore a Previous Version
If you made a change that broke something or you want to go back to an earlier version:
- Open the file you want to restore.
- In the History panel, find the version you want to go back to.
- Click the Restore button next to that version.
- Confirm when prompted.
- The file is restored to that version immediately.
What Files Can You Edit?
The File Editor gives you access to the frontend files that make up your public website. These include:
The Right-Click Menu
Right-clicking on any file or folder in the file browser opens a quick-action menu:
Click anywhere outside the menu or press Escape to close it without selecting an option.
File Permissions (Advanced)
If you do need to change permissions:
- Right-click on the file or folder.
- Select Permissions.
- Enter the permission value. The most common values are:
644-- Standard setting for regular files755-- Standard setting for folders
- Click Apply.
Tips for New Users
- Save often. Press Ctrl+S frequently while working. Every save creates a backup you can restore later.
- Start small. Make one change at a time, save, then check your site to make sure everything looks right before making more changes.
- Use the search. If you are not sure which file to edit, use the search box to find files by name.
- Check your site after saving. Open your website in a new browser tab and refresh the page to see your changes in action.
- Do not edit files you are unfamiliar with. Changing the wrong file can break your site. Stick to files you understand, like stylesheets for visual changes or translation files for text changes.
- Use version history as a safety net. Before making a significant change, note the current version in the history panel. If something goes wrong, you can restore it.
Troubleshooting
A file will not open when I click on it
What you see: You click a file in the file browser but nothing happens, or you see an error message.
How to fix it:
- Check if the file appears dimmed or grayed out. Dimmed files are protected and cannot be edited -- this is normal.
- Very large files (over 5 MB) cannot be opened in the editor. If you need to edit a large file, contact your developer or system administrator.
- Try refreshing the page using the Refresh button at the top of the file browser, or press F5 to reload the entire page.
My changes will not save
What you see: You click Save or press Ctrl+S but get an error message instead of a confirmation.
How to fix it:
- Check if there is an orange banner at the top of the page that says the editor is in demo mode. In demo mode, all changes are blocked. Contact your administrator to disable demo mode.
- Try refreshing the page and making your changes again. Sometimes the session expires and a fresh page load fixes the issue.
- If the problem continues, contact your system administrator. There may be a server permission issue that needs to be resolved.
The editor area is blank or will not load
What you see: The center area where you edit files is empty or shows a loading message that never finishes.
How to fix it:
- Make sure you are using an up-to-date browser (Chrome, Firefox, or Edge). Older browsers may not support the editor.
- Try clearing your browser cache and reloading the page.
- If you are using a browser extension that blocks external resources (like an ad blocker or privacy extension), try disabling it temporarily. The editor relies on an external resource to function.
The history panel is empty
What you see: You open a file but the history panel on the right shows nothing.
How to fix it:
This is normal for files that have never been edited through the File Editor before. The history starts recording after you make your first save. Once you save the file at least once, future changes will appear in the history.
I cannot delete a folder
What you see: You try to delete a folder but get an error message.
How to fix it:
- Make sure the folder is completely empty. You must delete all files and subfolders inside it before you can delete the folder itself.
- Check if there are any hidden files inside the folder. If so, contact your system administrator for help removing them.
Related Pages
This guide is part of the ComusThumbz Admin Documentation.