/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
Tags: two-columns,three-columns,one-column,right-sidebar,left-sidebar,footer-widgets,blog,e-commerce,flexible-header,full-width-template,buddypress,custom-header,custom-background,custom-menu,custom-colors,sticky-post,threaded-comments,translation-ready,rtl-language-support,featured-images,theme-options
Version: 3.6.1.1796143198
Updated: 2026-12-01 16:39:58

*/

/* EVITAR CREAR TAMAÑOS ADICIONALES */

/* Evitar que WP cree tamaños de imagen adicionales */
function ayudawp_desactiva_medios_adicionales_wp($sizes) {
	
	unset($sizes['thumbnail']);    // desactivar tamaño miniatura
	unset($sizes['medium']);       // desactivar tamaño medio
	unset($sizes['large']);        // desactivar tamaño grande
	unset($sizes['medium_large']); // desactivar tamaño medio-grande
	unset($sizes['1536x1536']);    // desactivar tamaño medio-grande x2
	unset($sizes['2048x2048']);    // desactivar tamaño grande x2
	return $sizes;
}
add_action('intermediate_image_sizes_advanced', 'ayudawp_desactiva_medios_adicionales_wp');

/* Evitar que se creen los tamaños escalados */
add_filter('big_image_size_threshold', '__return_false');


/* Evitar que se creen otros tamaños de imagen */
function ayudawp_desactiva_otros_medios_adicionales() {
remove_image_size('post-thumbnail'); // desactiva imágenes añadidas mediante set_post_thumbnail_size() 
remove_image_size('otro-tamaño-adicional'); // desactiva cualquier otro tamaño de imagen adicional
}
add_action('init', 'ayudawp_desactiva_otros_medios_adicionales');