• I have a question concerning modifying the header.php and footer.php files in a child theme. I have styles.css and functions.php in my child theme folder. If I copy the header.php and footer.php files from my parent theme to my child theme and make adjustments, what happens if the parent theme is updated in the future? Will this affect my site? I just want to prevent issues down the line.

    Thanks for any help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your child’s header.php and footer.php files will not be affected by changes to the same template files in the parent theme.

    Thread Starter paulh16

    (@paulh16)

    Thank you. So there is no need to worry about updating these php files within my child theme if their namesakes in the parent theme happen to be updated in the future? I guess I am worried about whether future updates to the theme will require me to update the php files in my child theme, and hence, overwrite my customizations.

    Thanks!

    It really depends upon what (if any) of the parent’s functions you are re-using in the child theme’s files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modifying header.php and footer.php files for a child theme’ is closed to new replies.