/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
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: 1.0.1
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
*/

.metaslider img {
    border-radius: 12px; /* Ajusta el valor según lo redondo que quieras */
    overflow: hidden;
}



// Ocultar Título de las páginas en Plantilla Hello Elementor
function ele_disable_page_title( $return ) {
return false;
}
add_filter( 'hello_elementor_page_title', 'ele_disable_page_title' );




//CODIGO PARA LEER 404
add_filter( 'template_include', function( $template ) {
    if ( is_404() && function_exists( 'elementor_theme_do_location' ) ) {
        $template_404 = locate_template( 'elementor-404.php' );
        
        // Si existe un archivo 404 personalizado, lo usamos
        if ( $template_404 ) {
            return $template_404;
        }

        // Si no, devolvemos un template vacío y lo controlamos nosotros
        return plugin_dir_path( __FILE__ ) . 'elementor-404-fallback.php';
    }

    return $template;
}, 99 );




