Problem:
The customer created WooCommerce archive pages using Toolset and wanted to display a widget in those archive pages only. They used the is_product_category() conditional wrapper, but the widget content did not appear on the front end. The customer was unsure if a different conditional wrapper was needed because the WooCommerce archive was created using Toolset.
Solution:
We suggested using the woocommerce_page_title hook to add the conditional, which worked in a similar setup. Additionally, we provided an alternative solution involving the creation of a custom shortcode [is_tax_sc] to check if the current page is an archive page of a specific taxonomy (in this case, 'product_cat'). This shortcode could then be used with Toolset’s conditional shortcode to display the widget only on the product archive pages. The customer later confirmed that the issue was resolved after switching from a Genesis page hook to a WooCommerce hook.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Sao_Paulo (GMT-03:00)
This topic contains 3 replies, has 2 voices.
Last updated by 4 months, 1 week ago.
Assisted by: Mateus Getulio.