Hi Themeco,
Working locally, Wordpress 5.8.1, Pro 5.0.8.
Trying to add Titles to Header using Dynamic Content in a Headline element.
I have two Headline elements.
Headline element #1 for all pages except WooCommerce archive pages (product_cat, product_tag) I want to display the Post/Page title, i.e. {{dc:post:title}}
Headline element #2 for only WooCommerce archive pages (product_cat, product_tag) I want to display {{dc:archive:name}} or {{dc:term:name}} does not matter which, they both have the correct value.
Whilst I can return the correct Dynamic Content fields, I cannot get the Customize > Conditions correct. Both headline should not display at the same time.
Headline #1 should not display on WooCommerce archive pages (product_cat, product_tag) and only display on all other pages including the Shop and Single Product pages.
Headline #2 should display only on WooCommerce archive pages (product_cat, product_tag) and no other pages - it should not display on the Shop and Single Product pages.
I’ve tried conditions like Shop is being viewed, term has/has-not product_cat, term has/has-not product_tag, using string conditions where product_cat and product_tag has/has-no value, or archive has/has-not a value and many others with no luck.
I’ve also tried entering WooCommerce > Categories > Archive Title hoping this would replace the {{dc:post:title}} for WooCommerce archive pages (product_cat, product_tag) so would only need Headline #1, but this did not work either.
The problem pages seem to be the Shop and Single Product Pages.
I do not want to explicitly list terms and/or archive names, this defeats the object because every time a product_cat or product_tag is added the conditions needs be updated which is not sustainable.
How can this be done?