I’m developing a heavily redesigned a WordPress theme, including layout, templates and functions and for some reason the header.php file is now generating a random string and appending it to every URL on my domain after a hash tag like this:
http://www.pixelsandtea.com/#axzz1ZvQRmIcj
I’ve narrowed down the problem to the header file by deactivating all plugins, and when I reverted the header.php file back to the original it didn’t do it anymore. I’d just like to know if anybody’s aware of a similar problem and what might be the cause so I can keep my redesigned header with a fix for the problem.
Thanks
It’s not PHP; it’s javascript – you surely noticed how, with javascript turned off, it does not happen.
Look for some instances of
window.location.hashin the plethora of js files you’re using. There’s quite a few but hint: the one you’re looking for is not in jQuery.js.Other hint: wht’s that javascript file that has a lot to do with internal anchors?