Archived topic
Logo and menu loading problem
23 replies · Started by Michalis on October 11, 2020
Can you activate the parent theme to test first?
Done. Looks like the problem disappeared together with the logo (?) and the menu is shifted.
But the loading issue is no longer there correct?
No it's not there anymore.
So it's something in your child theme that's causing the problem.
In this case I would recommend this:
- Download a blank child theme here and don't modify any of the existing content:
https://docs.generatepress.com/article/using-child-theme/#installing-a-child-theme
- Add your previous CSS and custom function back in one by one and determine which one is causing the issue.
Thank you so much Leo and the rest of the team! I'll give it a try and report back.
Sounds good :)
OK, after a lot of digging and tweaking in CSS and autoptimize it seems to be working better now. However, instead I get a white flash every time a new page is loading. That's only in chrome and I believe it's not a GP problem.
In more detail I changed the CSS code from:
/* Keeps menu bar in place!*/
#site-navigation.main-navigation.grid-container.grid-parent.stuckElement {
width: 100%;
}
to
/* Keeps menu bar in place!*/
#site-navigation.main-navigation {
width: 100%;
}
It seems to work better although I have no idea what I'm doing!
Glad to hear :)