diff --git a/app/setup.php b/app/setup.php index fcff0a74..ae85113a 100644 --- a/app/setup.php +++ b/app/setup.php @@ -168,9 +168,8 @@ function cors() { } add_action('after_setup_theme', function(){ - $image_srcset = new Utilities\ImageSrcset; - $image_srcset->add(['name' => 'hero', 'width' => 1920, 'height' => 1080]); - add_image_size('lazy', 50, 50); - add_image_size('hero', 1920, 1080, true); + $image_srcset = new Utilities\ImageSrcset; + $image_srcset->add(['name' => 'hero', 'width' => 1920, 'height' => 1080]); + add_image_size('lazy', 50, 50); + add_image_size('hero', 1920, 1080, true); }); -