Comments Piotr started the conversationJune 14, 2018 at 7:39pmHello,I would like to remove a few sizes of thumbnails, but I would like to do it in child theme function.php.In woocommerce forum i found this:add_action('init', 'remove_plugin_image_sizes');function remove_plugin_image_sizes() { # remove_image_size('thumbnail'); // Wordpress (used by the media librairy to display thumbs) remove_image_size('wide'); // Wordpress remove_image_size('wide_small'); // Wordpress remove_image_size('regular'); // Wordpress remove_image_size('regular_small'); // Woocommerceand this is exactly what I need, only for the Salient theme. Thank YouBestPiotr 9,649Tahir repliedJune 15, 2018 at 5:38pmHey Again,Try Overriding this :http://prntscr.com/jvf21t .Best Salient Support Team Shocompl repliedJuly 4, 2018 at 12:41pmThank you. However, your solution concerns the main template files. I want to overwrite it using Child Theme. 9,649Tahir repliedJuly 4, 2018 at 12:47pm@sho,You can override that function in Child theme as well .Best Salient Support Team Sign in to reply ...
Hello,
I would like to remove a few sizes of thumbnails, but I would like to do it in child theme function.php.
In woocommerce forum i found this:
add_action('init', 'remove_plugin_image_sizes');
function remove_plugin_image_sizes() {
# remove_image_size('thumbnail'); // Wordpress (used by the media librairy to display thumbs)
remove_image_size('wide'); // Wordpress
remove_image_size('wide_small'); // Wordpress
remove_image_size('regular'); // Wordpress
remove_image_size('regular_small'); // Woocommerce
and this is exactly what I need, only for the Salient theme.
Thank You
Best
Piotr
Hey Again,
Try Overriding this :http://prntscr.com/jvf21t .
Best
Salient Support Team
Thank you. However, your solution concerns the main template files.
I want to overwrite it using Child Theme.
@sho,
You can override that function in Child theme as well .
Best
Salient Support Team