• Resolved totoe

    (@totoe)


    Hello,

    so i setup a wordpress site for a friend.
    everything runs fine. i installed into a sub dir and moved it after i did everything via admin to the root. now i found i unknown letter in front of the <doctype> e.g.:
    <!DOCTYPE html>
    anyone can help me with this?
    regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • What’s the URL?

    Thread Starter totoe

    (@totoe)

    i can give you the url via PM or mail.

    This is a public forum of WordPress folks that are here to help. That’s why they recommend you share your URL.

    Thread Starter totoe

    (@totoe)

    Hmm, which file generates the <!DOCTYPE html> outout in WP?
    my index looks like this:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./cms/wp-blog-header.php');

    What theme are you using? Where did you download it from?

    It would be in the header.php file of your theme most likely.

    Are you implying that this was not there when you had the site in the root? Try looking in your theme folder at header.php, see if perhaps this character crept in there.

    Thread Starter totoe

    (@totoe)

    its strange the header.php looks like this:

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="main">
     *
     */
     ?><!DOCTYPE html>

    so nothing there before.

    And what is the character that you see?

    What theme are you using? Where did you download it from?

    Thread Starter totoe

    (@totoe)

    Iam using Vantage theme.
    In firefox it shows the unknow letter, in google chrome its not showing anything but holds the blank before the <DOCtype>.

    Can you replicate the problem using the default Twenty Fourteen theme with all plugins deactivated?

    Thread Starter totoe

    (@totoe)

    
    It remains in the admin backend too.
    it sucks my balls

    Site url?

    Thread Starter totoe

    (@totoe)

    I think it was this plugin:
    BWP Google XML Sitemaps
    sorry for making such waves here.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘just found a unknown letter before doctype’ is closed to new replies.