[theme-reviewers] content_width in variable-width themes
kwight at kwight.ca
Thu Jan 26 00:30:19 UTC 2012
Hm, seems like a lot.
Maybe my questions is, can we pass a variable-width theme that just uses a
reasonable width, say $content_width=640? I'm doing a theme, for a talk,
that demonstrates the bare minimum in requirements for approval, so it came
I'm leaning towards accepting it - anyone else, for or against?
On 25 January 2012 17:54, Chip Bennett <chip at chipbennett.net> wrote:
> I'm not aware of any consensus *best* practice for dynamic content-width;
> however, I use a method in Oenology that works, and has thus far been
> robust, for setting $content_width dynamically according to the selected
> layout (full, one-column, two-column, three-column, etc.). Here's the
> Note that I hook the function both into wp_head with a priority of 0, and
> also into admin_head (so that it applies to the post editor).
> (If anyone has any ideas for improving the implementation, or has any
> ideas for a better practice altogether, I'll be happy to modify.)
> On Wed, Jan 25, 2012 at 4:41 PM, Kirk Wight <kwight at kwight.ca> wrote:
>> It seems $content_width has to be in pixels, so unless it's set very
>> small, it's conceivable that the embed test in the Theme Unit Test will
>> overflow the content area at some point.
>> What is the best method for setting $content_width in a variable-width
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers