Is it possible to hide a section when member is logged in?

Is it possible to hide a section when member is logged in?

Yes, this is possible.

import wixUsers from ‘wix-users’;

Wix-Users-API is a depricated one → you shouldn’t use it anymore.
Thisfor you have the new Wix-Members-API.

2024-05-09 11_12_58-Window

First read the API and try to solve your problem by yourself.
Also take a look onto the numerous examples given inside of this forum.

Similar problems you can find in this post…

This one could be useful for you…

Maybe this one too…

…or this one…

…or this OLD BUT GOLD ONE ???