Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

WPSE 59182

By: brasofilo on Jan 2nd, 2013  |  syntax: PHP  |  size: 0.65 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. add_action( 'admin_head-media-upload-popup', 'make_media_thumbs_bigger' );
  2.  
  3. function make_media_thumbs_bigger()
  4. {
  5.     ?>
  6.     <style>.media-item.preloaded{height:180px !important}</style>
  7.     <script type="text/javascript">
  8.         jQuery(document).ready( function($) {
  9.             $('#media-items img').each(function(){
  10.                 $(this).attr('width','150').css('max-width','100%');
  11.                 $(this).attr('height','150').css('max-height','100%');
  12.             });
  13.  
  14.            $('#media-items .media-item.preloaded').each(function(){
  15.                 $(this).css('height','380px');
  16.             });
  17.         });    
  18.     </script>
  19.     <?php
  20. }
clone this paste RAW Paste Data