Archived topic
Help with two pages displaying differently
6 replies · Started by Dustin on September 6, 2020
Hello,
I have two pages, both start with a container block, and inside that container is a headline block followed by a paragraph block. On one page the headline displays immediately below the page title, and the other page there's some separation between the headline and the page title.
Both pages are set up the same way as far as I can tell. Looking at the HTML, they seem identical.
What am I doing wrong here?
Hi there,
This container has 40px of padding all around:
https://www.screencast.com/t/vGxjXjJlb
And this one doesn't:
https://www.screencast.com/t/HdPcluj0H
Let me know if this helps :)
The one that doesn't display the padding is configured the same was as the one that does. Both containers should have 40px padding all around. Both pages display that way in the block editor but not on the live site.
I think I found the cause. I guess it's generating a css file specific to the page, which then has to be manually uploaded to the CDN via W3 Total Cache.
Is this css file something that's a result of using generateblocks or is it default WP behavior to generate a separate css file per page like this?
Hmm I don't think that's a GB issue.
Could it just be some caching not being cleared issue before?
GenerateBlocks is producing a page specific css file for each page, that's where the padding for the container is declared. Using W3 Total Cache with a "push" style CDN, that file has to be pushed manually to the CDN each time it's edited... and only as part of the "custom files" upload, which is quite slow as it captures a lot of files.
Not a bug, exactly, but I'd say an incompatibility between using generateblocks and using push style CDN with W3TC.
Anyway - thanks for the help. We can call this solved.
Sounds good thanks for the info!