Skip to content

Images

config/images.php

Contains options to remove/configure default/custom image sizes.

This option allows you to remove those pesky default image sizes that WordPress creates for you. This option is however all or nothing. The default is to remove all of them.

Keep in mind that you need the thumbnail size for the post thumbnail feature to work.

This option allows you to add custom image sizes to your theme.

config/images.php
<?php
return [
'sizes' => [
'custom_size' => [
'width' => 100,
'height' => 100,
'crop' => true,
],
],
];