WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#52361 new defect (bug)

Twenty Twenty-One: "Continue Reading" link will only show if there is minimum amount of text before the "Read More" block

Reported by: mrfoxtalbot Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.6
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

## Description

Unless there is a certain minimum amount of text before the "Read More" block, the "Continue Reading" links will just now show on the public site's homepage (set to posts), or archives (I tried category, author and date)

## Step-by-step reproduction instructions

  1. Create new page or post
  2. Add a paragraph block with just few words (two lines or less)
  3. Add a "Read More" block beneath this short paragraph
  4. Add more content after the "Read More" block

## Expected behaviour

I would expect to see the "Continue Reading" link.

## Actual behaviour
There was no "Continue Reading" link, despite the fact that the post was truncated and there was more content.

## Screenshots

When using a 3 or more line paragraph before the "Read More" block (this is the expected behaviour):

When the content before the "Read More" block is too short (no "continue reading" link):

I initially noticed this with a theme called [Healty Living](https://wordpress.com/theme/healthy-living) and thought this was coming from the "More block" itself, but then I noticed that this was not happening with previous bundled themes:

## WordPress information

  • WordPress 5.6 running Twenty Twenty-One theme.
  • Gutenberg Version 9.8.1
  • Are all plugins except Gutenberg deactivated? YES
  • Are you using a default theme (e.g. Twenty Twenty-One)? YES

The error happens both with and without the Gutenberg plugin, as well as on WordPress.cmo sites.

## Device information
Desktop
MacOS 10.13.6
Google Chrome 88.0.4324.96

Attachments (6)

Screen Shot on 2021-01-25 at 14:59:58.png (348.3 KB) - added by mrfoxtalbot 3 months ago.
Screen Shot on 2021-01-25 at 14:59:45.png (592.6 KB) - added by mrfoxtalbot 3 months ago.
Screen Shot on 2021-01-25 at 15:19:44.png (910.3 KB) - added by mrfoxtalbot 3 months ago.
Screenshot 2021-01-25 222921.png (23.7 KB) - added by cprgolds 3 months ago.
Screenshot 2021-01-25 223210.png (37.0 KB) - added by cprgolds 3 months ago.
Screenshot 2021-01-25 223022.png (32.9 KB) - added by cprgolds 3 months ago.

Download all attachments as: .zip

Change History (9)

#1 @mrfoxtalbot
3 months ago

Here is a possibly related issue affecting excertps

https://core.trac.wordpress.org/ticket/52197

#2 @cprgolds
3 months ago

Interestingly, I also tried this and it seems to work as expected if the text blocks are classic paragraphs, but as reports with paragraph blocks. Images attached.

#3 @SergeyBiryukov
3 months ago

  • Summary changed from "Continue Reading" link will only show if there is minimum amount of text before the "Read More" block to Twenty Twenty-One: "Continue Reading" link will only show if there is minimum amount of text before the "Read More" block
Note: See TracTickets for help on using tickets.