-
Notifications
You must be signed in to change notification settings - Fork 123
Fix all the previous / next navigation and pagination links #537
Comments
As @carolinan pointed out, this may be because the |
Thanks for the issue. Just to be sure I'm understanding this right: is this mainly about ensuring that pagination is included in the template, or is it something else or in addition to that? Pagination seems fine to add. Just want to be sure, because if there is incorrect markup to me that sounds like an issue to address with the Next and Previous blocks in the block editor directly. Or to put it differently, it doesn't seem like it should be possible for a block theme to create incorrect markup by simply using the blocks (except for using incorrect heading levels, but there we just have to be vigilant). |
I don't know if this is a bug with the block, but for the post navigation link block, I have not been able to make the Next and Previous label to show with the post title unless I enable the option "Include the label as part of the link". |
I opened two issues upstream: |
I think the main concerns of this issue have been fixed or reported upstream. Closing |
Description
Previous default themes established best practices for all the 'previous / next' navigation links, typically post navigation, paginated post navigation, comments navigation. I'm not sure I see those best practices in place in Twenty Twenty-Four and I'm wondering why.
nav
element.nav
element should also contain ah2
heading to identify the navigationPrevious
andNext
is not sufficient.Some markup examples from Twenty Twenty-One:
Posts navigation:
Comments navigation:
Paginated post:
Instead, in Twenty Twenty-Four:
a
elements withindiv
elements. No proper semantic and labeling to identify these navigational tools. This is a regression compare to previous default themes.Previous
andNext
. There is no sufficient contextual information to understand what these links are about. This is a regression compare to previous default themes.Additionally: I'm not sure I see actual pagination links, as in: Page 2, Page 3, Page 4 etc. I only see Previous/Next, Older Comments/Newer Comments.. I'm not sure whether this is a design choice or a block limitation but I'd think actual pagination linnk would improve the user experience especially when there are many posts and comments.
Step-by-step reproduction instructions
2012/01/template-paginated/
) and compare with Twenty Twenty-OneExpected behavior
All the navigation and pagination links markup to follow the besst practices established across the years in the previous default themes.
Screenshots
Pagianted post: I can't see any pagination links, thus the post content is not accessible:
Comments pagination links have only 2 linnks: Older and newer:
In Twenty Twenty-One there are pagination links:
The posts pagination in Twenty Twenty-One provides good contextual info:
While in Twenty Twenty-Four it's only Previous / Next.
Environment info
Additional context
The text was updated successfully, but these errors were encountered: