Home Forums WoodMart support forum Google Tag Manager

Google Tag Manager

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #168936

    dave2020
    Participant

    Hello,

    Is it possible to add the Google Tag manager code to the theme without child theme?
    Or what is the best way to create a child theme?

    Thanks

    #168947

    Hello,

    First of all thanks for choosing our Theme, we are glad to be you in WoodMart WordPress family :-).

    You can add any custom code in main theme but the changes will lose whenever you update the theme so it’s better to use child theme.

    You do not need to download the child theme from somewhere. Because we already made it for you (you will found in theme package downloaded from themeforest). Here is the link that demonstrate how it works: https://developer.wordpress.org/themes/advanced-topics/child-themes/

    Once you activate the child theme. You can do any customization inside it and they will not lose even after updating the theme.

    Best Regards.

    #169576

    dave2020
    Participant

    Hello,

    Thank you.
    So i have to add another header.php to my child theme folder? (Just a blank header.php) and add the GTM code here?

    Regards.

    #169601

    Hello,

    No you don’t need to create a new file, you just need to copy the header.php file from the parent theme and paste in your child theme folder and add the GTM code in there accordingly.

    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)