You are here: Home » Blogger » Make php and css files writable from within wordpress

Make php and css files writable from within wordpress

If your using wordpress machine for your website or blog,you may sometimes be required to make certain changes or add anything further to any php or css file.You can do this simply by editing the appropriate php file by opening it in a text editor(notepad) and then again upload the whole template into your server.

But if you have uploaded your template and written a few posts,you may be resilient to change the theme for even a minute.Then in those cases you have to edit the theme using the theme editor feature in wordpress.But when you make a change to the php file and save it,you find that your changes are not saved.

This is because you do not have rights to edit the content in the php or css files.

This is just similar to any file/folder in your desktop.If we want the file only to be readable and no writing,we just simply go to properties of the file and check on read-only radio button.

You should do the same thing with php files in your theme.For that use your favourite FTP client (Filezilla for eg.) and connect to your server.Open wp-content in the remote server side and then open themes.

Select all php and css files(use ctrl and select each file).After selecting all required files right click on any file and open file attributes.

There you probably see either 626,636 or 646.Change it to 666.By changing it to 666 you are giving public(yourself) a right to edit the file.

After doing those changes you can edit any php or css file as you like from the theme edit option in the wordpress.

 

Like the post? then why not subscribe to sriraj.org and give us the pleasure to deliverfuture such posts right into your mail box?

5 comments (Read them below or add one)

  1. Hi. It doesn’t work…

    After selecting all required files I right click on any file and open file “properties”, but I don’t see any numbers to change!!!

    Do you know why?

    Thanks

    • Which FTP are you using?
      After pointing to the required file using a FTP client, right click on the file. And if you don’t find numbers like 644 or 744 you probably might have a xxx. Enter 777 in the place of xxx and save the settings.
      Hope that helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Scroll To Top