WordPress.org

Support

Support » Themes and Templates » Editing Theme code

Editing Theme code

  • allenowen
    Member

    @allenowen

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Chris_K
    Member

    @handysolo

    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 🙂

    allenowen
    Member

    @allenowen

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

    Chris_K
    Member

    @handysolo

    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

    allenowen
    Member

    @allenowen

    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?

    Chris_K
    Member

    @handysolo

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Editing Theme code’ is closed to new replies.