Skip to content

Instantly share code, notes, and snippets.

@siayi
Created March 24, 2016 04:09
Show Gist options
  • Save siayi/0131608100906071e47d to your computer and use it in GitHub Desktop.
Save siayi/0131608100906071e47d to your computer and use it in GitHub Desktop.
this is the code to prevent the "duplication"
add_action('after_setup_theme', 'remove_custom_thumbnails', 30);
function remove_custom_thumbnails(){
remove_image_size('tc-rectangular-size'); //or uncheck the proper option
remove_image_size('tc-thumb');
remove_image_size('slider-full');
remove_image_size('slider');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment