How to make changes in header.php in Child-theme?

This topic has 2 replies, 2 voices, and was last updated 10 years, 2 months ago ago by Eva Kemp

  • Avatar: chndr
    chndr
    Participant
    September 13, 2014 at 12:43

    Is is possible to copy the header.php to the childtheme? I have made a little change in the code but I dont want that this change will be lost after a theme update..

    I already have a child theme with only my style.css.. I read on google that if you want to change the header.php you have to make also a file called header.php in the child. Do i have to replace the whole code of the original file into the child file or only the code that you want to change?

    Thanks

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    September 13, 2014 at 13:37

    Hello,

    You should insert only the code you want to change.
    Also please read this article http://codex.wordpress.org/Child_Themes (“Referencing / Including Files in Your Child Theme” paragraph).

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘How to make changes in header.php in Child-theme?’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.