Query pagination does not output paged and paged-number body classes #34898
Labels
[Block] Query Pagination
Affects the Query Pagination Block - used for pagination within the Query Loop Block
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
In a PHP based theme the
<body>
includes the CSS classespaged
andpaged-number
(paged-2) on archive pagination.With the query and the query pagination block, these body classes are missing.
One use case would be to have a blog with one query for sticky posts, and one for regular posts, with different designs and inner blocks. And then hide the sticky posts on next pages.
I am now solving this by adding the body classes myself if the current url includes `?query-2-page'
But this means I have to change the query in my hack depending on which query id is used for that site or theme.
What is your proposed solution?
Somehow detect the pagination and add the body classes.
Related:
#32531
The text was updated successfully, but these errors were encountered: