PDA

View Full Version : Website blank / not loading in IE8



suizka
Sep 10th, 2010, 04:46 PM
Hi everyone! Im a newbie to this and have been working on my site (http://www.accentoarquitectura.com) fine until i realized that it now doesnt load in IE8.

I have been using firefox to look at my site, and had friends look at it using IE8 - which was fine for a while but now it loads a blank page with no error message, saying DONE at the bottom. I have been modifying the header.php file and not sure if i touched something in here that has made it not show up anymore in IE8. Here is my header code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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'); ?>" />
<title><?php bloginfo('name'); ?><?php if ( is_single() ) { ?> &raquo; Archive <?php } ?>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --><?php do_action('icl_language_selector'); ?>
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/print.css" type="text/css" media="print" />
<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie.css" type="text/css" media="screen, projection" /><![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>


<body>
<div class="container">
<div class="container-inner">

<!-- Begin Masthead -->
<h1 id="site-title">
<span>
<a href="<?php bloginfo ('home');?>" rel="home" title="<?php bloginfo('name');?>">
<img src="<?php echo bloginfo ('template_directory');?>/images/logo.png" alt="<?php bloginfo ('name');?>" />
</a>
</span>
</h1><!--end of h1 site-title-->

<?php if ( $paged > 1 ) { ?>
<?php } ?>

<!-- Begin Navigation -->

<?php gpp_theme_nav(); ?>

<?php /* If this is home */ if (is_home()) { ?>
<?php include (TEMPLATEPATH . '/slideshow.php'); ?>
<?php } ?>

SB65
Sep 10th, 2010, 04:56 PM
It's blank (in IE7 at least, as well as IE8) because this:


<title><?php bloginfo('name'); ?><?php if ( is_single() ) { ?> &raquo; Archive <?php } ?>

should be this:


<title><?php bloginfo('name'); ?><?php if ( is_single() ) { ?> &raquo; Archive <?php } ?></title>

The missing closing </title> tag is causing IE to disregard the html following it. You have a number of other validation errors (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.accentoarquitectura.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0) as well.

teedoff
Sep 10th, 2010, 05:36 PM
You dont need "/>" to close meta tags...just a ">' should do. That will eliminate all those errors. Hope that helps

teedoff
Sep 10th, 2010, 05:41 PM
You say you have been modifying the header code. Is this a separate file and is a php include in the main file? If so then you dont need to specify any doctype. You also would not need <html> or <body> tags

SB65
Sep 10th, 2010, 05:47 PM
You dont need "/>" to close meta tags...just a ">' should do. That will eliminate all those errors. Hope that helps

No - for an XHTML doctype the tag should be closed.

teedoff
Sep 10th, 2010, 06:01 PM
No - for an XHTML doctype the tag should be closed.

ahh sorry didn't see that he was using xhtml.

suizka
Sep 10th, 2010, 07:02 PM
Hi! Thanks for your replies, I closed the title tag, and that has worked so far! Many thanks! Im going to have a look at the other verification errors!