Pro 4.0 Headers not working

Hello,
After the recent update. I have problems with headers

I have created 2 headers
The first one is showing, on the entire site the other one created for shop and product categories is not showing and I can confirm that conditions are set properly and whey I try to preview shop it redirects to blog page.
Deactivated all plugins but didnt work
Also cleared the cache but unlucky
Regenerated missing pages (in case would help) but still not working

Edited:
now its working just on shop page but not in product category

PHP Fatal error: Uncaught Error: Call to undefined function is_product_category() in /wp-content/themes/pro-child/functions.php:30

This is what the logs show
Can you please help

Hi @leurent,

Thanks for reaching out about this. From that error message it looks like you might have some custom code to help with header assignments. Could you try removing it? Previous versions of Pro didn’t have rules for assigning headers to product categories and custom code was needed, but in the latest version you can do that without custom code by adding a new condition to your Header assignments (sounds like you might have already added it).

Hi yes just found it.
Totally forgot about that
Thank you

Ok great! Glad to hear it’s working now.

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