I’ve got a basic text widget and, outside the standard <div class="textwidget">
wrapper there is a <li id="text-5" class="widget widget_text">
(which I have not added when creating the sidebar in functions.php
or added when adding a text widget from the dashboard).
i.e. the full code looks like this:
<li id="text-5" class="widget widget_text">
<div class="textwidget">
<my content>
</div>
</li>
I’m at a loss where this li
comes from. Any idea why and how I can get rid of it?
3 s
I think WordPress widgets create li tags on default. If you want the bullet points removed you could fix that with a css approach.
.widget li {
list-style: none;
}