WP Validation Tutorial needed

by 8 replies
10
Does anyone know how to go about validating WP or any web page for that matter? There is something different about blogs I noticed.

WC3 is showing tons of errors on my blog and I am disparate to learn how to fix it.
#programming #needed #tutorial #validation #wc3 validation #wordpress validation
  • Fix the errors one by one.

    A validation error (on a blog or wherever - doesn't matter) just means the HTML structure isn't adhering to the HTML specification. It may render fine in all your target browsers though.

    The w3 validator tells you exactly what's broken, so go fix those errors one by one, revalidate and move on to the next. You'll need to hunt down in the theme's PHP where code is broken (the .php code is spitting out invalid HTML) and fix it. Nothing more to it.
  • There is my "unique" problem......I don't know how to fix it....where to go on my blog to fix it?
  • wow, I thought that WP has no problems in validation. Are you using some additional pluging for WP ?
  • Yes I am using the plugins, who isn't? WP has lots of problems with validation especially if you add youtube videos and such....

    I also noticed that my banners are causing the errors. All of it wouldn't be a problem if I knew how to fix them.

    WC3 validator shows the problem and tells you what may be causing it. However, aether am I totally dumb or it is in fact very hard to understand without specific knowledge that I need to acquire.

    Question is: where do I start?
  • Hello curious1960,
    Can you post a couple of examples? You are free to change things from your WordPress dashboard. Just go to Appearance, then Edit to change the actual code for your theme files. Or go to Plugins, then Edit to change the actual code for individual plugin files.

    Another idea is to document what the validation report is telling you, and ask the author of the plugin to make their own updates in a future release. Either send them an email or use their support forum. I've done that before for other issues, and sometimes they are quick to respond with updated versions.
  • Wait a min here.

    You can't assume this is a WP issue (most likely it is not). Particularly if you're using plugins or referencing code off some other site (embedding YouTube videos).

    Disable all your plugins and switch to the default WordPress theme. Is your site still not validating? If so, maybe you're doing something in one of your post's HTML that doesn't adhere to the spec.

    Better question though - why do you want your site to validate? If your site looks right in the top 2-3 browers that bring you 99% of your traffic (typical scenario) then forget about it.
    • [1] reply
    • sometimes plugins can throw the validation off, but more often than not it's the blog poster using HTML code when it should be XHTML code in the posts...there is a difference.
      • [1] reply
  • Banned
    [DELETED]
  • [DELETED]

Next Topics on Trending Feed

  • 10

    Does anyone know how to go about validating WP or any web page for that matter? There is something different about blogs I noticed. WC3 is showing tons of errors on my blog and I am disparate to learn how to fix it.