#16922 closed enhancement (fixed)
Add class to "via" paragraph in press-this.php
Reported by: | topdownjimmy | Owned by: | |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 2.6 |
Component: | Press This | Keywords: | has-patch |
Focuses: | Cc: |
Description
When using "Press This," a paragraph is added to the bottom of the post with a link to the source, and, if there is a selected block of text being quoted, the word "via" prepended.
It would be helpful for themes to be able to style this paragraph, so I suggest adding a class to it such as "via".
Also, oughtn't this be wrapped in a <cite> tag as well?
Attachments (2)
Change History (16)
#4
@
13 years ago
- Keywords 2nd-opinion added
- Type changed from feature request to enhancement
No <cite>, see #17520.
Can't you add it via the HTML Editor? Also if you switch the <p> tags and the class are stripped. Maybe add it to the <a> tag directly.
#6
@
11 years ago
I'm going to propose the same solution as in #16935 which is to add a filter. This would let the user or theme author alter the html around the source $url.
#9
@
11 years ago
- Milestone changed from 3.7 to Future Release
Same concern with latest patch as in #16935.
#11
@
10 years ago
FYI: The Press This plugin working on the rehash of the feature added a class to the paragraph tag wrapping the attribution line via https://github.com/MichaelArestad/Press-This/commit/2ff1b2381271bd8c812211d5f0cb9a139d0f8ec5
The feature plugin also uses the cite tag.
Once merged with core, those changes should resolve this ticket.
Maybe "press-this-via" would be a more appropriate class name.