Viewing 8 replies - 1 through 8 (of 8 total)
  • It’s from bad Google Analytics code. I don’t know what program you used to copy and paste it, but it messed up at least one of the characters. Regenerate the code from the Analytics site and this time add it to just before the closing </body> tag.

    Go to header.php in your theme’s editor and hold down the control key and press F. Now inside the search dialog box type >” and press enter. If you find a loose one delete it and save the page.

    Thread Starter thewolverineblog

    (@thewolverineblog)

    I removed Google Analytics from my site (I was using a plugin to auto install the code), but the > is still there. Any ideas where in the code the character could come from? I’m not savvy enough with CSS/HTML to know what to delete, and I don’t want to screw up my website.

    Just paste the contents of your header.php here and we will take a look at it.

    Here’s the offending code (the forum software mangles it):

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script><script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-9415539-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    &gt;

    The &gt; at the end is the problem.

    Thread Starter thewolverineblog

    (@thewolverineblog)

    Here’s the contents of header.php … thanks in advance if you can comb through this and find the issue:

    [huge block of code deleted – please use a pastebin or link to file]

    In your on-page source code, the Analytics code is between <body> and <div id="wrapper">, so either it’s a theme option (check your theme options panel), or it’s a plugin adding this (disable it), or you are using free web hosting (these often add their own Analytics).

    <body<?php echo ($bfa_ata_html_inserts_body_tag != "" ? ' ' . apply_filters(widget_text, $bfa_ata_html_inserts_body_tag) : ''); ?>>
    <?php echo ($bfa_ata_html_inserts_body_top != "" ? apply_filters(widget_text, $bfa_ata_html_inserts_body_top) : ''); ?>
    <div id="wrapper">

    Your header.php content has been deleted. Use the pastebin.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘“>” character appears above header’ is closed to new replies.