Doesn't seem to work with
-
Doesn’t seem to work with add_image_size when used with a child theme’s function.php using code like below:
/*---------------------------------------------*/ /* ADD CUSTOM IMAGE SIZES /*---------------------------------------------*/ if ( function_exists( 'add_image_size' ) ) { add_image_size( 'facebook-image-page', 470, 470 ); } add_filter( 'image_size_names_choose', 'insert_custom_image_sizes' ); function insert_custom_image_sizes( $sizes ) { global $_wp_additional_image_sizes; if ( empty($_wp_additional_image_sizes) ) return $sizes; foreach ( $_wp_additional_image_sizes as $id => $data ) { if ( !isset($sizes[$id]) ) $sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) ); } return $sizes; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Doesn't seem to work with’ is closed to new replies.