Editing Files

There are times when you will need to edit the WordPress files, especially if you want to make changes in your WordPress Theme. WordPress features a built-in editor for editing files from within your browser whilst online.

Editing Files

There are times when you will need to edit the WordPress files, especially if you want to make changes in your WordPress Theme. WordPress features a built-in editor for editing files from within your browser whilst online.

The Theme Editor. You can also edit files copied or stored on your computer and then upload them to your site using an FTP client.

Before editing any of your WordPress files, check the following:

BACKUP! And Work from Backups

Work from copies of backup files when possible and/or make sure that you back up your information frequently as you work and make changes. Keep backups in a safe place.

Read More: Importing Content

File Permissions

When working online, you need to set the appropriate file permissions to modify and save them. If you see a note at the bottom of the WordPress Built-in Editor panel that says “If this file was writable you could edit it.”, this means you need to change the file permissions before you can make any changes.

Using the Theme Editor and Plugin Editor

WordPress contains two built-in editors that allow you to edit Theme files directly from within your browser. They are called the Theme Editor and Plugin Editor.

Access the Theme Editor from the Administration > Appearance > Editor menu.

The Plugin Editor is located at Administration > Plugins > Editor.

To view a file in these editors, click on the file from the left-hand side list.

More information on editing themes is available at Theme Development and Using Themes... You can learn more about editing plugins at Writing a Plugin and Plugin Resources.