How can I modify the size at which images in the media library are displayed when viewing the media library?

I use a function to disable generation/modification of images, and manually edit to 750x250px then upload.
When viewing the media library, I want them to display in this rectangular format (although smaller than actual) rather than the default square.

1 Answer
1

A quick look at the media page with Firebug shows that this CSS statement will allow you to change the size of the picture:

.media-frame-content[data-columns="9"] .attachment {
width: 11.11%;

}

Change the ‘width’ value to something different, with the understanding that the change may affect how the page looks on different size screens.

You should put your modified CSS in the styles.css of a Child Theme, since any updates of WP or the theme (which might have their own media page) would cancel out your changes.

Leave a Reply

Your email address will not be published. Required fields are marked *