SOLVED: Apply Element Conditions which equal Template Conditions

i have a product archive template with set conditions:

i have an element in my header template, which i’d like to appear where the product archive template is applied (product category, tag, attribute, and search archives).

another words, the same conditions, but for the element. not sure the best way to achieve this, as the conditions available appear different for elements versus templates.

thanks!

bump.

‘dynamic data’ perhaps?

Hi @floridaseating ,

If I understand you correctly, you want to hide or show certain element if currently inside archive page?

You could use some WordPress condition functions in Element condition.
{echo:is_archive}
{echo:is_tag}
{echo:is_tax(‘my_tax’)}

and many more

https://codex.wordpress.org/Conditional_Tags

Regards,
Jenn

1 Like

perfect. thanks! that did it.