• Resolved cholme

    (@cholme)


    Hello… I am pulling my hair out trying to find something on my WP blog. On all my pages I have /* */ at the top left of the page, above the header. See it at http://www.heatherholme.com/wordpress/

    I have looked through my php files and can’t seem to see which one is the problem.

    Any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • …those are associated with CSS. Check your style sheets.

    Check your header.php file. They are around your analytics tracking code.

    /*
    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-46060378-2']);
    _gaq.push(['_trackPageview']);
    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>
    */

    Putting them in the HTML source like that will make them display on the page.

    Thread Starter cholme

    (@cholme)

    John_bryan,

    I checked my header.php and there is nothing. I assume the analytics code is filled in by WordPress, it isn’t something I have hard coded. It seems like it would be in an html somewhere, but I can’t find it and it isn’t exactly something that I can do a search for.

    It is really frustrating.

    Any other ideas?

    Darin – looked through most of my css and can’t see anything either. I would think that if it was in the css it wouldn’t appear on the page but rather create a problem with the rest of the css code… but I could be wrong.

    Is there an option in your theme to put in analytics code? WordPress doesn’t put in analytics by itself. Sometimes it will be a theme option or a plugin. Do you use an SEO plugin? How did the analytics tracking code get there? Figure out what is putting that code in and you will find the problem.

    Thread Starter cholme

    (@cholme)

    Yes in my theme there is an input field for the analytics code. I removed the Google Analytics code but the script seems to remain in the file. I don’t know where the actual source of the analytics script is.

    Thread Starter cholme

    (@cholme)

    Found it… I must have installed the Google Analytics plug-in. I deleted it and the characters disappeared. Reinstalled it and the problem is solved.

    Thanks for troubleshooting with me.

    You don’t need to remove the tracking code. Just the /* */ surrounding it. Now the symbols are gone but so is analytics tracking. I would assume you want the tracking right? Put the tracking back in but remove the stuff on either side of the <script></script> tags

    Thread Starter cholme

    (@cholme)

    That was what was confusing me, I didn’t actually enter the script and didn’t remember installing the Plug-In so I didn’t know the source of the script code.

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

The topic ‘Random Characters on Page’ is closed to new replies.