Hallo zusammen!
Wenn ich meine Wordpress-Seiten [http://www.ffcorner.com/hp_test/] durch den W3C Validator schicke bleibt nur der "role" Fehler übrig.
Wenn ich mein CSS als File ansich überprüfe, wird es mir als fehlerfrei angegeben.
überprüfe ich die Seite aber via CSS_Validator, dann erhalte ich folgeden Fehler:
-1 Unbekannter Fehler java.lang.RuntimeException: Encountered "DOCTYPE" at line 1, column 3. Was expecting:
-1 Unbekannter Fehler java.lang.RuntimeException: Encountered "DOCTYPE" at line 1, column 3. Was expecting:
Mein Header sieht folgendermaßen aus:
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!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">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="author" content=Erin"/>
<meta http-equiv="Content-Language" content="de"/>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php if (have_posts()) : while (have_posts()) : the_post();
$css = get_post_meta( $id, "css", $single = true); ?>
<link rel="stylesheet" href="<?php print $css; ?>" type="text/css" media="screen" />
<?php endwhile; endif; ?>
<!--[if IE 6]>
<link rel="stylesheet" href="<?php bloginfo('template_directory') ?>/fix-ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 6]>
<link rel="stylesheet" href="<?php bloginfo('template_directory') ?>/fix-ie55.css" type="text/css" />
<![endif]-->
<!--[if lt IE 5.5000]>
<link rel="stylesheet" href="<?php bloginfo('template_directory') ?>/fix-ie5.css" type="text/css" />
<![endif]-->
<style type="text/css" media="screen">
</style>
<script type="text/javascript" src="http://www.ffcorner.com/center.js"></script>
<script type="text/javascript">
<!--
function oeffnefenster (url) {
var fenster=window.open(url, "fenster1", "width=750,height=600,status=yes,scrollbars=yes,resizable=yes");
fenster.focus();
}
//-->
</script>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="content">
<?php get_sidebar(); ?>
Alles anzeigen
Mir ist absolut nicht klar wo das herkommt?! Der Header ist doch valide? Hat jemand eine Ahnung was das bedeutet? Ich blick nicht durch :confused: