'whiteHeader' error: unexpected token

Hi there,

Yesterday I got in touch with Wix support in regards to an error I keep receiving when I add code. One of the elements I would like to have on my site is found on YouTube: Wix Code | How to Create a Frozen Header That Changes as Visitors Scroll - YouTube

However, when I add the code, I receive an error message (image attached), and the header completely disappears.

I removed header strips, removed the code and all onViewPoint on the properties panel and restarted the whole process again, however, when I followed the entire tutorial again I receive the same error message.

Wix support team have recommended me to go on this forum. I was hoping someone will offer me advice me what I might be doing wrong.

Kind Regards.

Anyone?

Hi,
It seems like you’ve missed a curly brackets. You can use the Format Code button to check where you’ve missed it:

Best,
Tal.