Why can't Google see content on my live website?

Good day,

We are having trouble for a couple of weeks now with google and i’m hoping one of you can help me out.
Since a while Google is giving the error they couldn’t read our website and everything is blocked. What google is saying: We don’t see any content on the page only footer and header menu are available.

The website is of course live and working. I get the feeling something is not being crawled the right way at their end. Does somebody has any idea how to fix this? I really need to fix this ASAP.

Website → www.croom-sanitair.nl

Hey @sanderdame

It’s basically because the main content of the site is loaded by a script and it isn’t in the document without running javascript.

Google’s crawler bot is capable of read the javascript generated content but it’s not the best thing you can do to your SEO.

Here’s a quick video about what the crawler sees: https://share.getcloudapp.com/nOu9mNL6

It’s because there’s this code block in your page (I formatted and decoded it for you):


What this does is hiding all the page content when the Lighthouse, GTmetrix and some other (X11?) type of bots are trying to benchmark your site.

I’m not sure why would this be good and what app or who did this change in your theme file.

Try to get rid of that script in the tag and simply include the main content in it and it should be fine.

Feel free to ask if you stuck.

1 Like

Thank you very much on helping my out and it seems like you found a solution!
Can you tell me where in the code I can find this part? I can not find it myself at this moment.
I’m running the brooklyn theme for the website now.

When found, should I delete it? Or replace it with your code?