How to include original header.php file when using child theme
-
Hi,
this can not be difficult, but I searched and searched and I can not seem te find the answer anywhere so here it goes.
I have installed a child theme and it works fine, but now I want to make a small modification to the header.php.
I made a new header.php file and uploaded it into my child-theme folder and that to works fine, but…
Since it is just a small mod on the original header.php in stead of copying the whole file into the new header.php I would like to just include the original header.php and only put my modification into the new file.
In case I am not making sense:
In the same way you use @import url(“../twentytwelve/style.css”); in the style.css.Can I use a ‘include’ or a ‘require’? I am not a php expert, but this should be possible right?
Thank you in advance for your help!
Kind regards,
Pike
The topic ‘How to include original header.php file when using child theme’ is closed to new replies.