This topic has 4 replies, 2 voices, and was last updated 4 years, 4 months ago ago by Olga Barlow
Hello,
I want to set the google analytics gtag.js code in header.php but I dont see header.php in child theme, only in father theme. How can I set this google code in my website?
Reagards
Hello,
1) Read more about child theme and how to make changes there https://developer.wordpress.org/themes/advanced-topics/child-themes/
2) Use Insert Header and Footers plugin to add JS code in the header or footer. Then you won’t lose it if you decide to change theme.
Regards
Ok thank you!
You are welcome.
Regards
The issue related to '‘Modify Header.php in child theme’' has been successfully resolved, and the topic is now closed for further responses