Child theme : how to insert code?
-
Hi!
So I’m trying to use child themes as strongly reccommended everywhere. If it’s for modifying the CSS, no problem, got that covered. But what if I want to insert a single php command, or even simpler, a <span> in a specific spot in the header.php, for example? How can I do that in my child theme? By copy-pasting the whole Parent theme header.php into my child them directory, and editing it there? But what if the parent theme gets updated? I won’t get the benefit of whatever is updated then.. So I don’t quite get how to do it.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Child theme : how to insert code?’ is closed to new replies.