Hello Support Team,
I’m working on the srcset for the image element.
When I enter the url in the image source manually, then srcset is not working.
See attachement.
Is there any way to apply srcset when enter the url manually?
Thanks,
Hello Support Team,
I’m working on the srcset for the image element.
When I enter the url in the image source manually, then srcset is not working.
See attachement.
Is there any way to apply srcset when enter the url manually?
Thanks,
Hello @dwomble,
Thanks for writing to us.
Regretfully, the srcset feature cannot be applied when manually inserting an image URL because WordPress requires the image to be selected from the Media Library to generate the responsive image sizes. Implementing srcset functionality for manually added URLs would require custom development. We suggest reaching out to a developer who can assist with this customization, or subscribing to One, where customization questions are answered. Please note that we don’t provide custom development support. It is out of the support scope.
The Image Element, the responsive image sizes feature (the “srcset” attribute) only works when you select an image directly from the WordPress Media Library, not when pasting an external or direct image URL. The srcset attribute in WordPress depends on attachment metadata stored in the database. When you pick an image from the Media Library, WordPress automatically finds all its registered image sizes (thumbnail, medium, large, etc.) and dynamically generates the srcset list for responsive loading. If you paste a manual URL or use an image outside the Media Library, there’s no database attachment ID, so WordPress cannot generate the srcset or responsive image sizes for that image.
Thanks for understanding