Validating Problem, Wordpress making it impossible!

2 replies
  • WEB DESIGN
  • |
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?
#impossible #making #problem #validating #wordpress
  • Profile picture of the author dsgnmvrck
    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:

    <head>
    <style type="text/css">
    .style1 {
    text-align: right;
    }
    </style>
    </head>

    You'll basically want to look at the index.php or header.php file of your current Wordpress theme to see where this was added. This will get you through the Doctype problem, but generally it's hard to pin every problem down especially when you are using a lot of custom plug-ins that, when written by the developers, wasn't to output standards compliant markup.

    The more important question now is why do you want it to validate 100%? Is it worth your time, as opposed to using it for other purposes? You might want to hire a developer to clean up for you down the road if it's important to you. If the site outputs correctly in the major browsers, and your expected lifetime of your site is not that long, perhaps you should just let it go. It's a matter of prioritizing, in my opinion.

    If you still want to go ahead with making everything validate, I'll be around to help.
    {{ DiscussionBoard.errors[270953].message }}
  • Profile picture of the author KathyK
    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.
    Signature

    Cheers,
    Kathy

    {{ DiscussionBoard.errors[271092].message }}

Trending Topics