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. If you would like help in building your business check out my coaching offer. |
Tagged with: edit theme • text widget • W3 validation • wordpress • wordpress sidebar
Filed under: questions
Like this post? Subscribe to my RSS feed and get loads more!





Leave a Reply