Text widget problem with W3 validation
I am continuing the series of answers to questions that were asked in my pre-Christmas post. You can ask your questions to be added to the series by commenting on this or any other post.
Today’s question:
I just try validate my WP blog and I see Text widget give validation errors even is empty, even it have inserted a piece of code inside. I use WP v2.8 W3C Validator verify the same HTML source code which I view in the my browser and indicate me the place of them, but I dont know where is the code which I have to correct. What is/are the name of file(s) I must fix? All that “li” and “ul” are part of WordPress code not mine. Thank you.
The text widgets are called usually as part of sidebar.php. So every theme will be a bit different.
I did run this blog through the validator and found quite a few minor errors per their validator but none showing a problem with “ul” or “li” tags in the sidebar and I do use text widgets a lot,
The vast majority of the errors were because in the css the attributes that the theme calls were in CAPS instead of small case. The other big problem on this blog was not using self closing tags with the / before the closing >.
Hope that helps you but can’t be more specific because each theme is different.
As always your questions and comments are welcomed.
About the author
|
Mike Paetzold got started blogging in 2003 and has become an expert on using WordPress. He has become known as The WordPress Guy. After being an under ground niche marketer using his blogs he has surfaced to share some of the ways he uses blogs to enter various niches profitably. Get the details at Profitable Blog Steps |
Related posts
Like this post? Subscribe to my RSS feed and get loads more!
Disclaimer: Some of the links mentioned within this post or posts it may lead to are my affiliate links and in such case I will get compensated for recommending those products. However, I will never recommend something that I don’t personally believe in and I welcome your questions and feedback.







2 comments
Dave Doolin on January 6, 2010 at 9:43 am
Way too few people validate their code!
This is very good to see you promoting that.
Dave Doolin´s last blog ..Made to Stick: Earworms for your brain
[Reply]
Kai on January 7, 2010 at 3:38 am
I always make the mistake of not closing tags, but as a Blogger user, it won’t let you submit the post until you fix the error.
Kai´s last blog ..SEO
[Reply]