#16795 closed enhancement (wontfix)
Add `wp-image` to images in posts
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
Currently an image in in a post has the class of "image-SIZE wp-image-INT" to something like "wp-library-image image-SIZE wp-image-INT" so we can have a class for all images inserted into a post so we don't have to awkwardly code CSS for the various image-SIZEs
and the wp-image-INTs
.
Attachments (2)
Change History (7)
#2
@
14 years ago
- Cc knut@… added
I have no problem selecting all images within posts by CSS. Like this, for Twenty Ten:
.entry-content img {}
#3
@
14 years ago
Mainly I wanted a way to automatically style images from my wordpress media library while ignoring plug-in images in the content area.
#4
@
14 years ago
- Resolution set to wontfix
- Status changed from new to closed
Hi Cyberskull,
I can understand that you might want to have that to more easy create your theme or modify your homepage. However the feature you request is rather trivial to do, I've added a plugin that you can use (tested with PHP 5.3.5) that does the job.
Additionally there is a patch that modifies media.php with what you asked for.
If in future you have a problem with your site and you do not know how to do something, please first talk with other worpdress users, e.g. in the support forums or sites like wordpress answers. It's not that I want to prevent you from opening a ticket but it's not always clear upfront if a certain issue demands a ticket or can be solved individually with a plugin and in case there is more demand over time could become part of wordpress.
I'm sure that you would have found a solution for your problem on the bespoken sites pretty quickly.
So please do not feel offended if I close now the ticket. If you think it's really a bummer, you can consider re-opening it. But for now I would rate this as plugin-material.
Additionally: This is not a fix, but as long as CSS 3 is an option for you, you can make use of attribute susbtring selectors probably.
Within a theme you can use other CSS rules for that, such as '#content .post img'.