• Resolved epickau

    (@epickau)


    Hey guys, I recently startet with gutenberg, is there a way to get the default image output to a responsive? (e.g. picture element / img with srcset)

    … I know there is a filter/action when the class of the output image is “wp-image-” but I need this at edit time (at backend).

    My goals are that the default (or maybe custom image block?) returns a picture element with webp source, “default” img srcset and a fallback img.

    My last try was to modify the rest api to return more img properties (alt, src, srcset) but this cant be the solution…

    thanks i advice.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Responsive Images’ is closed to new replies.