Hi,
I had used the code fro this post to great success for all categories.
I am looking to add text to specific categories only now.
any help is greatly appreciated.
thank,
Brent
Hi,
I had used the code fro this post to great success for all categories.
I am looking to add text to specific categories only now.
any help is greatly appreciated.
thank,
Brent
Hey Brent,
Thank you for reaching out to us. You can add the category slug name in the conditional tag to target the specific category: e.g find this line of the code:
<?php if ( x_is_product_category() ) : ?>
and replace it with:
<?php if ( x_is_product_category('your-category') ) : ?>
Replace your-category with the actual category slug, also see https://docs.woocommerce.com/wc-apidocs/function-is_product_category.html
To learn more about conditional tags in WordPress please see https://codex.wordpress.org/Conditional_Tags
Please note that this is beyond the scope of our support. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities.
Hope this helps!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.