Support » Themes and Templates » Theme Editor: What permission levels and where?

  • Resolved ChewyOlive


    I’ve read that in order to get theme editor to work, I need to set directories to 755, and files to 666. But surely, i can’t individually change every single file and directory, there must be hundreds of them! So which files and directories do I absolutely have to change?

    Almost all my directories are currently at 755, and files at 644
    I am using Cpanel X

Viewing 8 replies - 1 through 8 (of 8 total)
  • Only the files (666) you want to edit – which means certain template files from your theme:
    Nothing else. And don’t forget to change the permissions back when you are done. Alternatively, you can edit the files on your computer and upload them via FTP.

    I tried something simple, like changing the image for my header. The original file for the header jpg image (kubrickheader.jpg) is in
    / wp-content / themes / default / images /

    I want to change this header image to kubrickheader2.jpg, which I’ve successful uploaded into the same folder.
    I changed both permissions to 666 and then made the necessary changes on theme editor. However, the confirm change button is not present! Where the button be is festooned with “If this file was writable you could edit it”

    What am I doing wrong?

    The only files who’s permission i changed were the two jpg image files.

    You should only need to change the permissions on the header.php file, as that is the one you are editing. Did you forget to change the header.php permissions perhaps?

    I did forget! I’ll try that.

    I’ve changed both jpg files back to 644.
    I’ve changed header.php permission to 666
    And it still doesn’t work.

    It stills says the if this file… line? How did you change the permissions, via cpanel? I’ve found that cpanel can sometimes not do what I tell it to do in the permissiosn department. You might want to try doing the chmod via an FTP client. I’m not sure what else to suggest, maybe contact your host and make sure that world writable files are OK – I remember one host I had a few years ago wouldn’t let you have files that were world writable for security reasons.

    Good luck,

    yeah. Same line. I’ll contact my host about this.

    Yeah! After I changed my classic theme file’s header.php to 666, i could use theme editor on my default theme! isn’t that odd? Thanks Centralzone and Niziol for all the help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Theme Editor: What permission levels and where?’ is closed to new replies.