Make WordPress Core

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#46177 closed enhancement (fixed)

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

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

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 3 years ago.

Download all attachments as: .zip

Change History (6)

#1 @sabernhardt
4 years ago

  • Keywords needs-patch added

We may want to create a twentynineteen_excerpt_more function, 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).

Version 0, edited 4 years ago by sabernhardt (next)

#2 @metalandcoffee
3 years ago

  • Milestone changed from Awaiting Review to 5.7
  • Owner set to metalandcoffee
  • Status changed from new to assigned
  • Version set to 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
3 years ago

#3 @sabernhardt
3 years ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to 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
3 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.