Validating Problem, Wordpress making it impossible!

by 2 replies
3
I don't understand what I'm doing wrong. If someone could drop me a hint I would be very grateful.

When I check my code with The W3C Markup Validation Service, it comes up with 80+ errors.

Most aggravating is it cannot detect my DOCTYPE. I have a feeling because of this, my rankings in Google are not where they should be.

my website URL: Modliteresource.com - Dwarf Car and Modified Lite Resource

Please plug that into the validator and tell me your suggestions??

"Unable to Determine Parse Mode!"

my header.php file looks like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">

<title>Title of my webiste........</title>

<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />

<meta name="description" content="<?php bloginfo('description'); ?>" />

<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="shortcut icon" type="image/x-png" href="<?php bloginfo('template_url'); ?>/favicon.png" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php wp_head(); ?>

</head>
<body>

Anybody have similar problems getting their Wordpress pages to Validate?
#website design #impossible #making #problem #validating #wordpress
  • If you go to your website and click on View > View Source, you will see that there is this just before the doctype declaration starts:

  • Yeah - what dsgnmvrck says.

    I'll bet you edit your files in dreamweaver and then upload them?
    If you MUST use dreamweaver to edit php templates (and I'd advise using a text editor instead), check the code view constantly - dreamweaver gets overly "helpful" at times - especially if you are dealing with partial pages (which is what the Wordpress templates are).

    I've also seen it "helpfully" insert closing </body></html> tags in the header.php (which means suddenly most of your page disappears because the browsers sees the end tags and thinks "that's all folks"). And it constantly puts style tags in at the top of any page that's not a full page.

    Very annoying.

Next Topics on Trending Feed