WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know, what is the best practice for updating the header.php file:

From within WordPress editor: Appearance > Editor

or Directly in the header.php file itself (in the www_root)?

share|improve this question
up vote 5 down vote accepted

This question leans towards getting some subjective answers, as I think it's a matter of personal preference. The built-in editor works just as well as any other text editor. That goes for any of your theme files, not just header.php.

The benefit of using an external editor (like Notepad++ and using FileZilla to FTP your changes), is that you have the possibility of using 'syntax coloring'.

I highly recommend Notepad++, as it supports multiple document encodings (UTF-8, ANSI, etc) and many scripting languages (with their generally accepted syntax coloring), such as PHP, JavaScript and CSS, your most common languages when working with WordPress.

share|improve this answer
+1 for having the same infrastructure and work flow as I do. :) – tfrommen Mar 26 '13 at 16:14
+1 same here. Reassuring to see I'm not the only one – Pat Mar 26 '13 at 16:59
Thank you for your answer. i do actually user Notepad++, great editor. Appreciate the tip – DextrousDave Apr 2 '13 at 5:00

In my opinion, I never edit using the built-in editor. If you make one PHP mistake and hit the save button, your site will crash and you won't be able to correct your mistake. You'll then have to use FTP or equivalent to modify the file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.