Adds Tainacan large-full media size #498.
This commit is contained in:
parent
08f1d7361c
commit
21fe42bcb2
|
@ -35,13 +35,16 @@ add_action( 'after_setup_theme', function() {
|
||||||
add_image_size( 'tainacan-small', 40, 40, true );
|
add_image_size( 'tainacan-small', 40, 40, true );
|
||||||
add_image_size( 'tainacan-medium', 275, 275, true );
|
add_image_size( 'tainacan-medium', 275, 275, true );
|
||||||
add_image_size( 'tainacan-medium-full', 205, 1500 );
|
add_image_size( 'tainacan-medium-full', 205, 1500 );
|
||||||
|
add_image_size( 'tainacan-large-full', 480, 860 );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// This enables Tainacan media sizes in the admin interface, including Gutenberg blocks
|
// This enables Tainacan media sizes in the admin interface, including Gutenberg blocks
|
||||||
add_filter( 'image_size_names_choose', function ( $sizes ) {
|
add_filter( 'image_size_names_choose', function ( $sizes ) {
|
||||||
return array_merge( $sizes, array(
|
return array_merge( $sizes, array(
|
||||||
'tainacan-small' => __( 'Tainacan small (40x40 - cropped)', 'tainacan' ),
|
'tainacan-small' => __( 'Tainacan small (40x40 - cropped)', 'tainacan' ),
|
||||||
'tainacan-medium' => __( 'Tainacan medium (275x275 - cropped)', 'tainacan' ),
|
'tainacan-medium' => __( 'Tainacan medium (275x275 - cropped)', 'tainacan' ),
|
||||||
'tainacan-medium-full' => __( 'Tainacan medium full (205x1500 - not cropped)', 'tainacan' )
|
'tainacan-medium-full' => __( 'Tainacan medium full (205x1500 - not cropped)', 'tainacan' ),
|
||||||
|
'tainacan-large-full' => __( 'Tainacan large full (480x860 - not cropped)', 'tainacan' )
|
||||||
) );
|
) );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue