#16922 closed enhancement (fixed)
Add class to "via" paragraph in press-this.php
| Reported by: | topdownjimmy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Press This | Version: | 2.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
15 years ago
- Keywords 2nd-opinion added
- Type feature request → 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
@
13 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.
#11
@
12 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Maybe "press-this-via" would be a more appropriate class name.