lists
-
Currently validating my code on my these but keep getting this error:
Line 331, Column 52: Element li not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
<li id=”php_widget-15″ class=”widget php_widget”>
Contexts in which element li may be used:
Inside ol elements.
Inside ul elements.
Inside menu elements.
Content model for element div:
Flow content.I dont understand how to resolve this but its saying it for each of my widget in the sidebar. How do i resolve this?
-
You need to use properly formatted lists — must be a
<ul>or<ol>around<li>tags. You have li tags without the ul or ol ones in the widgets.if this is an error for each of the widgets, re-consider what to use in the
register_sidebar()function in functions.php of your theme: http://codex.ww.wp.xz.cn/Function_Reference/register_sidebara
<ul>or<ol>tag seems to be missing in front and the corresponding closing tag after each widget.Hi,
I’ve been trying to locate the sidebar.php for my theme but i can’t seem to locate it.
Ive checked the source code of my site and then checked it with the wc3 validator’s corrected code which shows where the
<ul>tag is missing from mine but im not sure how to add this in.Please advice where and how I can add and close the
<ul>tag or least be able to remove the<li>tagsThank you.
The topic ‘lists’ is closed to new replies.