[wp-hackers] WordPress changes for responsive designs

Ricardo Moraleida moraleida at gmail.com
Thu Mar 29 02:23:34 UTC 2012


Overriding the styles on '.wp-caption'  and '.wp-caption img' isn't solving
it for you?


Ricardo Moraleida



2012/3/28 Joshua Sibelman <joshua.sibelman at gmail.com>

> Well, my problem here is more to do with the caption shortcode. If you add
> a caption to an image that gets inserted into a post, it puts the image in
> a caption shortcode, with the width explicitly stated as part of the
> shortcode. If you try to change the width in the shortcode to a percentage
> value, it drops the percent symbol, leaving you with a very small width
> indeed.
>
>
> On Mar 28, 2012, at 7:13 PM, Ricardo Moraleida wrote:
>
> > I'm building responsive themes with 3.3 and so far, haven't found any
> > critical difficulty, apart from one or two !important css statements as
> in:
> >
> > img { width: 100% !important; }
> >
> > this seems to solve every issue i've bumped into so far, provided every
> > other measure in the template is using % or em units. Is this kind of
> style
> > enforcing really (i mean really) bad for any reason?
> >
> > Ricardo Moraleida
> >
> >
> >
> > 2012/3/28 scribu <scribu at gmail.com>
> >
> >> On Thu, Mar 29, 2012 at 4:16 AM, Joshua Sibelman
> >> <joshua.sibelman at gmail.com>wrote:
> >>
> >>> I'm almost certain this isn't the right place to direct this, but
> figured
> >>> it'd be a start.
> >>>
> >>
> >> Reading the subject, I thought you were going to talk about design, but
> the
> >> problem you raise is very technical indeed; quite appropriate for a
> mailing
> >> list called wp-hackers.
> >>
> >> 1) Does anyone know if WP has any plans to move towards greater support
> for
> >>> responsive designs?
> >>>
> >>
> >> There are plans and there was actually work done on this front in WP 3.3
> >> [1] and continuing in 3.4 [2] and beyond [3].
> >>
> >>
> >>> 3) I'm not averse to solving this by writing a plugin, are there hooks
> >>> available for the media uploader's code insertion?
> >>>
> >>
> >> If you mean the final HTML code inserted into the post content, yes
> there
> >> is a hook for that: 'media_send_to_editor'
> >>
> >> [1] http://core.trac.wordpress.org/ticket/18198
> >> [2] http://core.trac.wordpress.org/ticket/20015
> >> [3] http://core.trac.wordpress.org/ticket/19844
> >>
> >> --
> >> http://scribu.net
> >> _______________________________________________
> >> wp-hackers mailing list
> >> wp-hackers at lists.automattic.com
> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list