I would like to know, what is the best practice for updating the
From within WordPress editor: Appearance > Editor
or Directly in the
header.php file itself (in the www_root)?
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
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.