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)
- Random gradient background color
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to change CSS using jQuery?
- Angular: conditional class with *ngClass
- Remove class using jQuery
- How can I scroll to an element using jQuery?
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Set cookie and get cookie with JavaScript
- How do I change the background color with JavaScript?
- “Uncaught TypeError: Cannot read property ‘style’ of null at.. “
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- Bootstrap Dropdown menu is not working
- Change Background color (css property) using Jquery
- Using Javascript in CSS
- Set timeout for ajax (jQuery)
- How to generate a simple popup using jQuery
- How does the data-toggle attribute work? (What’s its API?)
- CSS height 100% percent not working
- How to change css property using javascript
- Use images like checkboxes
- Adding images to a Bootstrap Carousel with AJAX
- JavaScript Loading Screen while page loads
- Completely disable scrolling of webpage
- Angular: conditional class with *ngClass
- Bootstrap Dropdown menu is not working
- Setting background-image using jQuery CSS property
- Bootstrap Dropdown menu is not working
- What do curly braces in JavaScript mean?
- Angular: conditional class with *ngClass
- How do you Hover in ReactJS? – onMouseLeave not registered during fast hover over
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- Full-screen iframe with a height of 100%
- How to add multiple classes to a ReactJS Component?
- Change CSS of class in Javascript?
- How to print HTML content on click of a button, but not the page?
- Check if an element contains a class in JavaScript?
- Equivalent of jQuery .hide() to set visibility: hidden
- Bootstrap 4 Dropdown Menu not working?
- TypeError: $(…).modal is not a function with bootstrap Modal
- Why is the jquery script not working?
- How to do fade-in and fade-out with JavaScript and CSS
- TypeError: $(…).DataTable is not a function
- Change text on hover, then return to the previous text
- CSS Animation onClick
- Textarea Auto height
- Mixed Content Page: requested an insecure stylesheet error
- Why is marquee deprecated and what is the best alternative?
- Refresh/reload the content in Div using jquery/ajax
- How to write inside a DIV box with javascript
- How to get height of div in px dimension
- Crop the image using JavaScript
- Why write script type=”text/javascript” when the mime type is set by the server?
- Force div to be topmost element of any and all webpages
- Retrieve the position (X,Y) of an HTML element
- How to display raw JSON data on a HTML page
- “Uncaught TypeError: a.indexOf is not a function” error when opening new foundation project
- how to display a div triggered by onclick event
- Why is jquery show() not working in example
- jQuery scrollTop() method not working
- Set CSS property in JavaScript?
- Change an image with onclick()
- JavaScript – Count Number of Visitor for Website