Site logo

Archived topic

Create header file in the child theme

9 replies · Started by Nicola on December 21, 2020

Viewing posts 1–10 of 10

Hello :)

I have installed GP Premium and the child theme: to install Google Tag Manager I will have to insert the tag in the header file, but it is absent in the child theme.

To create it, can I copy and paste the header file from the parent theme or do I need to make some other changes?

Thank you for your help in this matter! :)

Hi :)

Thank you for your reply, I also found the guide that explains it :) I have installed the child theme only to install Google Tag Manager so is it necessary that I leave the child theme activated or can I use the parent theme?

Thank you :)

Hi there,

if you have added the GTM to your Child Theme then you must keep it enabled.

Hi,

Thank you very much :) If I install the GTM in the parent theme, and I don't need any other changes, is it useful that I continue to use the child theme or can I disable it?

I'm sorry for the questions and thanks for your help :)

Ok, I have the last question: I previously added the GTM tag following that guide but with the child theme active. Following that guide, does the theme have to be parent or child?

Thank you for your help and I'm sorry because I'm not expert :)

Thank you :) And if I use the hook method do I have to keep the child theme active or is it not necessary? I installed the child theme only to add the GTM tag, in case that I don't need the child theme to use the hook method and I don't have to make other changes, would it be necessary to keep the child theme active?

Thank you! :)

And if I use the hook method do I have to keep the child theme active or is it not necessary?

No - you don't need a child theme in this case :)

This archived topic is closed to new replies.