WordPress.org

Ready to get started?Download WordPress

Forums

Having rouble with site validation and the wrap displaying correctly in IE. (6 posts)

  1. adtkb
    Member
    Posted 2 years ago #

    Hi all,

    I have posted before and had no luck with this IE bug. I have tried to go through and validate the site and make the revisions, but the DOCYPTE seems to not be registering and therefore I have a bunch of errors that don't make sense.

    The site is askbluestone.com and it is almost perfect as I see it in most browsers, but in IE, the site is aligned left, no background, and the layout of the elements contained int he wrap are not lining up correctly as tehy do in other browsers.

    Any help you can offer would eb greatly appreciated. I am a newbie and learning as I go, which I know is not the best way to go about it. I have been a designer for 14 years and feel that I need to learn web design and simple site creation to keep up with the market place.

    Thanks again for any help you can offer.

  2. adtkb
    Member
    Posted 2 years ago #

    oops, the link is

    askbluestone.com/wp1

  3. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    You have to get rid of this code,

    <style type="text/css">
    .home.page.page-id-43.page-template.page-template-showcase-php #wrap #content {
    	background-color: #FEFEFE;
    }
    </style>

    which is loading before DOCTYPE. If anything loads before that IE will go into the quirks mode which in most cases is not good.

  4. adtkb
    Member
    Posted 2 years ago #

    Thanks, I tried that change and am still getting "No DOCTYPE Found" error in validation. This is messing up the rest of the validation.

    Here is the code:

    <?php
    	global $doctype;
    	global $class;
    	?>
    <!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" lang="en" xml:lang="en">
    <!--[if lt IE 7 ]> <html class="ie6" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( $doctype ) ?> > <![endif]-->
    <!--[if IE 7 ]>    <html class="ie7" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( $doctype ) ?> > <![endif]-->
    <!--[if IE 8 ]>    <html class="ie8" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( $doctype ) ?> > <![endif]-->
    <!--[if IE 9 ]>    <html class="ie9" xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( $doctype ) ?> > <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes( $doctype ) ?> > <!--<![endif]-->
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>- askbluestone.com</title>
    <!-- //////// Favicon ////////  -->
    <link href="<?php echo get_template_directory_uri(_layout/images/favicon.ico); ?>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    
    	<script type="text/javascript">
    		var themePath = '<?php echo get_template_directory_uri(); ?>';
    		var themeCufon = '<?php echo get_option( EWF_SETUP_THNAME.'_cufon', 'true'); ?>';
    		var themeSliderTimeout = <?php echo get_option( EWF_SETUP_THNAME.'_slider_timeout', '5000'); ?>;
    
    		var msg_newsletter_error = '<?php echo __('please enter a valid email...', EWF_SETUP_THEME_DOMAIN); ?>';
    		var msg_newsletter_label = '<?php echo __('subscribe to newsletter...', EWF_SETUP_THEME_DOMAIN); ?>';
    
    	</script>
    	<?php wp_head(); ?>
    </head>
    <body <?php body_class($class); ?>>
    	<div id="wrap">
    	<noscript>
    			<link href="<?php echo get_template_directory_uri(); ?>/style-nojs.css" rel="stylesheet" type="text/css" />
    			<div class="nojs-warning"><strong><?php _e('JavaScript seems to be Disabled!', EWF_SETUP_THEME_DOMAIN); ?></strong> <?php  _e('Some of the website features are unavailable unless JavaScript is enabled.', EWF_SETUP_THEME_DOMAIN); ?></div>
    		</noscript>

    The validation says that there is no DOCTYPE declaration and unable to determine parse mode.

    Thanks,

  5. kmessinger
    Volunteer Moderator
    Posted 2 years ago #

    The css code is still there. I can't tell where it is coming from. I show it in style.css, you main style sheet so it is getting a call from somewhere. Perhaps a page template with some inline css? An SEO plugin? In any event that is the problem.

    BTW, when posting more that 10 lines of code it is best to use http://www.pastebin.com and just post the url. http://codex.wordpress.org/Forum_Welcome#Posting_Code

  6. adtkb
    Member
    Posted 2 years ago #

    Thanks! I have contacted the developer to see if they can help. I cannot seem to locate where that style code is coming from.

Topic Closed

This topic has been closed to new replies.

About this Topic