I have a similar problem with the Rascals Epron theme, in that I get a non-css formatted front page of my website along with “404 error” mixed in with the non formatted text. It’s not a big deal, I just switched Cerber to use a generic 404 error page in the settings. I’m more curious than anything about how to get the theme’s custom 404 page to appear.
Thread Starter
Nick
(@pilotnick)
Yeah I don’t know what’s wrong with Divi. It’s specific to the Divi Theme. We have a really nice 404 page and we want to use it. I hate to use the unformatted generic 404 in lieu of the nice custom 404 we have.
I’m hoping someone can provide a solution to get the plugin working with Divi.
Plugin Author
gioni
(@gioni)
Hi Nick!
The short answer: Unfortunately, there is no fast and workable solution for now. But the developer of the Divi theme can fix that issue.
The thing is, some themes try to adjust a page layout depending on what URL has been requested. That’s fine and normal. In the case of wp-admin a theme see it as an admin request. Why does a theme detects admin requests for a 404 page and tries to handle it in some wrong way? Everything depends on what was on the developer mind when she/he coded the theme. There is nothing wrong with detecting what part of WP is loaded, but if a developer of a theme implemented it in some not neat way that can be a cause of some issues, and as a result the theme are unable to render the 404 page for admin requests.
To be exact, a theme should not detect admin requests and render pages or load some stuff in a different way at all. Just because there is no reason for it.
The most common issue is that a developer doesn’t know how to load admin CSS styles and admin JS scripts correctly and we see a blank page or a non styled page. The only correct way is to use an admin_enqueue_scripts hook. Some developers just load admin stuff by checking for an admin URL. Some, not so less educated, use is_admin(). Both ways are wrong.
P.S. @avpman If you’d like to assist me with supporting the plugin and get some perks from it, drop me a message here with your contact email: http://wpcerber.com/support/