For creation of sidebars we specify
after_widget parameters. Is it possible to have something for
after_content as well?
Some theme authors (like myself) use docking boxes in the theme. To enable features like expand and collapse in docking boxes we use the header as a "handle" and the rest of the widget text as "content" - using the handle we can collapse the content. Note that the entire body (including the header) cannot be designated as "content", because then minimizing will cause the whole widget to disappear. To differentiate the content from the rest of the widget we start
div class='content' in the
after_title parameter and close the div in the
But there are widgets that do not print the
after_title parameters. The standard text widget, for example doesn't print them if you don't specify a title. And there are tons of custom widgets that do the same. Not displaying the
after_title tag in these widgets effectively causes it to drop the start div tag and creates an extra closing div tag. This causes the document to become malformed and it fails validation.