Closed diegocanal closed 4 years ago
Hello @diegocanal
You can change this through the ocs_register_sidebar_args
filter to change it according to your theme.
WordPress by default uses <li>
elements for widgets (no idea why...) so I'm trying not to change to much in WordPress defaults.
However, in this case I do agree that it might be better for me to overwrite this default since the sidebars will never be list items in my case I suppose.
I've added a new commit to the dev
branch (next update) that will fix this:
https://github.com/JoryHogeveen/off-canvas-sidebars/commit/c1f81ffaf1bf3f1ff7157aaa43479b100c91486e
Thanks @JoryHogeveen for your superfast reaction.
I'm not a programmer so figuring out how to solve it using the filter would have taken me a while. Your new commit has saved me a lot time.
I love your plugin. Keep up with the good work!
Hi @diegocanal No problem! And thanks for your review! Cheers, Jory
Describe the bug
In off-canvas sidebars the widgets are output wrapped in
<li>
HTML elements, but not as children of a<ul>
,<ol>
, or<menu>
element –or the obsolete<dir>
element–, which is invalid HTML markup (reference in MDN).Steps to reproduce the behavior:
<li>
elements wrapping the widgets.Expected behavior
In my opinion, the widgets should not be output wrapped in
<li>
elements,<div>
seems to me semantically more neutral and appropriate.Screenshots
Specifications
<body <?php body_class(); ?>
<?php wp_footer(); ?>
)