I'm developing my own theme. I'm trying to remove the default WordPress image sizes medium, large and full. I also want my own image size,
vividflow-full-width. I'm using this Sumtips tutorial.
after_setup_theme, this is runt:
add_image_size( 'vividflow-full-width', 682, 9999, true );
And at the
image_size_names_choose action hook:
unset( $sizes['medium']); unset( $sizes['large']); unset( $sizes['full'] ); $myimgsizes = array( "vividflow-full-width" => __( "Full width" ) ); return array_merge($sizes, $myimgsizes);
However, at the insert media screen, I only see the option to insert a thumbnail. What's going wrong?
I'm sure the functions both codes are in are runt. I don't see any errors in my error log, nor get I any notices when setting