I’m adding the Google Tag Manager plugin and is says to add the following line just after the opening <body> tag:
<?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?>
Which template is the <body> tag located?
I thought it would be in the header.php template, but I can’t find it.
Thanks for the help.
1 Answers
You can open the base.php file in the folder path “wp-content\themes\dw-trendy” and look at this line:
<body <?php body_class(); ?>>
Press Enter to begin a new line and add the following code:
<?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?>
Save and upload the base.php file.
Regards,
Please login or Register to submit your answer