[wp-hackers] WordPress changes for responsive designs

Drew xoodrew at gmail.com
Thu Mar 29 20:46:29 UTC 2012


I've got a filter I use that forces captions to be responsive on the
frontend. Definitely cuts down on the headaches.

Gist here: https://gist.github.com/2243601

Drew

---

> 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
> >
>


More information about the wp-hackers mailing list