The File Manager in your cPanel can be used to view, modify, add, and delete website files from your account. In this tutorial we will show you how to get to the File Manager in cPanel, and Edit a File. .
A dialogue box will pop up, asking where you want to go. To go directly to your public_html folder which holds your account files, select Web Root and hit Go. Make sure that the show hidden files box is checked, in case you need to make any changes to your .htaccess file.
Once you have clicked "Go", you will be in your File Manager. Some of the most common modifications that you will make in the File Manager are editing, removing, and deleting files. We will cover these in the next section.
How can I edit my files with the File Manager?
When you right-click on any file, a window will appear that gives you a list of options on what to do with the file. The most frequently used are these:
Edit: The edit option allows you to modify the code, but without the stylized look of the Code Edit option (see the chart below for more details)
Code Edit: If you need to change the code in the file, you can also use Code Edit.
HTML Edit: If you want to change the appearance of a web page, then you can make these modifications using the HTML Edit option.
Rename: With this option you can change the name of the file to something else.
Delete: If the file is no longer needed, then you can delete it.
Renaming and deleting files in the File Manager is immediate and permanent, so double check any changes that you make prior to doing them as deleting files from the File Manager can not be undone.
Which Editor Should I Use?
As we mentioned above, there are three ways to edit your files: Edit, Code Edit, and HTML Edit. Depending on the type of changes that you are making to your website, you may use different methods to modify the files.
Edit - Edit is a basic code editor. It does not have the stylized formatting or numbered lines of the Code Edit option and is the preferred method for more advanced users.
Code Edit - Using Code Edit is similar to Edit except that the lines are color coded and the line numbers are given.
HTML Editor - This allows you to edit the page as it looks on the Internet, not with the code. This works well if you want to change the font and are not as familiar with code editing.
After you have modified your code, click on Save Changes at the top right of the page. If you are making significant changes to your webpage, it is recommended that you copy and paste the original code to a notepad just in case your edit does not go as planned to make it easier to revert back to the original code.
Did you find this article helpful?
We value your feedback!
Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
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.
How did you find this article?
Please tell us how we can improve this article:
new! - Enter your name and email address above and we will post your feedback in the comments on this page!