• Resolved pako69

    (@pako69)


    Hi

    I use this HTML (After <body> tag) code but it do not output at all…

    <!– Google Tag Manager (noscript) –>
    <noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX&#8221;
    height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
    <!– End Google Tag Manager (noscript) –>

    Am’I missing something?

    Thanks

    • This topic was modified 4 years, 4 months ago by pako69.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    The “After <body> tag” option uses the wp_body_open hook introduced in WordPress 5.2. If nothing is output with the “After <body> tag” option, then it means that your website has an older WordPress version than 5.2 or the theme didn’t add the wp_body_open() function in their header.php file.

    Thread Starter pako69

    (@pako69)

    I’m using WP 5.5.3 but you are rightn this below was missing in the header.php file:

    <?php 
    if ( function_exists( 'wp_body_open' ) ) {
        wp_body_open();
    } else {
        do_action( 'wp_body_open' );
    } ?>

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add HTML after tag do not work’ is closed to new replies.