[resolved] How to edit theme files from WP admin (3 posts)

  1. greyowl
    Posted 9 years ago #

    From the WP Panel I select Presentation, Theme Editor and bring up a theme file (page.php). At one point it says "This generates the subpage menu. If you don't want to use it, delete this line." I delete it and press "Update file". WP says "File edited successfully." but the line I deleted has automagically returned, i.e. the edit isn't accepted. What am I doing wrong?
    (I know I can fetch the file with ftp, edit it locally and copy it back, but why can't I use this WP-internal feature?)

  2. 4k
    Posted 9 years ago #

    Theme editor only works if you set the permissions differently. However, doing that also opens your site to being hacked.

    It is best to edit files locally and upload. Also easier to create backups in case of slipups.

  3. greyowl
    Posted 9 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic