Better support for theme sizes @ functions.php
-
Hi, this is a kind of must have plugin, but while this should be included as WP core functionality, I like to keep things clean, thus avoiding plugins …
So I used your PHP code exported and placed in my child functions.php file. It works, but only for the plugin sizes, not for the theme sizes (Divi theme in my case).
I found the way to resize the medium-large image
update_option( 'medium_large_size_w', 750, true ); update_option( 'medium_large_size_h', '', true );
but the same code didn’t work for my theme sizes.
I’ve also realized that these Woocommerce images are not resized, either from the plugin interface or using the code :
add_image_size( 'woocommerce_gallery_thumbnail', '125', '125', true ); add_image_size( 'shop_thumbnail', '125', '125', true );
Would you have any suggestions, especially for the theme sizes ?
- The topic ‘Better support for theme sizes @ functions.php’ is closed to new replies.