Hiding an Element on Certain Pages

Can anyone tell me why my code is causing the menu to hide on all pages instead of just the blog page? I have added the code as instructed on the blog page only. I please take a look at the error that I am receiving.

Thank you!

Wish I could help but I’m having the same problems. It seem a very simple setup according to the link. Pulling whats left of my hair out with wix!!