ThemeShaper Forums » Thematic

[closed]

css validation error - no doctype found

(3 posts)
  • Started 7 years ago by kim4true
  • Latest reply from kim4true
  • This topic is resolved
  1. Hi - just when I thought I was nearly there, I discovered the site doesn't render correctly in Internet Explorer. (I hate IE!)

    Ran it through validator.w3.org, and discovered that my child theme somehow obscures the doctype.

    I switched back and forth between child and thematic and thematic is rendering correctly.

    Suggestions to begin tracking the problem? You can see my list of errors if you run debraclopton.com/w through the validator.

    Posted 7 years ago #
  2. It is the way you have your FB code inserted. You just need to hook it in somewhere else.

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) {return;}
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=162640660468428";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    It may display incorrectly in IE, but it is incorrect structure for all browsers, the others may just display it better.

    Posted 7 years ago #
  3. Thank you ScottNix. I did away with that script entirely and just put the facebook like box in an iframe. Problem solved.

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.