using add_image_size removes image size from “Edit crop formats” page
-
I am using WooCommerce for my site. I need to change the crop method and size for some built-in images. In order to do that, I added this snippet to functions.php.
function override_image_size_settings() { add_image_size( 'shop_single', 600, 750, false ); add_image_size( 'shop_catalog', 450, 600, array( 'center', 'top' ) ); } add_action( 'init', 'override_image_size_settings', 11 );
This removes those images sizes from the list available on the page that says “Edit crop formats from full image” at the top.
I have also tried adding the function above with this call:
add_action( 'after_setup_theme', 'override_image_size_settings');
I have tried both “add_action” calls with and without the priority of 11.
If I comment out the “add_action” the image sizes appear immediately and can be edited without a problem. I love this plugin. I hope this is something that can be addressed easily. Please let me know if there is any information that I did not provide that would be helpful.
Thanks,
Swani
- The topic ‘using add_image_size removes image size from “Edit crop formats” page’ is closed to new replies.