WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Editor: What permission levels and where? (9 posts)

  1. ChewyOlive
    Member
    Posted 8 years ago #

    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

  2. centralzone
    Member
    Posted 8 years ago #

    Only the files (666) you want to edit - which means certain template files from your theme:
    wp-content/themes/yourtheme/XYZ.php.
    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.

  3. ChewyOlive
    Member
    Posted 8 years ago #

    Ok.
    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.

  4. niziol
    Member
    Posted 8 years ago #

    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?

  5. ChewyOlive
    Member
    Posted 8 years ago #

    I did forget! I'll try that.

  6. ChewyOlive
    Member
    Posted 8 years ago #

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

  7. niziol
    Member
    Posted 8 years ago #

    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,
    Michael.

  8. ChewyOlive
    Member
    Posted 8 years ago #

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

  9. ChewyOlive
    Member
    Posted 8 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags