Software Developer

Remove Gallery Settings Div From Image Upload Thickbox in WordPress

This code will remove the Gallery Settings div from the Image Upload Thickbox in WordPress.

Purpose: to not confuse clients with these gallery settings, if you don’t want them inserting galleries for some reason.


/****************************/
/*******  Remove gallery settings div from feature image upload thickbox **********/
/****************************/

add_action( 'admin_head_media_upload_gallery_form', 'isa_remove_gallery_setting_div' );
if( !function_exists( 'isa_remove_gallery_setting_div' ) ) {
    function isa_remove_gallery_setting_div() {
        print '
            <style type="text/css">
                #gallery-settings *{
                display:none;
                }
            </style>';
    }
}

See more: ,

By

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]