Need help? Check out our Support site, then


Unnecessary styles above DOCTYPE breaking layout

  1. I have recently installed a wordpress blog at http://www.ijdmtoy.com/FAQ

    When you directly type this URL: http://www.iJDMTOY.com/FAQ and when the page opens, if you see the source code it is like

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /> <html xmlns="http://www.w3.org/1999/xhtml"></p> <p><head profile="http://gmpg.org/xfn/11"><br /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    However, if you click on anywhere on this blog and review the source code again, you will see it changes to

    <style>#fbku {position:absolute;overflow:auto;height:0;width:0;}</style><font id="fbku"><b></b><br /> </font></p> <p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /> <html xmlns="http://www.w3.org/1999/xhtml">

    I have tried to remove this in frontpage to test and everything works perfect, so the problem is this <style> code appears above, can you please help me figure out how to remove this

    <style>#fbku {position:absolute;overflow:auto;height:0;width:0;}</style><font id="fbku"><b></b><br /> </font>

    I want to know how can I have this removed from my header.php

  2. You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the WordPress.org forums.

    If you don't understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

  3. The extra style code could be something in the theme or it also could be coming from a plugin. One way to find out if a plugin is the source of the trouble would be to disable all plugins temporarily and check to see if the problem is still happening. If it isn't, turn each plugin back on one at a time until the problem comes back and then that's your culprit.

    For further help, please ask at http://wordpress.org/support/

Topic Closed

This topic has been closed to new replies.

About this Topic