bypr.nils on "img sizes attribute hook?"

ساخت وبلاگ

Hello! So the default "size" is 100vw, and i also read that adding a the attribute to the markup will override the default. But i'm sure there's also a hook?

A theme should be able to hook into that and tell wordpress the size of the image. Ideally the hook function should have access to the class of the image so there'd be the possibility to differentiate.

Couldn't find info on that! It's hard too google because there's so much old info out there about the resizing of image sources.

Linton Hale
Member
Posted 13 hours ago #

Hi there!

I wonder if the lovely Simple Image Sizes plugin might meet your needs?

If not, I'd be curious to lea more about the issue.

Best wishes...

bypr.nils
Member
Posted 1 minute ago #

oh that's not at all what i meant! I'm talking about the new responsive images implentation of the wordpress core, not the generation of image uploads!

<img sizes="100vw" srcset="....

Couldn't find info on that! It's hard too google because there's so much old info out there about the resizing of image sources.

exactly what i meant by this - it's easy to be confused

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 216 تاريخ : دوشنبه 24 خرداد 1395 ساعت: 16:00