Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

CSS of my Loop Element not loading on some pages

  • Hey!

    I am using GeneratePress and GenerateBlocks on all my clients’ website and this is the first time I see that.
    I use a Loop template for the blog archive pages, And on some archive page the style does not load, especially the images, but also font size, same in the sidebar (it’s also a Loop element).

    It supposed to look like this:
    https://blog.hippocratus.com/bien-etre/

    but on this archive it looks like this:
    https://blog.hippocratus.com/aller-plus-loin/actualites/

    So you know, it looks that the problem “moves”. For exemple, one week the layout is fine on one and not on another, next week it’s the other way around.

    I thought of a caching issue, but I disabled all caching plugins and deactivated the caching server as well. Nothing changes. I use the same server and pretty much the same setting on all my sites. Of course, I also tried to look for plugin conflicts, nothing changed. All GP and GB versions are up-to-date. This problem last for a couple of months now.

    I couldn’t find any solution, if you guys can give me a hand ? 🙂

  • Hi there,

    if you go to Dashboard > GenerateBlocks > Settings, and set the CSS Print Method to Inline
    And then clear any caches, plugin and server side, does that resolve the issue ?

  • Hi David, thanks for your quick answer.

    The CSS Print Method is already set to Inline.

  • Hmmm… do you know when that setting was changed to inline ( its the default setting ) ?

  • I have no idea. If it’s default, I may have never touched it.

  • No, it’s not the default. The default is the External File.
    Try switching the External File.

  • I switched to External file and regenerated the CSS file. Cleared cache. The issue is still here.

  • And if you temporarily disable any caching / security plugins ? Does the issue persist ?

  • Yes, when I disable all the plugins beside GeneratePress Premium and GenerateBlocks and GenerateBlocks Pro, the issue is still here.

  • Is there any server side page caching or op caching ?

  • I tried that also, disabled Redis, Object Cache Pro and Varnish, the issue is still here.

    I always use Cloudways (Vultur) and all the caching services with GP and GB on many sites, never had this issue.

  • It is odd.
    You can see that the content outside the loop is loading styles correctly. So we know that GB can see the page.

    But its not picking up the blocks in the Loop Template.
    Generally it’s a caching issue or some other some server setting that causes this. But generally its all the time affects everything kinda issue.

    So if it’s not caching – what else may be interfering with the query on that page ? Like how is the Category filter added to the sidebar ?

  • It’s a widget, like any other filter that we can find on ecommerce or blog. I use this filter plugin on all my sites, and I disabled it like all the plugins, the issue did not go away.

    But what is odd is why on some archive pages and not on others. They have the same settings and sidebar.

  • Yeah thats what makes it puzzling and difficult to debug. As it should not be isolated to specific category archives.
    If you install the Query Monitor plugin , does it report any issues on the problem archive page ?

  • I installed it:

    No issue, everything is green.

    But

    The page with the right layout loads 23 Styles, the one with the wrong one loads 22 Styles. I am missing the “core-block-supports” in the footer.

    Also, I just noticed that there is a link in the upper part of the page, the link of the first article. I don’t know why. It’s not supposed to be there. I don’t know if that helps.

    So you know I also tried to delete my custom CSS just in case. But still. Not working.

  • The post in that category has a classic editor section, can you convert it to block editor to see if it fix the issue?
    https://app.screencast.com/UFenDoMuPcRPm

Viewing 16 posts - 1 through 16 (of 18 total)
  • You must be logged in to reply to this topic.