Hi there
Can you tell me please where I should put the Google Tag Manager code in the Enfold theme?
Many thanks
Hey Picante,
Please use following code to add the code in <head>
tag
function my_custom_code_head(){
?>
//Your code goes here
<?php
}
add_action('wp_head', 'my_custom_code_head');
and following code to add in <body>
tag
function my_custom_code_body(){
?>
// Your code goes here
<?php
}
add_action('wp_footer', 'my_custom_code_body');
Best regards,
Yigit
Hi Aulas,
Great, glad you got it working and thanks for letting us know.
Best regards,
Rikard
Hi,
Please indicate where to add this code using a child theme.
Thx