In a PHP based theme the <body> includes the CSS classes paged and paged-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.
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: