I've added a Thickbox to an admin page by adding the the following action hook to add the library code
add_action( 'in_admin_footer', function(){
add_thickbox();
});
And then triggering an inline thick box manually via some javascript code
tb_show(null,'#TB_inline?height=300&width=300&inlineId=id_of_div_with_my_thickbox',false);
When I do this, the thickbox has some margins/padding on the left and right (see in screenshot below how everything is centered)
I'd like to
- Remove these styles for everything is flush against the Thickbox (as a style reset)
- But only for my Thickbox.
Re: #2 -- This is something for a plugin that's going to be on many admin backend pages. I know I can target the id=TB_ajaxContent
div to change the style -- but this runs the risk of breaking other Thickboxes added to the system
Is there known science for this in the Wordpress community? Or am I on my own as a plugin developer to create this functionality myself?