/* 
Theme Name: Hello Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Tema Filho baseado no Elementor Hello
Author: SUA EMPRESA
Author URI: https://seusite.com.br/
Template: hello-elementor
Version: 1.0
Text Domain: hello-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html

*/

/*
    Add your custom styles here
*/
//INÍCIO DO SCRIPT PHP para adicionar novo tamanho de thumbnail

function custom_thumbnail_sizes() { 
    add_image_size('TWPX_1200x630', 1200, 630, true); 
    add_image_size('TWPX_320x240', 320, 240, true); 
} 
add_action( 'after_setup_theme', 'custom_thumbnail_sizes' ); 

// Ativar novo tamanho de thumbnail na interface de edição de mídia

function custom_thumbnail_sizes_choose( $sizes ) {
    $custom_sizes = array(
        'TWPX_1200x630'  => 'TWPX - 1200x630',		
	'TWPX_320x240'  => 'TWPX - 320x240',
    );
    return array_merge( $sizes, $custom_sizes );
}
add_filter( 'image_size_names_choose', 'custom_thumbnail_sizes_choose' );

//FINAL DO SCRIPT PHP para adicionar novo tamanho de thumbnail