Support » Themes and Templates » Validation help.

  • Hello,

    I got all my plugins installed and the template is set up. All that’s left for me is validation. I have never done that before and I really don’t want to break my site.

    I was hoping one of you guru’s might be able to help me out. Can someone walk me through the process of what it is I need to do to fix the errors that have came up while modifying my theme?

    Is there any software recommended to help me with the process?

    Is anyone here interested in working with me to fix all the errors for some type of compensation? haha.

    the site should be Xhtml 1.0 Strict. if that helps at all.

    thanks for your time.

Viewing 15 replies - 1 through 15 (of 24 total)
  • post the validator link and let us see the errors. I can’t imagine they’re too bad. :>)

    Thread Starter stealthfiction

    (@stealthfiction)

    to see WHERE the errors are, use this version:
    http://validator.w3.org/check?uri=http%3A%2F%2Fstealthfiction.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1
    (i checked the box for “show source”)

    then you can click on the “Line xxx” where xxx is linked, to see exactly where it’s catching.

    for starters – report results 1-21 are referring to your <BR> or <Br> tags – these should be ALL changed to <br />

    42-55 are explaining that your ordered list tags are out of place…

    it’s pretty self explanatory once you have that “show source” checked, as it will show you exactly the line in the code that’s flubbed up.

    let us know if that helps 🙂

    Thread Starter stealthfiction

    (@stealthfiction)

    Thanks for the help guys i was at like 55 now im down to 15 and most of them are because of a Youtube video on the front page, wich uses flash, wich i just found out after pulling my hair out wont validate.

    I hear there is a work around to get flash to validate, is that true? can anyone help me with that issue?

    actually, there are youtube plugins (are you using one? i’m not sure, but thought i’d ask)

    and flash plugins… but not for youtube specificially… just the youtube plugins.

    here’s one i just found: http://www.xyooj.com/blog/plink/technical/27/wordpress-youtube-video-gallery-plugin/

    Edit: I’m so glad you got through that many errors! Very cool that you worked on them… some people don’t really care much about validation (I do, it’s part of my job… LOL) so it’s nice to see someone learn about it!

    http://geeklimit.com/2006/04/26/embed-youtube-with-the-wordpress-20-wysiwyg-editor/1/

    One more – albeit a little long… he claims on page 2 that this format of his validates… 🙂

    Thread Starter stealthfiction

    (@stealthfiction)

    Thanks! I’m going to try those out right now. this plug in:http://www.rossgerbasi.com/2006/01/21/extreme-video-plugin-20/
    as a nice workaround to validate any type of video in posts google youtube, etc. however it doesn’t have suppot for a gallery.

    Oh i’m down to 10 errors now…and I’m stuck. no idea whats causing the last ones any input?

    http://validator.w3.org/check?uri=http%3A%2F%2Fstealthfiction.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1

    I see only one!! that “border” one – any way you can get that into the CSS instead of in that line?

    Thread Starter stealthfiction

    (@stealthfiction)

    yeah! we got validation!

    Here’s a list of what caused 55 Errors on my front page.

    Big issues:

    Iframe, i like my xbox 360 live gamer card but i don’t know if i can show it. does anyone know of a mod or plugin that will let you use Iframes and still validate? had to remove it for now.

    Youtube embedded videos, found the plugin to work around that. (see above) however my gallery page wont be able to validate unless someone makes a better gallery mod that uses the same work around as this guy did for postings.

    Border Tags, I use a plug in that makes it easy to add pictures from your flickr gallery to a post. unfortunitly it add’s border tags wich do not validate. i removed the tags from the posts and maybe I can edit the script to not add the border tag.

    Small Issues:

    I used BR tags on the about page. i didn’t know you needed to close them. fixed easy.

    Had a fe missing closed paragraph tags.

    I still need to go into every single post to check to see if i had anything messed up prior. but all the major bugs are gone. Thanks guys for the help.

    Thread Starter stealthfiction

    (@stealthfiction)

    Thread Starter stealthfiction

    (@stealthfiction)

    update. o.k. i fixed them all except the youtube gallery page and 2 random ones that i have no control over.

    1 being an & sign in a link from my digg.com feed.

    2 something with the forms on the about me page.

    now the next problem: Where can i fix the Error on this page?
    http://jigsaw.w3.org/css-validator/validator?uri=http://stealthfiction.com/

    to fix the & you want to use &amp; in it’s place.

    for the CSS vaildator, it says on line 450 – so open up your stylesheet and look for that kind of error on or about line 450… (if you have a good editor, it will list the line numbers for you, so you don’t have to count yourself… if you don’t, try editplus – it’s free. editplus.com

    Thread Starter stealthfiction

    (@stealthfiction)

    thanks for the link to the editor that will be a great help. for the “&” being changed to “amp;” that’s something i can’t do. it’s pulled from a feed from another site. so the page validates with the first one.

    The guy who wrote the youtube gallery script is updating his code. im down to only 2 errors there. but for the life of me i cant figure out what i need to do for the css to validate, everything looks fine. the error is somewhere in the header. heres the code if anyone wants to check it out.

    <?php include('configuration.php'); ?>

    <!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" xml:lang="en" lang="en">

    <head>

    <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php

    bloginfo('charset'); ?>" />
    <meta name="description" content="<?php bloginfo('description'); ?>" />
    <link rel="alternate" type="application/rss+xml" title="<?php

    bloginfo('name'); ?>" href="<?php bloginfo(url); ?>/feed/" />

    <style type="text/css" media="screen">
    @import url(<?php bloginfo('template_directory'); ?>/styles.php

    );
    </style>

    <?php wp_head(); ?>

    <script src="<?php bloginfo('template_directory');

    ?>/scripts/prototype.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory');

    ?>/scripts/moo.fx.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory');

    ?>/scripts/moo.fx.pack.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory');

    ?>/scarylittlescript.php" type="text/javascript"></script>

    </head>

    <body>

    <div id="aboutcontainer">
    <div id="about">
    <div id="about2">

    <img src="<?php bloginfo('template_directory');

    ?>/images/authorProfile.png" alt="About the author." class="aboutimage"

    />

    <p class="bigblue">Welcome to <?php bloginfo('title'); ?>
    <p class="descblue">Stealth:
    The act of moving, proceeding, or acting in a covert way.
    class="descblue"Fiction:
    A literary work whose content is produced by the imagination and is not
    necessarily based on fact.
    <a href="<?php
    echo($full_about_page); ?> "title="Read more...">Click here to view the
    full about page and contact information
    site is powered by
    WordPress and the
    <a href="http://scarylittlemonkey.com/" title="The Scary Little Theme by
    Nik Iliadis">Scary Little theme.

    <div class="clear"></div>
    </div>
    </div>

    <div id="aboutopenclose">
    "

    onclick="myAbout.toggle(); return false;" title="Toggle the about

    section">
    </div>

    </div>

    <div id="main">
    <div id="header"><div class="headertext"><a href="<?php bloginfo('url');

    ?>" title="go to <?php bloginfo('url'); ?>"><?php bloginfo('title');

    ?></div></div>

    <?php if($show_bar_menu == "yes") { ?>

    <div id="bar">

    <?php get_links($bar_menu_id_number,'','','',FALSE, 'url',FALSE); ?>

    </div>

    <?php } else{} ?>

    <div id="container">

    i need you to post this at pastebin.com – and give us the link… long code doesn’t work well here in the forums… as you can see. 🙂

    question though – why would you assume it’s in the header, if it was the CSS that’s not validating? CSS is in the stylesheet… and only the stylesheet.

    maybe you can post both of them at pastebin?

    Thread Starter stealthfiction

    (@stealthfiction)

    http://pastebin.com/700058

    i posted the styles.php on paste bin.

    the validator error is this “Please, validate your XML document first!

    Line 447

    Column 80

    Element type “a” must be followed by either attribute specifications, “>” or “/>”. “

    I don’t know why i posted the header. i’m quite new to this lol.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Validation help.’ is closed to new replies.