Support » Developing with WordPress » Possibility to choose image size in editor block image&text

  • I can use code below to add possibility to choose image size for block “Image” in post editor

    add_filter('image_size_names_choose', 'true_new_image_sizes');
    function true_new_image_sizes($sizes) {
    	$addsizes = array(
    		"1_column" => 'Half size image'
    	);
    	$newsizes = array_merge($sizes, $addsizes);
    	return $newsizes;
    }

    But if I make new block “Image and Text”, I can’t see any possibility to choose image size. And editor use original (big) size for image.

    • This topic was modified 2 months, 1 week ago by  Jan Dembowski. Reason: Fixed formatting
  • You must be logged in to reply to this topic.