-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content before the More button is truncated and unavailable if it's too long and if the excerpt is hidden on full page #44062
Comments
If the archive page is set up to show the excerpt, then displaying the excerpt is the intended behavior. |
👋 @carolinan
These two problems are related, but I'm not sure if it would be better to continue the discussion about the second point here, move it to #41854, or open a new issue altogether. |
I don't think it is an issue, you make a decision when you choose to add the block and enable or disable the option. |
I see your point and agree that users are the ones who decide to add a More block and enable the "Hide the excerpt on the full content page" option. The current behavior might not be an issue with the More block itself, but it can cause problems when used with certain themes. As pointed out, there are two different possible choices made by theme creators.
Ideally, the user would know how the theme handles archive pages and may adapt the content consequently. There are two problems, though:
As such, I still think that some improvements to the More block behavior would be useful. In case we agree that this is not an issue with the More block itself, then we should at the very least change the description of the More block to better explain when and how to use it, but I'm worried that such a description would be quite lengthy. In case, such a discussion might continue in the issue linked above. |
Description
When the More block is added to a post, only the content before it should appear on the archives page. This is true only if the content before the More block isn't too long: if it's long enough, it's instead truncated and only the beginning of it appears on the archive page (possibly, together with the "Read more link text" that can be set in the editor).
The problem is that, when one selects the option of the More block to "Hide the excerpt on the full content page", the truncated part of the content before the More block itself doesn't show anywhere in the front end.
I'm not sure what the expected behavior in this situation should be: either everything before the More block should appear on the archive page, independently of its length, or the truncated content should appear on the full content page, which can be complicated as the content can be truncated even in the middle of a sentence.
I tend to think that the expected behavior should be the former, as it would respect the choice of the content creator.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Here is a possible post that allows reproducing the bug.
This is the full content page: only content after the More block is displayed.
This is the homepage: the content before the More block is truncated and what follows appears nowhere.
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: