You can use this for a custom stylesheet. Copy and paste all the CSS from the original thickbox.css
in your custom stylesheet.
Now you can edit your custom CSS and add the code below in your plugin.
function get_thickbox() {
// Add the original thickbox
add_thickbox();
// register your custom stylesheet
// Make sure its in your speciefied folder!
wp_register_style( 'thickbox_css', plugins_url( 'pluginname/stylesheet.css' ) );
// enqueue our new stylesheet
enqueue_style( 'thickbox_css' );
}
add_action('wp_enqueue_scripts', 'get_thickbox');
// Thats it!
// You can now reach your customized thickbox by:
get_thickbox();
Related Posts:
- What are the standard admin CSS id/class tags?
- WordPress admin stylesheet
- This CSS Stuffing Works, But Is This A Good Practice?
- How do I load a CSS style into WordPress admin area only?
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Load plugin scripts and styles only on plugin page
- Set Featured Image programmatically (in admin) with JavaScript?
- Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area
- Thickbox hacking – removing fields
- How to fix admin stylesheet muck-up? [closed]
- Custom CSS In Admin Only For Certain Roles
- How can I include JavaScript that use jQuery on admin side
- Modify CSS via Theme Control Panel
- custom tabs in media uploader
- Javascript not working in admin
- Refreshing collections in the admin media manager
- Why are my styles being applied to the admin area?
- wp.template() Not a function
- Adding another “Add Post” button to admin
- wp-admin post.php JavaScript Links Not Working
- Custom Thickbox Broken on Dashboard Page?
- Plugin admin panel JavaScript Broken
- Activate Gallery Options in Media Uploader for Custom Usage
- Enqueue and Dequeue from admin bar nodes
- admin_enqueue_scripts the same css file as wp_enqueue_style
- Fixed layout for admin section
- WordPress admin toolbar not loading styles after migration
- admin_enqueue_scripts not rending JS file correctly
- Why does Thickbox jQuery load on my site?
- Black admin bar is being hidden by page elements
- Add JavaScript in admin in custom plugin [duplicate]
- Custom Jquery in admin breaks media-upload script
- Enqueue script throws error in console
- Scripts are not called until I login from wordpress backend
- How to fix broken admin Thickbox?
- send information from the thickbox image uploader second tab
- Failed to load resource: the server responded with a status of 404 (Not Found)
- Use images like checkboxes
- Angular: conditional class with *ngClass
- CSS Animation onClick
- Where in WP can I check history or log of updates of plugins etc?
- How does admin-ajax.php work?
- Solutions for generating dynamic javascript / CSS
- Disable SSL / HTTPS for wordpress
- Can an admin check passwords of registered users?
- WordPress 5.5 – ReferenceError: commonL10n is not defined error
- Prevent author from changing their posts if admin has modified
- Can I set a default dashboard layout for all users?
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- Customize the upload screen
- How to print the output of the get_num_queries function from frontend to backend?
- Downloading entire site locally with httrack
- add_submenu_page set for multiple roles [duplicate]
- Adminstering Large Number of WordPress Sites
- How To Create User Specific Admin User Pages?
- Adding markup to column text in “Edit Pages” admin page
- Disable HTML (Text) Tab in Post Editor
- Admin: global $post empty
- Change home-url in dashboard
- Write text below a specific part of a sentence
- How to restrict the editors from viewing/editing pages created by admin?
- Admin multiple column sorting
- How do I add a contact form?
- Is there no admin ui guide for 4.x?
- Unable to login, old site with previous developer gone
- Slider loading issue
- How to default display name to first name and last and disable the profile field
- How can I show the contents of only a few users
- Locked out of admin and some pictures don’t show after failed SSL installation
- How-to turn off mobile admin mode?
- How can I make the user names of commentors clickable links to the user’s profile from the admin comment screen?
- Grabbing the first image attached to a post and use it with the admin columns
- Keep Logged in Users out of Admin Panel
- Howto use WP built in Thickbox for images?
- Is there a wp-config.php option or constant that I can set to allow me to download nightly / beta builds?
- I can’t access the login panel on my offline website
- Admin login not working
- Live reload preview just reloads forever
- Hide admin notice when user profile updated
- current_user_can(‘administrator’) not working in custom login
- How to insert HTML/CSS/JS into my iframe plugin?
- Help! I changed the domain and now I can’t log in via admin online
- Username was changed to “admin”
- custom css and javascript not working on page defined as template?
- wordpress – add a custom admin section with fields for name, address, city,state, and photo upload
- Best way to reset some admin options form to default?
- Authorize subdomain to access and read user and admin cookies
- How can I hide this custom slider while Elementor editing window is open?
- WordPress Admin Page
- Change the version of default style.css in wordpress
- Only a small portion of my export page renders
- require/include php file in add_menu()
- Bring Font Awesome icons inside menu A tags
- Can you check if https is enabled on frontend from admin
- Different role for free and pro users in wordpress without using bbpress
- WordPress login not working
- Calculate and save an average in a meta
- 2FA for admin login only, is it doable?
- Add a user to edit the layout of a site