Parent Theme Briefly Visible
-
I have a wordpress site setup running a child theme. Occasionally when a page is loading for a fraction of a second you can see the parent theme (especially on the first load of a page after the browser cache is cleared).
I have fixed this by placing two pieces of CSS:
One at the start of the first style sheet to load (style.css in the parent theme):body { display:none; }
And one at the end of the last(style.css in the child theme).
body { display:inline; }
So the page isn’t visible until all style sheets are loaded and no flash of parent theme occurs.
This seems to work great but I’m just wondering if this method is advised or if there is a better one? Are there any SEO implications – will Google see this as black hat?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Parent Theme Briefly Visible’ is closed to new replies.