Support » Themes and Templates » css validation 1 parsing error 4 style sheet errors

  • Resolved VeraBass


    All my WordPress files has been remade without BOM and reinstalled. My database has been cleaned up. I’ve also fixed all errors for xhtml validation.

    The css validation fails, though.

    1. The parsing error ends with …theme/MandMltr
      • tried adding dir="ltr" (with and without language) in the html of the header file
      • tried taking out the php call for text direction
      • thought I found an extra bracket in there but it made no difference in or out

      The source code from my home page shows the same string
      in between the <style> tags, but I can’t find where it’s coming from. There is no ltr file in the MandM theme folder.

    2. The 4 css errors all refer to whitespace, and I don’t know what that means. My stylesheet is a modification of the default theme, and it validated (css only) when I first made it. Here’s another link to it.
      • I’ve tried additional identification of the h3 a child, and other things, and have no idea what else to try.

    The home page does a jumpy/wobble thing when it loads, and if I try activating wp-cache it regularly gives me a ‘configuration has changed’ message.

    Can anyone help, please?

    Thank you,

Viewing 8 replies - 1 through 8 (of 8 total)
  • 1. The only “error” is that this is in your HTML source, as you seem to have recognized already:

    <style type="text/css" media="screen">


    Are you sure that’s not being caused by something in your theme’s header.php? If you don’t know, try pasting the contents of your header.php into so someone can look.

    2. The four warnings just mean that you need quotes around multi-word attributes in your style.css. E.g., replace this:

    font-family: Georgia, Times New Roman, Times, serif; font-size: 62.5%; /* Resets 1em to 10px */

    with this (note the quotes around values with whitespace):

    font-family: Georgia, "Times New Roman", Times, serif; font-size: 62.5%; /* Resets 1em to 10px */

    Hi Adam,

    Here it is. I put it in for 2 hours.

    Thank you so much for the identifying the quotes error! I was driving myself bonkers. 🙂


    style sheet fixed
    just the strange parsing error left

    new link to validation page


    It is strange that clicking on your tinyurl and going to your site with FF and clicking Tools > Validate CSS gives totally different result…

    I’m so sorry. I was trying to extend the time (some of the options don’t work), and it deleted instead.

    It is back up for 24 hours here.


    Hi moshu,

    I don’t have validation in my FF Tools, only a bookmark. I just tried all of them and they are the same for me.
    What are the different results you are getting?



    I think Moshu is referring to a “Tools” menu added by the FF “Web Developer” extension, not to the standard Tools menu. I’ve got the extension too and it’s very handy for stuff like this.

    More to the point…

    This is the funny part of your header.php:

    <style type="text/css" media="screen">
    // Checks to see whether it needs a sidebar or not
    if ( !$withcomments && !is_single() ) {
            <?php bloginfo('stylesheet_directory'); ?><?php bloginfo('text_direction'); ?>
    <?php } else { // No sidebar ?>
            <?php bloginfo('stylesheet_directory'); ?>
    <?php } ?>

    I can’t figure out what it’s doing other than causing CSS errors. You could probably delete it safely is my guess.

    hi Adam,

    Thanks for the expanation about the FF tools thing. I only met php a month ago, and am a not-tech person discovering that playing with WordPress is ‘developer’ territory. Despite the frustrations and sharp learning curve, I’m loving it (don’t tell my husband, he).


    validation success!

    I had been trying since yesterday to figure out what on earth that same section was doing, where the directionality call was going, etc.
    Tried taking pieces of it out, but it didn’t occur to me to remove the entire thing. (I’m not yet brave enough about this coding stuff.)

    tytyty adamrbrown and anyone else who also looked and tried to help


Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘css validation 1 parsing error 4 style sheet errors’ is closed to new replies.