Remove featured post image if size is smaller than..
-
Hi,
I am a php and wp rookie. I appreciate any help !
1) I want to remove featured post image and all its thmubnails (on single post, main page, just remove it completely) if the size of the image is smaller than (criteria: dimensions or KB, whatever).
How to modify this code in the function.php ?
add_action('do_meta_boxes', 'change_image_box'); function change_image_box() { remove_meta_box( 'postimagediv', 'post', 'side' ); }
2) It would be perfect to add a default image for the removed small featured images.
Please help
@gorakhsth
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove featured post image if size is smaller than..’ is closed to new replies.