Homepage CSS keeps breaking down after a few hours

Waifu_tatyana

Elite Member
Joined
Apr 20, 2021
Messages
2,479
Reaction score
1,779
I recently changed the theme from Astra to Neve. I am also using a Gutenberg-based block generator for the site named "Spectra".
My homepage uses 3-4 blocks from Spectra. But after changing the theme the blocks keep breaking down and becoming all haphazard every few hours until I click on 'edit page' on my homepage which seems to restore the blocks.

What exactly is the cause?
 
I recently changed the theme from Astra to Neve. I am also using a Gutenberg-based block generator for the site named "Spectra".
My homepage uses 3-4 blocks from Spectra. But after changing the theme the blocks keep breaking down and becoming all haphazard every few hours until I click on 'edit page' on my homepage which seems to restore the blocks.

What exactly is the cause?
Make a child theme out of that theme. Apply all the css rules to the child theme’s style.css. That should fix it.
 
Cache is the problem. Clear the cache from CDN (Clouflare probably), from your site if you use caching plugin, from your browser ctrl + F5 (or some of plugins/addons for that)
 
Make a child theme out of that theme. Apply all the css rules to the child theme’s style.css. That should fix it.
For now, I did an asset regeneration flush on spectra. Will that work? I don't want to tweak the site's CSS.
Cache is the problem. Clear the cache from CDN (Clouflare probably), from your site if you use caching plugin, from your browser ctrl + F5 (or some of plugins/addons for that)
Site doesn't run on any CDN. Also, I did purge cache. It seems to be CSS issue
 
For now, I did an asset regeneration flush on spectra. Will that work? I don't want to tweak the site's CSS.
Yepp but as you said, this keeps coming back after a few hours. If you can identify the exact css code you had added for those blocks, you could just copy those css rules and paste it directly in the styles. This would be a permanent solution.

The correct way to do custom pages in WP is to use page templates. Perhaps look it up. It is pretty easy to implement.
 
Are you using official theme? Maybe some nulled/cracked ones got telemetry things, I dunno, just my guess.
 
Update your wp theme.
Check CSS and plug-in compatibility.
If not, need to adapt a new theme
 
Back
Top