WordPress Developer Ukraine, Kyiv
Lazy load images in WordPress without a plugin

Lazy load images in WordPress without a plugin

Images are consistently the largest contributors to page weight on WordPress sites. A typical blog post with six to eight inline images easily transfers one to three megabytes of image data to each visitor, regardless of whether those images are visible on screen when the page loads. A long recipe post, a product review with…
Get Image Alt Text and Title from a URL in WordPress

Get Image Alt Text and Title from a URL in WordPress

When a theme or page builder stores an image as a plain URL (e.g. in a theme options field or an ACF text field), you lose access to the attachment’s alt text and title stored in the Media Library. The functions below let you look up an attachment by its URL and retrieve those attributes…