Hi,
I installed the two snippets for the Google Tag Manager in Theme File Editor > Xstore > Header Page Template. But now I have code on my website above my header (See screenshot). Please help me get rid of this again 😀
Best regards,
Trine
This topic has 5 replies, 4 voices, and was last updated 8 months ago ago by Andrew Mitchell
Hi,
I installed the two snippets for the Google Tag Manager in Theme File Editor > Xstore > Header Page Template. But now I have code on my website above my header (See screenshot). Please help me get rid of this again 😀
Best regards,
Trine
Hello, Woolwolf,
Thank you for reaching out to us.
To add Google Tag Manager (GTM) code, you can insert it into the header or footer of your site. This is often done through the 3rd party plugin https://wordpress.org/plugins/wp-headers-and-footers/ , or by editing the header.php file (copy file from the XStore parent theme to the child).
Best Regards,
8Theme’s Team
Hi,
Thank you for your answer.
The Google Tag Manager (GTM) code is already installed and working. But I must have accidentally changed/ deleted/ interrupted some other code in the process. Now this text is showing on my website (see attached screenshot):
class=”archive post-type-archive post-type-archive-product logged-in admin-bar no-customize-support wp-custom-logo theme-xstore woocommerce-shop woocommerce woocommerce-page woocommerce-no-js noptin et_cart-type-2 wide et-preloader-off et-catalog-off et-enable-swatch elementor-default elementor-template-full-width elementor-kit-11 elementor-page-1459 currency-dkk” data-mode=”light”>
…and I have no idea how to get rid of it. Please advise, thank you.
Best,
Trine
Dear @Woolwolf,
We hope this message finds you well.
We would like to inform you that we have reverted the header.php
file to its original state from the XStore parent theme. To integrate the GTM codes, we kindly recommend using the following plugin:
[Insert Headers and Footers](https://wordpress.org/plugins/insert-headers-and-footers/)
Should you have any questions or require further assistance, please do not hesitate to reach out.
Best regards,
The 8Theme Team
Dear Woolwolf,
Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?
Click here to share your insights: https://themeforest.net/downloads
Your support fuels our journey, and we appreciate it more than words can express.
Best Regards,
The 8Theme Team
The issue related to '‘Installed google Tag Manager snippet – but now have kode before the header on all pages :D’' has been successfully resolved, and the topic is now closed for further responses