Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    rfq
    rfq is offline
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    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

  • Users who have thanked AndrewGSW for this post:

    rfq (01-05-2013)

  • #3
    rfq
    rfq is offline
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Andrew thanks. Some Wordpress users suggests adding widget text to style.css file ?

    Maybe time for a theme change ...

  • #4
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    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

  • #5
    New Coder
    Join Date
    Nov 2012
    Location
    India
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts
    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>

  • #6
    Regular Coder
    Join Date
    Dec 2012
    Posts
    121
    Thanks
    15
    Thanked 1 Time in 1 Post
    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


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •