/**
* Max srcset image size
*/
function be_max_srcset_image_size( $max_width, $sizes ) {
return 2 * $sizes[0];
}
add_filter( 'max_srcset_image_width', 'be_max_srcset_image_size', 10, 2 );
Bill Erickson
Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.
About MeReady to upgrade your website?
I build custom WordPress websites that look great and are easy to manage.
Other articles in this series
Benchmarking LLMs on Real Client Work
June 24, 2026
I thought it would be fun to test a variety of open source LLMs on actual client work using Codex cli. I created a benchmark test based on real client…
Using DeepInfra models with Codex
June 24, 2026
I was using Codex with DeepInfra-hosted models for my benchmarking test and ran into a small compatibility problem. Codex sends requests using OpenAI’s Responses API. DeepInfra provides an OpenAI-compatible API,…
Use Hermes Desktop with your remote Hermes agent
June 23, 2026
I run Hermes on a separate computer instead of my daily machine. The remote machine can stay online all the time, keep scheduled jobs running, receive messages from Telegram or…
Migrating from WordPress to Astro
June 19, 2026
A practical look at when Astro can replace WordPress, using a client migration to explain content inventory, SEO, forms, performance, and tradeoffs.