[Support request] Showing error text above header

Home Forums Support [Support request] Showing error text above header

Home Forums Support Showing error text above header

  • This topic has 1 reply, 2 voices, and was last updated 4 weeks ago by David.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2060386
    Anil

    Hi ever since I have updated the Google tag manager code in the header and body section of the header.php section. There is error text showing above my header in generatepress .

    class=”post-template-default single single-post postid-254 single-format-standard logged-in admin-bar no-customize-support wp-custom-logo wp-embed-responsive post-image-below-header post-image-aligned-center sticky-menu-no-transition sticky-enabled both-sticky-menu no-sidebar nav-below-header separate-containers nav-search-enabled header-aligned-left dropdown-hover” itemtype=”https://schema.org/Blog” itemscope>

    can someone please help me?

    Note above text is showing in editing mode only not in the live version.

    <head>
    <!– Google Tag Manager –>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
    new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
    https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,’script’,’dataLayer’,’GTM-T7SJ45D’);</script>
    <!– End Google Tag Manager –>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <link rel=”profile” href=”https://gmpg.org/xfn/11″&gt;
    <?php wp_head(); ?>
    </head>

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

    Thanks

    Anil Thakur

    #2060415
    David
    Staff
    Customer Support

    Hi there,

    don’t make edits to the Theme files.
    You should remove the changes you have made … if need be re-install the theme.

    This document explains how to add GTM:

    https://docs.generatepress.com/article/implement-google-tag-manager/

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