• This is my first WordPress site and also my first attempt at validating a WordPress site. And I’m a bit confused about how to correctly accomplish this. Or at least the best/most effective way to do so ..

    The WP Codex suggests validating individual template pages, not just the main page, which makes sense.

    If I type in my main page into the Validator, every thing checks out. But I’m concerned about other template files validating as well.

    Does that mean I need to run such pages as “http://www.my-wordpress-site.com/?p=289” (assuming that it references header.php, single.php, sidebar.php, ETC .. displaying a “single post” view) through the Validator to check the, er, validity of the overall code for single.php?

    When I try to validate just the template file /wordpress/wp-content/themes/my-theme/single.php, I get a few errors concerning missing DOCTYPEs and such .. and then it seems to stop checking the document after that.

    So am I correct in assuming that the only option is to just submit multiple “views” of the overall site to the Validator in order to get the correct output?

    Is there any effective way to Validate the site in its entirety?

    Any thoughts/input/suggestions will be greatly appreciated.

Viewing 1 replies (of 1 total)
  • So am I correct in assuming that the only option is to just submit multiple “views” of the overall site to the Validator in order to get the correct output?

    pretty much, yes.

    you cant load the template files into the validator.

    I load one single page, one category page, one archive page, one index page

    done.

    thats 4 copy & pastes into the validator. 🙂

    if the theme you are using doesnt use certain template files than you would look at even fewer pages.

    The trick is do your validation using a very simple post, so that you dont introduce errors through the post. Use that post as your single.php, use that category as your category.php …

    Its simpler than it sounds.

Viewing 1 replies (of 1 total)
  • The topic ‘Theme Validation’ is closed to new replies.