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:
Hey there,
picking up this topic since I am also facing issues here.
I want to create a preview for a modal which should appear on the home page of the site. However, the mentioned conditions “user logged in” doesn’t work (in any combination). I think that this is still kind of a bug, no?
For others facing that issue and just want to produce a preview (for client review). I didn’t want to make a shortcode, cause I tend to forget to delete such kind of stuff, so another solution would be to create a condition with URL Parameter and set it to review-preview with a value of true for example.
Then you can visit your page with ?review-preview=true