Add custom css class to wp-list-table row for Media Screen

Using CSS Here is an example: .wp-list-table.media tr:has(.image-icon img[src$=\.webp]) { background-color: orange; } to target all rows in the media list table that matches the image icon source with a .webp file-ending. The secret ingredients in the CSS sauce above are: the :has() relational pseudo class, that enables us to target the parent of specific … Read more