You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Query Loop & classic themes: when using the pagination dynamic behavior it breaks the styling of the whole page #69064
Using the pagination dynamic behavior breaks the styling of the whole page.
As a workaround, on the Query Loop advanced settings, the Reload full page option can be turned on to not use this dynamic behavior when loading other pages.
Step-by-step reproduction instructions
Activate a classic theme like Twentyseventeen/Pictorio
Create a new page
Add the Query block
Ensure the Query block has "Reload full page" turned off
Make sure you have the Pagination block added.
PS: Make sure you have posts/pages to render in the block.
Screenshots, screen recording, code snippet
Screen.Capture.on.2025-02-05.at.09-55-14.mp4
Environment info
Gutenberg 20.0.0
WordPress 6.7.1
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
Please confirm which theme type you used for testing.
It seems that if we disable "Reload full page" and navigate through the page, the styles are no longer applied. Also, based on the info I've gathered so far, it doesn't seem to be an issue with WP 6.7, but it does seem to be an issue with Gutenberg 20.2.
One thing I noticed, however, is that when I tested it on a .com-hosted site, some elements were missing styles:
Thanks, I see that too and I guess it's part of this issue.
Just for the avoidance of doubt, I'm still reproducing the problem using WordPress locally, including via WordPress Playground using both Firefox and Chrome.
Comparing the CSS of the header image element between a page after using the paginator (left) and before using it (right), I can see several differences.
Activity
nani-samireddy commentedon Feb 6, 2025
Hi @Robertght, I tried the same steps but not able to replicate it
Is there any specific/custom plugin or add-on you are using?
Screen.Recording.2025-02-06.at.11.52.12.AM.mov
dsas commentedon Feb 6, 2025
@nani-samireddy I can repro. The only plugin I have enabled is Gutenberg 20.2.0.
Looking at your video I suspect your Query Loop block has "Reload full page' enabled.
Screen.Recording.2025-02-06.at.09.38.02.mov
dsas commentedon Feb 6, 2025
I updated the repro steps to add:
nani-samireddy commentedon Feb 6, 2025
Hi @dsas,
I have Twenty Seventeen Theme, and updated the Query block with "Reload full page" off
I'm still not able to reproduce it
Screen.Recording.2025-02-06.at.5.53.35.PM.mov
dsas commentedon Feb 6, 2025
@nani-samireddy oh that's interesting. Which version of Gutenberg do you have?
nani-samireddy commentedon Feb 6, 2025
@dsas Gutenberg version 20.2.0
t-hamano commentedon Feb 6, 2025
I can't reproduce this issue either. Maybe there's some condition that needs to be met to reproduce it.
dsas commentedon Feb 6, 2025
@t-hamano I can't repro with Gutenberg disabled.
Here's my page content:
t-hamano commentedon Feb 7, 2025
@dsas Thanks for sending the info. Unfortunately, I haven't been able to reproduce it yet.
One thing I noticed, however, is that when I tested it on a .com-hosted site, some elements were missing styles:
d7b43bcdc0f548f2b3299ab7fb7f1f77.mp4
I suspect #68691 might be related.
@DAreRodz @luisherranz Do you know anything about this?
It seems that if we disable "Reload full page" and navigate through the page, the styles are no longer applied. Also, based on the info I've gathered so far, it doesn't seem to be an issue with WP 6.7, but it does seem to be an issue with Gutenberg 20.2.
dsas commentedon Feb 10, 2025
Thanks, I see that too and I guess it's part of this issue.
Just for the avoidance of doubt, I'm still reproducing the problem using WordPress locally, including via WordPress Playground using both Firefox and Chrome.
Comparing the CSS of the header image element between a page after using the paginator (left) and before using it (right), I can see several differences.
luisherranz commentedon Feb 10, 2025
Thanks folks, @DAreRodz has solved the bug in this pull request:
Feel free to reopen the issue if you are still having problems testing this in
trunk.