Title: using changes in header.php in child-theme?
Last modified: March 14, 2022

---

# using changes in header.php in child-theme?

 *  Resolved [juergenp](https://wordpress.org/support/users/juergenp/)
 * (@juergenp)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/using-changes-in-header-php-in-child-theme/)
 * Hi,
    I’m using ColorMag (free) with a child-theme. “functions.php” and “style.
   css” in child works perfect. Now I need to do some additional entries “link rel…”
   in the <head> for each side. Only way I see to add them in the “header.php” in
   parent-theme. If there is an update installed – always these changes must done
   manually 🙁 Is there any way to do this also in the child-theme? Adding a “header.
   php” only with these new entries doesn’t help, the complete side is not display
   correctly afterwards.
 * Thanks in advance + best regards
    Juergen

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/using-changes-in-header-php-in-child-theme/#post-15478445)
 * Hi [@juergenp](https://wordpress.org/support/users/juergenp/),
 * Thanks for reaching us,
 * Making any changes in the parent theme file code, the code gets lost after the
   theme is updated to a new version. So it would be better if you can make all 
   the necessary changes in the child theme file.
 * Regarding the header changes, make sure to copy all the code from the hedaer.
   php file from the parent file and then paste it on the child header file and 
   make all the necessary changes in the child header.php file. I hope this will
   work for you.
 * Regards,
    ThemeGrill Support Team
 *  Thread Starter [juergenp](https://wordpress.org/support/users/juergenp/)
 * (@juergenp)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/using-changes-in-header-php-in-child-theme/#post-15520061)
 * Hi Barsha,
    sorry for late reply. That works perfect for me 🙂 didn’t try to 
   copy the complete php-file to the child-theme, as I couldn’t believe that it’s
   working so easy. thanks + best regards Juergen
    -  This reply was modified 4 years, 2 months ago by [juergenp](https://wordpress.org/support/users/juergenp/).
 *  [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * (@barsha04)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/using-changes-in-header-php-in-child-theme/#post-15575347)
 * Hi [@juergenp](https://wordpress.org/support/users/juergenp/),
 * Glad I could help you and thanks for the update. Let us know of other queries
   in the future and we will get back to you.
 * Also, if you like the ColorMag theme you can help us by leaving the review here:
   [https://wordpress.org/support/theme/colormag/reviews/#new-post](https://wordpress.org/support/theme/colormag/reviews/#new-post)
 * Regards,
    ThemeGrill Support Team

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘using changes in header.php in child-theme?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/colormag/4.1.2/screenshot.jpg)
 * ColorMag
 * [Support Threads](https://wordpress.org/support/theme/colormag/)
 * [Active Topics](https://wordpress.org/support/theme/colormag/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/colormag/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/colormag/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Barsha Paudel](https://wordpress.org/support/users/barsha04/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/using-changes-in-header-php-in-child-theme/#post-15575347)
 * Status: resolved