Comments 1sumpetar started the conversationAugust 31, 2021 at 12:28pmHello! I've inserted the 2 codes from GTM, into the Parent theme's header.php, one below <head> and one below <body>. GTM works. My question is: can header.php stay in the Parent theme or should I copy (or move?) header.php into Child theme? 2,961Andrew repliedAugust 31, 2021 at 1:05pmHi there,It is recommended not to do any changes to the parent theme. You should move the file to the child theme then perform the changes there.This prevents your customizations from being erased when there is a theme update.Regards,1 Like Sign in to reply ...
Hello!
I've inserted the 2 codes from GTM, into the Parent theme's header.php, one below <head> and one below <body>. GTM works.
My question is: can header.php stay in the Parent theme or should I copy (or move?) header.php into Child theme?
Hi there,
It is recommended not to do any changes to the parent theme. You should move the file to the child theme then perform the changes there.
This prevents your customizations from being erased when there is a theme update.
Regards,