[wp-trac] [WordPress Trac] #21256: New theme feature - add_theme_support( 'content-width', $defaults )
WordPress Trac
noreply at wordpress.org
Wed Jan 29 14:12:32 UTC 2014
#21256: New theme feature - add_theme_support( 'content-width', $defaults )
--------------------------------------+------------------------------
Reporter: ramiy | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.4.1
Severity: normal | Resolution:
Keywords: dev-feedback 2nd-opinion | Focuses:
--------------------------------------+------------------------------
Comment (by chrisvanpatten):
Support for % widths would be nice, but that introduces a lot of
complications with embeds, because you'd have to recalculate the height
every time the browser width changes so the embed scaled correctly.
As I think about it more, I'm starting to agree with the folks who suggest
ditching $content_width entirely. On responsive sites—which are becoming
more and more the norm—$content_width is pretty useless. Yes, it affects
the editor width as well, but on a responsive site, you're essentially
making a promise to the end user that the content will look a certain way,
when in fact there's no way to guarantee that.
I know it probably ''won't'' be removed, but I'm not sure it's worth
migrating to the `add_theme_support()` style either. Seems like too much
work for too little gain, especially in the age of responsiveness.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21256#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list