using the default header part and adding it to the global header fragment I am unable to hide the header with the conditions in the image below. Other options work, like user ID.
I think there may be a slight misunderstanding about how conditions work. Your conditions basically show in all cases because you are not doing anything to negate them.
If you want to hide for guests, you will want to add a “Do not show if”:
I don’t have time to test right now, I know there were some issues with this in the past. If it is not working, here are a couple of possible alternatives that may work:
Use username instead:
Create a shortcode and inside of it call the function in the second condition shown in the following screenshot:
a) Create a shortcode that calls this function:
See here for where to do those:
b) Add a shortcode condition based on what you created in step a: