Opened 2 years ago

Last modified 22 months ago

#16922 new enhancement

Add class to "via" paragraph in press-this.php

Reported by: topdownjimmy Owned by:
Priority: normal Milestone: Awaiting Review
Component: Press This Version: 3.1
Severity: normal Keywords: has-patch 2nd-opinion
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 (1)

press_this_via.diff (480 bytes) - added by topdownjimmy 2 years ago.
Added "press-this-via" class to the via paragraph

Download all attachments as: .zip

Change History (6)

Maybe "press-this-via" would be a more appropriate class name.

Added "press-this-via" class to the via paragraph

Attached patch to include class "press-this-via" to the "via" paragraph.

  • Keywords has-patch added
  • 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.

Related: #16935

Note: See TracTickets for help on using tickets.