• Resolved maxsimms

    (@maxsimms)


    The letter “f” is appearing in the top left corner on all my pages. When I view the source for these pages, I see the letter appearing as the very first thing before DOCTYPE, as you can see below:

    f<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;

    I assume this is a letter that’s accidentally been typed into a php file, but I cannot find it anywhere (for example, I’ve looked in the header.php of my theme). Does anyone have any idea what php file might be adding this letter to my pages? Or might it be a plugin?

    Thanks in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Another classic way for this to happen is that one of the plugins/themes has a character at the end of the file (after the ?> tag)

    Start with switching the theme to the default. If the problem goes away, search your preferred theme for a “f” that has fallen in your html.

    If that is unsuccessful, turn off all your plugins. Turn them on one at a time to see if you can find the culprit.

    Once you have found the responsible plugin, you may find it easier to just install a fresh copy to see if that solves the problem.

    Thread Starter maxsimms

    (@maxsimms)

    Thanks, Transom. I found the added letter — I had accidentally typed it at the beginning of the wp-config file when I needed to manually remove the line for the WP Super Cache plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unwanted Text Appears Before DOCTYPE’ is closed to new replies.