Archived topic
White Flash While Page Loads
7 replies · Started by Josh on May 3, 2019
I am getting a white screen flashing on every page load. I tried disabling all of the plugins (except GM premium) and the white flash still occurs. With the GP child theme disable the flash goes away. Right now I have the child theme deactivated so the white flash doesnt happen.
Here's the gist of it below:
- Two website with the same theme and child theme active
- One experiences a flash of a white screen after the page loads
- We disabled all other plugins and the flash remains
- We disabled the child theme and the flash goes away
Hi there,
do you have any functions or stylesheets in the child theme?
no, they have all been commented out
If it's only happening with the child theme, it means something in the child theme must be firing.
Can you take a backup of your current child theme and then add a completely blank child theme? Then you can re-add things one by one until the flash comes back.
This is the code in the child theme - https://gist.github.com/joseph-farruggio/cefbb198788a20b114260132e2af0564
So when you remove that code, or use a blank child theme as Tom suggested, the issue no longer exists?
Correct
You're safe to remove that code from your child theme. Just be sure to leave this part:
<?php
/**
* GeneratePress child theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
That being said, that code definitely shouldn't be causing any issues. It shouldn't actually do anything at all unless you're using a RTL language.