Custom Image Size not showing
-
Hi
my wordpress attachment display settings not showing
I have a custom theme and in my functions file, I created new image sizes but when I upload a new image in wordpress, I am unable to choose my image size from a list?!here is what I added to my functions.php
if ( function_exists( 'add_image_size' ) ) { add_image_size('header-slider', 1280, 500, TRUE); // header Slider add_image_size('welcome-image', 790, 9999, TRUE); //210 pixels wide (and unlimited height) add_image_size('category-block', 600, 524, TRUE); // category block add_image_size('gallery-thumb', 368, 368, TRUE); // gallery thumb } /* Display Custom Image Sizes */ add_filter('image_size_names_choose','wpshout_custom_sizes'); function wpshout_custom_sizes($sizes){ return array_merge($sizes, array( 'header-slider' => __('Header'), 'welcome-image' => __('Welcome'), 'category-block' => __('Category'), 'gallery-thumb' => __('Gallery'), )); }
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Custom Image Size not showing’ is closed to new replies.