Thanks for your response Nikeo!
I pasted the code into the theme’s child functions.php but my site had Parse error: syntax error, unexpected ‘<‘ in /home/dcloud/public_html/wp-content/themes/twentyeleven/functions.php on line 8.
I read somewhere that I need to remove the
if ( !defined( 'ABSPATH' ) ) exit;...if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
In fact here’s what the child theme look like
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:
if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css' );
}
endif;
add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css' );
// END ENQUEUE PARENT ACTION
I actually created this using your free theme.
My question: where do I add the Google Tag Manager Container Snippet Code (javascript) in the above?