The code that you have posted is not enough to debug.
Instead of removing the the concerned code, you can also hide it by commenting it. In this way, you can know why the header doesn't work when this twitter code is removed.
Moderators: egami, macek, gesf