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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘img sizes attribute hook?’ is closed to new replies.