Element Conditions Can be Confusing

Sometimes I feel like I’m losing my mind when working with conditions.

Trying to do a simple thing: Only display an element for logged out users AND only if it is a single view of a post AND (I want to add this) NOT on any category archive page. The way this is set up now still has my element showing on category archive pages. Can’t get it right:

Screenshot 2024-12-11 at 2.27.14 PM

What I am doing is displaying an overlay with a popover like this:
Screenshot 2024-12-11 at 3.40.32 PM

The element is in my footer and I am trying to set conditions for where I need it displayed.

Ultimately, all I really want is for this element to be displayed to users who are not logged in on single posts only. It is in the footer because that is a global element that is displayed site wide.

What’s the best way? What m I missing? Thanks!

Hello @simeoned,

Thanks for writing in! Your condition will only work for the Not logged in and on single posts. However, the condition still true when you are on an archive page. The best thing you could do is duplicate your footer to create specific footer for the log in and not logged in users instead. You will have much more control with method because the footer layout conditions has the “All Archives” and/or “All Singular” condition.

Hope this helps.

Yeah I figured that. It is unfortunate to have to duplicate an asset like that for this reason though. Introduces extra maintenance overhead that I would rather avoid.

Why aren’t the options I am after available for configuring the conditions on the element itself?

Hello @simeoned,

What we do have in the element conditions are the general conditions that will always apply in any page. Please be advised that there are conditions that are ONLY applicable to the layouts such as the “All Singular” or “All Archives”. These are template layout conditions which you can always check out in this template hierarchy:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.