Forums
Forums / Plugin: Timetable and Event Schedule by MotoPress / Widget wrapper issues
(@kjtolsma)
9 years, 10 months ago
I’m having some trouble with the widget wrapper. You’re using a <li>element in the before and after attributes in the register_sidebar function. The wrapper isn’t a <ul>. Is there a reason why you use <li> elements?
<li>
<ul>.
The output looks like this:
<div class="mptt-sidebar"> <li id="text-3" class="widget widget_text"><h2 class="widget-title">Some title</h2> <div class="textwidget">Some content</div> </li> </div>
https://ww.wp.xz.cn/plugins/mp-timetable/
[moderated to fix broken formatting]
(@motopress)
Hi, Seems like you have selected default Text Widget code as here is proper code of TimeTable widget:
<div id="mp-timetable-2" class="widget mptt-container"> <h3 class="widget-title">Test</h3> <div class="upcoming-events-widget"> <ul class="mptt-widget events-list"> <li class="event" style=" border-left-color:rgb(153, 153, 153) ;"> .... </li> </ul> </div>
The topic ‘Widget wrapper issues’ is closed to new replies.