• At the very top of my website on every page is the following code:
    “> ‘);

    Im using Acabado theme, and when I change the theme the problem goes away. I looked through the theme files but I couldnt figure out where that is coming from. The theme does not offer support. This problem existed from the moment I installed the theme and I have not modified any of the code. I tried uninstalling the theme and reinstalling it but the problem was still there. How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not much we can do here to provide accurate support.
    Once of your theme files is not closing it’s php code properly.

    You would need to check the syntax on your theme php files :
    https://phpcodechecker.com/

    Thread Starter jaatendi

    (@jaatendi)

    Thank you. So should I paste each of the php files one by one from the theme into that and check them? Im not a developer but Im good at copy and paste.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    At the top of your page’s header, there’s this:

    		<!-- Global Site Tag (gtag.js) - Google Analytics -->
    	<script async src="https://www.googletagmanager.com/gtag/js?id=<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-153486880-2"></script> <script>   window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());    gtag('config', 'UA-153486880-2'); </script>"></script>

    You’ll see that that’s duplicated and a mess. How have you added Google Analytics to your site?

    Ah right – see here, it’s a mess :
    https://ibb.co/cyCfx6L

    Uninstall any GA plugin you may have, or look for it in the header.php or functions.php file of your theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Little chunk of code appearing at top of frontend’ is closed to new replies.