Make WordPress Core

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#46177 closed enhancement (fixed)

TwentyNineteen: Add "Read More" Link Text When Using Post Excerpts

Reported by: alex27 Owned by: metalandcoffee
Priority: normal Milestone: 5.7
Component: Bundled Theme Version: 5.0
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

The excerpts do not have a "Read more" link, but display a [...] instead. While excerpts are not widely used in TwentyNineteen, they do appear in archive pages.

Originally suggested ​here

Attachments (1)

46177.diff​ (1.2 KB ) - added by metalandcoffee 6 years ago.

Download all attachments as: .zip

Change History (6)

#1 @sabernhardt
6 years ago

  • Keywords needs-patch added

We may want to create a twentynineteen_excerpt_more filter, similar to the ​Twenty Sixteen filter.

Note: filters like that apparently are not compatible yet with the ​Latest Posts block (but the block editor issue needs fixing anyway for other themes' existing filters).

Last edited 6 years ago by sabernhardt (previous) (diff)

#2 @metalandcoffee
6 years ago

  • Milestone Awaiting Review → 5.7
  • Owner set to metalandcoffee
  • Status new → assigned
  • Version → 5.0

I created a patch for this. It's pretty much a direct copy of the excerpt_more filter function from the TwentySeventeen theme :)

@metalandcoffee
6 years ago

#3 @sabernhardt
6 years ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
6 years ago

  • Resolution → fixed
  • Status assigned → closed

In 49831:

Twenty Nineteen: Add "Continue reading" link for post excerpts.

This ensures that archive pages have a meaningful link text after the excerpts.

Props metalandcoffee, alex27, sabernhardt, mdrockwell, laurelfulford.
Fixes #46177.

#5 @SergeyBiryukov
6 years ago

In 49901:

Twenty Nineteen: Correct @since version for twentynineteen_excerpt_more().

Follow-up to [49831].

See #46177.

Note: See TracTickets for help on using tickets.