ThemeShaper Forums » Thematic


css validation error - no doctype found

(3 posts)
  • Started 8 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, 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 through the validator.

    Posted 8 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); = id;
      js.src = "//";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

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

    Posted 8 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 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.