I overrides the parent theme by copying "header.php" and "footer.php" files to the "child" folder, it is working nicely. But I wonder if I install a plugin that need to edit the "header.php" or "footer.php" files, what will happen then?? Since I override those php files, will the plugin edit the files in "child" folder as well??


1 Answer 1


A plugin never edits those files - WordPress uses a system of "hooks" and "filters" that allows plugins to change behaviour without altering code.

So, in short, as long as you've created your child theme correctly, plugins will work fine.

Some references:

  • Thanks. Actually I purchased the theme from 3rd party, sometimes they may update the theme files and I need to check and update the child files as well. Except this case, do I need to worry any other things??
    – RRN
    Jul 17, 2012 at 10:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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