How to make a menu appear and pin at a certain part on the page?

Hi @ahmadnasriya

Thanks for all of this

The first section of code works perfectly and hides the menu.

When i add the second section of coding the menu doesn’t hide/do what its meant to do and re appear.

I think the issue may be to do with what the code is looking for to allow the menu to reappear and the website can already ‘see it’ in a sense therefore it doesn’t hide it in the first place.

Also i keep getting red dot at the end of the coding?