I have a normal textbox widget that I am using in certain sidebars. The text widget generates a div within a ul. Is there anyway to make the widget generate another ul li instead?
<ul><h3>Heading</h3> <div class="textwidget">
Specifically, you need to look at the
Then change it to this:
Specifically, you're changing this:
Use the wordpress default text widget. Its named "Text" in your widget area. You can add unlimited text widget in your sidebar. Each text widget creates new ul li. I hope you get what i mean.
You can unregister the default widget:
Then register your own with custom markup...
Or you can see if nesting your desired code completely within the current markup and just styling around the existing markup. You can remove any negative side effects it is giving you with CSS.