Hello,
I copied the header.php file to my enfold-child theme today. All went fine without any issues.
After adding my Google Tag Manager snippet below the opening head and body tag I checked my site and found an issue.
All pages now have a black bar including ” /> in the header area.
I deleted the header.php from the child theme, copied a new one from the parent theme and all looked fine again. Then I tested once more adding the GTM snippet and the black bar was back.
The Google Tags are firing so I guess I added them correctly within the header.php so that shouldn’t be the issue.
Hope you can help. Thank you.
ha….I just found the issue myself!
For whatever reason a new line with the signs ” /> was created below the GTM header snippet after saving the header.php file.
I simply deleted it and now the black bar has disappeared.
Thanks. You can close this thread :)
Hi difu,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria