-
AuthorPosts
-
September 9, 2015 at 6:52 am #383014
Thank you – I was working from post #379289.
So to clarify it should look like this – and this works.
// Additional Functions // ============================================================================= // Add Google Tag Manager Code // ============================================================================= function add_google_tag_manager_code(){ ?> <!-- Google Tag Manager --> YOUR CODE HERE <!-- End Google Tag Manager --> <?php } add_action( 'x_before_site_begin', 'add_google_tag_manager_code' ); // End Add Google Tag Manager Code // =============================================================================
September 9, 2015 at 6:53 am #383017Thanks for sharing.
September 13, 2015 at 7:07 pm #387577Hi, Ive just tried to add the code snippet you advised and added ‘x_before_site_begin’ and now am completely locked out of my site, and cannot access the wp-admin page. Please help.
September 13, 2015 at 10:26 pm #387697Hello There,
Thanks for updating this thread! Would you mind providing us with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything. To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
September 14, 2015 at 1:14 am #387813This reply has been marked as private.September 14, 2015 at 1:26 am #387830Hi there,
You need to revoke previous API key and regenerate it with your new domain. See : https://theme.co/community/kb/product-validation/
Please setup a child theme and then add provided code in functions.php file.Hope it helps.
October 5, 2015 at 9:48 pm #612370This reply has been marked as private.October 5, 2015 at 11:14 pm #612455Hello Rich,
If you tried above code on this reply:https://community.theme.co/forums/topic/wherehow-to-install-google-tag-manager-code-using-child-theme/page/2/#post-383014 on functions.php file of your child theme, please make sure that child theme is active via Appearance > Themes. I did check and the child theme is not active right now, unless you have just switch to main X theme.
If you have done that and still doesn’t work, please also share your FTP credentials so we can check further. Thank you.October 6, 2015 at 12:13 am #612502*slaps forehead*
Thanks, it’s working now.
October 6, 2015 at 12:43 am #612527You’re welcome.
-
AuthorPosts