Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #834371

    Hi there
    Can you tell me please where I should put the Google Tag Manager code in the Enfold theme?

    Many thanks

    #834805

    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

    • This reply was modified 7 years, 3 months ago by Yigit.
    #836859
    This reply has been marked as private.
    #837303

    Hi Aulas,

    Great, glad you got it working and thanks for letting us know.

    Best regards,
    Rikard

    #840866

    Hi,
    Please indicate where to add this code using a child theme.
    Thx

    #841153

    Hi Estudio33,

    In your functions.php file in your child theme.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.