Advertisement
brasofilo

WPSE 59182

Jan 2nd, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement