I have searched here and elsewhere on this but did not come up with a definitive answer.
Your suggestion to me to use a hook to remove the <header> instead of using CSS to hide it (display: none) is what prompted me to ask.
There has been a lot of talk about what is the acceptable method to do this when creating these areas (header and footer) using a page builder. The focus of concern seems to be the schema.org markup with itemprop for these areas.
So I guess the question is then: which is better – hide with CSS or remove with hook, or does it make a real difference ?
BTW – can’t wait for 1.3 tomorrow! YAY! 🙂
Tutorials and tips for GeneratePress, WP Show Posts, WordPress and Elementor
Hiding the header with CSS could cause SEO issues if Google feels that you’re hiding text from users and targeting it towards search engines. Although I believe they’ve confirmed that display:none is generally pretty safe.
Losing the schema markup does make a difference to how search engines view your website.