Widget container HTML (and missing titles)
-
Hi
I have something like this setting up widgets:
'before_widget' => '<li>', 'after_widget' => '</div></li>', 'before_title' => '<h2>', 'after_title' => '</h2><div>',
so the output is:
<li> <h2> title </h2> <div> content </div> </li>
the problem is that some widgets (eg. search), don’t output the title (h2 in this case), therefore
</h2><div>
is left out, making the entire design break because of the closing div tag.is there a way to force the title to display, or a better way to customize the widget container HTML ?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Widget container HTML (and missing titles)’ is closed to new replies.