theme development – How can I wrap all blog posts image with

Excellent WordPress programmers, I’d like to resolve an image issue with my WordPress theme. I tried everything I could, but I couldn’t find a solution.

The issue is that my added blog posts images are not responsive. While my feature image is responsive since it has the tag <picture class="c-picture">. If I add <picture class="c-picture"> manual to the images it, fixes it.


<picture class="c-picture"><img loading="lazy" class="alignnone wp-image-160 size-full" src=";ssl=1" alt="" width="2048" height="2048" srcset=";ssl=1 2048w,;ssl=1 300w,;ssl=1 1024w,;ssl=1 150w,;ssl=1 768w,;ssl=1 1536w,;ssl=1 1568w" sizes="(max-width: 1000px) 100vw, 1000px" data-recalc-dims="1"></picture>

So my question is, can I have a function that will add <picture class="c-picture"> to all blog posts images. Thank you, guys. Post link: