/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* 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