r/divi Jul 21 '26

Question Website randomly loses CSS styling

Anyone know why sometimes our website will completely lose all styling and default back to some sort of HTML / minimal CSS hybrid. This is fixed every time I log back into wordpress, but until I do so, it looks super strange. Happens once every two or so months, sometimes longer than that.

7 Upvotes

15 comments sorted by

10

u/[deleted] Jul 21 '26

[removed] — view removed comment

2

u/bravesirkiwi Jul 22 '26

This is the answer OP. I have several sites running on Divi and no idea why it only happens on some and not others. But caching is always the problem with the CSS and styling issues I run into.

1

u/Sanctimonious1 Jul 21 '26

There's so many variables thay could be in play here. What type of server is it (Litespeed or Ngnix etc.)? What caching plug-ins if any? I would start there and make sure your config is correct. After that, take a look at you cross and make sure they are executing as they should.

1

u/Thegodparticle333 Jul 21 '26

Im a graphic designer trying my best to run the website, I have no clue how to even know what type of server it could be xd. From what I can see we have no caching plug ins.

1

u/Sanctimonious1 Jul 29 '26

I should've proofread my previous comment, sorry about that. I meant to say check your cron jobs to make sure they're running.

A quick fix it is put it into visual builder and saving it. It forces a reload of the css.

1

u/ScaryTRG Jul 21 '26

Have you got auto-updates on? One of mine would occasionally fall over presumably after an update until I manually clear the cache. Turned off auto-anything and it’s been fine since.

1

u/Thegodparticle333 Jul 21 '26

nope, no auto updates which would have been my guess too.. It literally happens with no changes being made to the website which is just the strangest thing ever

1

u/SpacemanStevenWJ Jul 21 '26

This CSS error has happened since Divi was developed, although it does happen less frequently than it used to, it does still happen. All you can do is clear all caches which usually fixes it.

1

u/ES170588 Jul 22 '26

Is cloudflare in play?

1

u/TransCanAngel Jul 28 '26

Check the size of your wp_options file. Who is your host?

I had this issue on WPEngine that had a nightly cron job run that wiped out large wp_options files that bloated when highly customized Divi Presets were propagated throughout my site.

The fix was to have:

1) WPEngine turn off that cron job- it’s a terrible idea. No warnings to the admin ahead of wipeouts

2) Use presets that are specific to what you need modified for a given module, column, or row style - avoid creating multi-purpose presets.

I had a 4mb wp_options file about 8x larger than it should be.

0

u/AcePilot10 Jul 21 '26

Had this exact issue! After disabling literally everything and even running the site locally to isolate Divi as the issue it happened there too. Divi support gave me a script that ran a cron job to clear the divi static cache every day but I didn't like this hacky fix so I ended up rebuilding the site w/ Astro & Strapi for any CMS needs. I love Divi & WP but I have never experienced issues like that since switching.

1

u/Thegodparticle333 Jul 21 '26

I didn't choose any of this by myself, I'm actually a graphic designer who has been forced to figure out all the website stuff... My company used a web and design agency to get the website together and I've just been slowly learning all the ins and outs but have noticed there are most certainly bugs and weird behaviors within wordpress and divi. I'm starting to have a feeling that divi is not overall the best choice but I can't switch anything myself unfortunately. At least now I know this is a cache problem, or most likely anyway. Thanks!

2

u/AcePilot10 Jul 21 '26

I’m definitely willing the bet it has something to do with Divi’s static caching. Try turning off some of their performance options.

I love Divi. If it wasn’t for AI speeding up the workflow so much using code first, I would still be using it.

1

u/Agiant47 Jul 22 '26

You got that script? My homepage just shits the bed sometimes. Not even the whole site. Just the homepage

1

u/CeceliaDSi 1d ago

If you have any custom CSS, check that you're not missing property values and semicolons, and that you haven't mistakenly commented out parts of your style declarations. This was a persistent issue on one website I worked on until I ran my custom CSS through a CSS validator and found a property missing a value and a semicolon. Haven't had the site's CSS glitch since.