WordPress.org

Ready to get started?Download WordPress

Forums

Editing Theme code (6 posts)

  1. allenowen
    Member
    Posted 6 years ago #

    I am trying to edit the code in my themes, but the files are not writable. How do I make them writable?

  2. Chris_K
    Member
    Posted 6 years ago #

    You'll need to change their file permissions. This article should be helpful: Changing_File_Permissions

    Side note: Be sure to save a copy of what you want to change before you change it! You'll thank yourself if an edit mucks up your theme :-)

  3. allenowen
    Member
    Posted 6 years ago #

    Well, I changed the index.php file's permissions and it still is not allowing me to edit my files.

  4. Chris_K
    Member
    Posted 6 years ago #

    You'd do better to change the permissions on the theme files -- those are what you want to edit! You'll find them under wp-content/themes/YourThemeName

  5. allenowen
    Member
    Posted 6 years ago #

    I went into my theme's files and set them all to read and write, but I still have the message "If this file were writable you could edit it."

    Now what?

  6. Chris_K
    Member
    Posted 6 years ago #

    Depending on how your server is configured, some folks have to change them to 777 (world read & write).

    If you need to do that:

    1) Change them back to 644 immediately after editing

    -or -

    2) Consider using an FTP/scp client to download to your computer, edit and then upload.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.