[wp-trac] [WordPress Trac] #61990: Target media library svg images
WordPress Trac
noreply at wordpress.org
Thu Sep 5 11:00:18 UTC 2024
#61990: Target media library svg images
-------------------------+-----------------------------
Reporter: neo2k23 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Is it possible to add a class to the images that has the file extension of
the image in the media library when viewing the image in the admin area?
This way we can write css to target f.e. all .svg images to go full size
when viewing them in the admin area.
It is simply not possible now to target images by css in the admin area it
always applies to all images.
so we get
{{{
<img class="details-image svg" src="https://mywebsite.com/wp-
content/uploads/2022/11/Process.svg" draggable="false" alt="">
}}}
Thank you
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61990>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list