Archived topic
Css not applied for frontend, except you are logged in
12 replies · Started by tita on September 3, 2021
Hi, funny situation.
Site looks perfect when im logged in as admin, but site does not apply css for the frontend when not logged in.
For example. Css when im logged in
.gb-container-b5d8313b {
background-image: url(/wp-content/uploads/2020/10/Matschner300dpi-1-1.jpg);
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
min-height: 630px;
}
Css when im not logged in
- no css -
Also for sure, no background image and and and
More funny, looks like this is the only site where it happens.
Can you help me out?
Hi there,
i checked the URL you provided both Logged in and Logged Out.
And i do not see any difference. All CSS is being loaded when logged out.
Can you try checking the site in an Incognito/Private browser ?
Also in icognito-mode. And only this site. Please try this site, once logged in, once logged out. Thank you.
Can you go to Dashboard > GenerateBlocks >> Settings and try Regenerate CSS.
Check after clearing browser caches.
If it still doesn't work, then Dashboard > GenerateBlocks >> Settings change the CSS method to Inline CSS.
Tried both, but none of them work.
oh, now i tried to put in a featured image, cleared cache again, and now -
looks like it should look like. ;)
Thanks.
oh, now this specific site works, but all others are destroyed.
Now: updated to wp 5.8, updated all plugins, still not working.
Somethings wrong with css from gp.
ok, looks like there is some conflict with gutenbee blocks and generatepress blocks.
Do you have any idea which blocks works better than the gutenbee. Need some blocks for:
Post types
Accordion and Tab
Icon list
Post Types - i still go with WP Show Posts, it still requires shorcodes today, but its solid.
Accordion and Tabs - i believe a lot of users go with Kadence Blocks.
Icon List - generally i just use the GB Headline Block. You can repeat a block over as many times as required to create a list.
Thank you.
You're welcome
So, after several indications finally found the problem. I have wp-rocket-cache options for the website. And the box - minify and compress CSS - was active, so the site missed some styles from GP. Now deactivated and everything is fine.
Glad to hear you found the solution!!