• Resolved storyboutagirl

    (@storyboutagirl)


    I have a number of validation errors on my page that have to do with the sidebar widgets. For example:

    Line 145, Column 13: document type does not allow element “h2” here; assuming missing “li” start-tag
    <h2>Subscribe By Email</h2> <div class="textwidget"><br /><form styl…

    How would I fix these as it’s in error in the output for the widgetized sidebars? And I don’t have any way to change them in the theme…

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s an issue with the theme. Try looking in the theme’s function.php file for register_sidebar() and ensure that it is adding list markup before and after the widgets:

    Eg:

    if (function_exists('register_sidebar')) {
    	register_sidebar(array(
    		'name'=> 'Main menu',
    		'id' => ',main',
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    	));
    }

    Thread Starter storyboutagirl

    (@storyboutagirl)

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Validation errors’ is closed to new replies.