Using the File Manager Code Editor
Editing code on your web site is an inevitable event. If you have minor changes to make on your web site that can be done simply, you can use the code editor in the cPanel File manager to change the code. This is called "Editing on the fly", which is changing the files of the source website while its live. Let's go to cPanel File manager and see how this editor works.
Important! Editing the code in a file on the server can break your website. Because the file is being used by the live website, we always recommend editing a backup copy of your site instead of the files on the server. Make a backup copy of the file before editing it by saving the file as a different name.
How to use the File Manager code editor
- Login into your cPanel.
- Go to the File Manager.
- Navigate to the page you want to edit. Select the file and click code editor.
This is where you can add code or change code in your file.
When you are done making the changes, you can click Save Changes at the top right. Otherwise, click cancel.
The code editor has the following features.
We value your feedback!
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
Managing your Files in cPanel
|1.||Renaming files and folders in cPanel|
|2.||Using File Manager in cPanel|
|3.||Backing Up your Website|
|4.||Creating an FTP account in Cpanel|
|5.||Using the File Manager Code Editor|
|6.||Creating an Under Construction or Coming Soon page|
2014-07-30 11:41 am
When you make a copy of the file to edit by saving it under a different name then how do you implement the change? Do you have to delete the orginal file?
2014-07-30 11:45 am
If you save the file under a different name, it will create a second copy of the file. If you want to replace the original with that file, you would need to remove the original and rename the copy.