Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have been trying to find out for a while now if there is a way to totally change the look of the pop up media uploader.

How can I alter the content and the layout of that page? Which hooks should I use, and will that be forwards compatible?

share|improve this question
add comment

1 Answer 1

As starting point there is this action that allows inserting CSS and Javascript into the upload window.

add_action( 'admin_head-media-upload-popup', 'wpse_70750_style_upload_iframe' );

function wpse_70750_style_upload_iframe() 
{
    ?>
    <style type="text/css">
        #media-upload, #media-upload .media-item .slidetoggle { background-color:#555 }
    </style>
    <script type="text/javascript">
        jQuery(document).ready( function($) {
        });     
    </script>  
    <?php
}

Other Q&A's that use this hook may be interesting.

Then, you may dig into the core file /wp-admin/includes/media.php and investigate all do_action and apply_filters that are available.

share|improve this answer
    
great thanks. where should i place this code? –  Paul Oct 28 '12 at 21:54
    
It could go in the theme's functions.php. But this kind of snippet is better placed in your own plugin, so it's theme independent. Just create a PHP file, add a header information in it, place in the plugins folder and activate. –  brasofilo Oct 28 '12 at 23:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.