[theme-reviewers] wp_footer() placement - [#1221:THEME:PencilDraw]

Mike Little wordpress at zed1.com
Fri Oct 8 08:17:41 UTC 2010

On 7 October 2010 21:16, Otto <otto at ottodestruct.com> wrote:

> Hmmm... Given that a rather large number of plugins do use the
> wp_footer to put displayable content onto the page, I'd have to say
> that it's acceptable to place the wp_footer() code into a div or span
> or whatever. In theme's I've written (HTML5), I do tend to put it
> inside the <footer> element.
Absolutely. I've had numerous instances where content is added to the page
with that action.

> A long term solution would be to encourage widgetized footers for
> displayable content. Until then, I'd say that putting wp_footer
> outside of DIVs should be recommended only, not required.

> On the topic of scripts breaking when inside a DIV, well, that's a
> pretty darned poorly written script, I'd say. Scripts that modify the
> DOM should work no matter where they're placed. jQuery makes this
> easy. We shouldn't require theme authors to account for other people's
> bad code.
My thoughts exactly. I've recently had to fix some JS that made crazy
assumptions about it's position in the layout!

Mike Little
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20101008/3efc5204/attachment.htm>

More information about the theme-reviewers mailing list