• 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)
  • 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

    (@ibtekarlabs)

    Hi @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.’

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

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