Title: Theme editor &#8216;Content-Type: text/html&#8217; issue
Last modified: August 29, 2023

---

# Theme editor ‘Content-Type: text/html’ issue

 *  [ibtekarlabs](https://wordpress.org/support/users/ibtekarlabs/)
 * (@ibtekarlabs)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/theme-editor-content-type-text-html-issue/)
 * Am facing issue updating any file in theme editor that has the following text‘
   Content-Type: text/html’.
   I also tried ‘File manager’ plugin same issue.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [mrtom414](https://wordpress.org/support/users/mrtom414/)
 * (@mrtom414)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/theme-editor-content-type-text-html-issue/#post-17010621)
 * The theme editor doesn’t export a physical file when you make an update in the
   theme editor. The edits are held in the database and not written to disk. The
   back end of the theme editor creates an react page which is JavaScript and converts
   to html and stores it in the database . Anything in the theme folder will not
   reflect any changes made in the editor unless you export the files. The only 
   time the theme files are really looked at is when you first load the theme for
   the first time. Everything after that is read from the database. On legacy themes,
   the theme files will be read. But, Block themes are only read to set the theme
   up. It would be a good ideal to export your themes after making changes. Not 
   really sure how you are trying to edit your theme. The files you are trying to
   update were they created in the editor or with a different means. You can add
   an empty file to your editor files and it will show up. But, The file layout 
   should be created in the editor not a third party editor.
 *  Thread Starter [ibtekarlabs](https://wordpress.org/support/users/ibtekarlabs/)
 * (@ibtekarlabs)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/theme-editor-content-type-text-html-issue/#post-17015144)
 * Hi [@mrtom414](https://wordpress.org/support/users/mrtom414/) 
   Am not having 
   any issue with my theme, am just stating an issue with the wordpress theme editor
   that any kind of file even if it’s .txt if it has ‘Content-Type: text/html’ it
   cant be updated and you get this error: ‘Something went wrong. Your change may
   not have been saved. Please try again. There is also a chance that you may need
   to manually fix and upload the file over [http://FTP.&#8217](http://FTP.&#8217);

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Theme editor ‘Content-Type: text/html’ issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [ibtekarlabs](https://wordpress.org/support/users/ibtekarlabs/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/theme-editor-content-type-text-html-issue/#post-17015144)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
