• About a month ago, I was trying to remove the login links that appear on the top of my WordPress website, which I never completed. I just noticed that !DOCTYPE html> is showing up along the top of the site. I’m not sure why and can’t seem to figure out how to remove it. If anyone has any ideas on how to fix this, I’d greatly appreciate it!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I would suggest that your attempt to edit the header.php file (or whatever file you edited) broke something. Restore the original version of that file and try editing it again.

    If you want to remove the login link bar, that can be done via CSS if your theme doesn’t have some option for it.

    #apus-topbar {
        display: none;
    }

    To add CSS: use the “Additional CSS” option in the customizer.

    Learn to use the Chrome Developer Tools to help you see and test changes to your CSS.

    Thread Starter JeremytheCritic

    (@jeremythecritic)

    I tried reloading the Header theme files via FTP, but that didn’t seem to do the trick. I’m wondering if one of my plugins is doing this. Is that possible? I don’t remember seeing this when I was editing the header.

    BTW, thanks for the apus toolbar removal information. That would’ve been mega handy a while back. I just threw my hands in the air and gave up. Needed to get other work done.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please pastebin the header.php file from your theme.

    Thread Starter JeremytheCritic

    (@jeremythecritic)

    Just figured it out; it was a plugin. Deleted it and readded and forgot to take out example code when I readded script information. Total oversight on my part. Plugin should’ve been the first thing I looked at. Since I failed to remember doing any work on them, I didn’t suppose it was one of them kicking back the text on the live site.

    Thanks again for the apus toolbar code. Maybe this needed to happen in order to correct somethingn else. A blessing in disguise so to speak.

    Cheers!!

    Hi there! I have absolutely the same problem with showing !DOCTYPE html> in the header…

    Unfortunately, I cannot fix it… Can you maybe help me? What did you exactly do?

    Thank you!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @tsvetepopp, if you need support then per the forum welcome please create your own new forum post. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why is !DOCTYPE html> showing up in Header’ is closed to new replies.