Site icon Hip-Hop Website Design and Development

Easy methods to choose which thumbnails sizes are displayed in srcset

I do know that WordPress has its approach of letting the browser resolve which picture to obtain relying on the viewport by way of the srcset.

I additionally know that I can use the_post_thumbnail operate and specify a {custom} measurement, like this:

the_post_thumbnail('my-custom-size');

Now, what I wish to obtain is having the ability to specify a listing of {custom} sizes (of various facet ratio from the unique picture), and letting the browser resolve with one to make use of based mostly on the viewport.

I DON’T need to simply add a {custom} measurement to the record of possibilites in srcset, I need to select the entire record of accessible sizes.

I DON’T need to override the overall setting of srcset of the complete web site. I need to specify this record of sizes solely in a single part.

Is that this potential?