• I am using the relaxation 3 column theme. When I went in to edit theme sidebar.php to point to my flikr pictures (following author of theme instructions), My pictures reside at the bottom of page in IE, but look great in Firefox. My page is http://www.neutronflux.com/flux

    Unsure what happened. I tried to validate in XHTML and get the following error..

    Error Line 31 column 31: document type does not allow element “style” here. <style type=”text/css”>

    I am unsure what file the validator pulled this from, but its not in the theme sidebar.php. Any suggestions what I need to do next?

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you check the “Show Source” box on the vcalidator page and click Revalidate – it will show you exactly where the error is.
    (every error line number is a link)

    Thread Starter soup_r_man

    (@soup_r_man)

    Thank You. When I hit the validate XHTML 1.1 button on my WP page, it scans what I assume is the Index.php file at that location. However, when I look at the index file text on my WP site, it does not match the text that the W3 validator displays.

    I have actually opened all my index pages on my site and cannot find matching text to what the validator displays.
    So I am still unsure what file the validator is telling me to alter. Suggestions?

    when I look at the index file text
    You should look at the code, not text 🙂

    E.g. the very first error is caused by your flckr gizmo in the post.

    Thread Starter soup_r_man

    (@soup_r_man)

    Haha. Ok, when I hit the validator icon on my WP page and click the “show source” as you have suggested, it displays the code (I see text) of some file that has errors. The validator does not say “this error found in index.php”, it just shows code. I assumed it is the index.php file, but every one I could find on my site does not match the code that is displayed in the validator.

    If I can just find what file this code is within, then I will make the suggested changes. However, at this point, I am unsure what file needs a fixin.

    Keep in mind that WP takes all the bits and pieces from your theme directory and assembles them to produce the final result. The theme itself controls what is shown where.

    The validator validates the final/assembled result.

    You have to do some detective work to figure out if the line of code it refers to is in your header or index or sidebar (as examples).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘IE sidebar.php issues’ is closed to new replies.