Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-05-2013, 07:26 AM   PM User | #1
rfq
New to the CF scene

 
Join Date: Jan 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
rfq is an unknown quantity at this point
Validating XHTML

Looking for help or a pointer to resolve errors to sidebar.php file. Website is rfqpro.com

W3 Validator is showing 20 errors and they all appear to relate to text widgets in sidebar.php

Error - Document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag

My Code:
<!--sidebar.php-->
<li id="text-390437721" class="widget widget_text"> <div class="textwidget">

The sidebar.php file in the theme editor does not show this text anywhere? Do I need to access in another file and can you suggest a fix?

many thanks and appreciate your help Mark
rfq is offline   Reply With Quote
Old 01-05-2013, 07:54 AM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
LIs should only appear as child elements to a UL or OL.

You are using WordPress: I can't help you with this. If you are unable to find the relevant content then you may have to live with it not validating.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Users who have thanked AndrewGSW for this post:
rfq (01-05-2013)
Old 01-05-2013, 08:03 AM   PM User | #3
rfq
New to the CF scene

 
Join Date: Jan 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
rfq is an unknown quantity at this point
Andrew thanks. Some Wordpress users suggests adding widget text to style.css file ?

Maybe time for a theme change ...
rfq is offline   Reply With Quote
Old 01-05-2013, 08:11 AM   PM User | #4
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Quote:
Originally Posted by rfq View Post
Andrew thanks. Some Wordpress users suggests adding widget text to style.css file ?

Maybe time for a theme change ...
Changing a .css file won't cause the HTML to validate.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Old 01-05-2013, 12:48 PM   PM User | #5
webdevs
New Coder

 
Join Date: Nov 2012
Location: India
Posts: 52
Thanks: 0
Thanked 3 Times in 3 Posts
webdevs is an unknown quantity at this point
Make sure, your website or sidebar li sturctures should be standard for example.
<ul>
<li>content over here</li>
<li>content over here</li>
</ul>
webdevs is offline   Reply With Quote
Old 01-05-2013, 06:30 PM   PM User | #6
charlyanderson
Regular Coder

 
Join Date: Dec 2012
Posts: 111
Thanks: 14
Thanked 1 Time in 1 Post
charlyanderson is an unknown quantity at this point
What is the widget that you are referring to? If it's one you downloaded and installed there is probably and separate file to the sidebar page
charlyanderson is offline   Reply With Quote
Reply

Bookmarks

Tags
sidebar, text widget, wordpress, xhtml validator

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:59 AM.


Advertisement
Log in to turn off these ads.