For the product category page (which is actually a Woocommerce archive type of page) use the condition:
is_product_category( ‘shirts’ )
For the product page itself use the condition:
has_term( “shirts”, “product_cat” )
Related Posts:
- get_term_meta returns false in widget
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- Woocommerce hook after creating order? [closed]
- Simple rich text editor in Text widget?
- Can’t set proper WooCommerce language translation [closed]
- How to authenticate custom API endpoint in WooCommerce [closed]
- Updating WooCommerce variable product stock issue
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- Override Widget class in plugins with custom plugin
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Themes VS Plugins [duplicate]
- Changing widget options via the functions.php when there are no hooks
- Add CSS class to add-to-cart button, Woocommerce [closed]
- Remove action from woocommerce barcode plugin [closed]
- Override core woocommerce class
- WooCommerce – Where is functions.php?
- XML sitemap over product variations
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- How can I display a contact form for out of stock products in WooCommerce?
- HTML in WooCommerce settings
- WooCommerce Custom Product to checkout
- Get post values of form created by widget in sidebar
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- How to enable specific plugin only based around shop manager role?
- Why required field not working in Country dropdown in WooCommerce –
- How to check current user before all actions and filters?
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- I want to disable Cash on delivery based on product tag in woocommerce Checkout Page [closed]
- Is there a way to create custom product templates based on category on WooCommerce?
- WooCommerce specifc variations for specific user role [closed]
- Setup page on first login on multisite
- Add content to footer – above wp_footer
- Redirect to another page using contact form 7? [closed]
- How to get a list of bundled products using wp_query in woocommerce
- Repeated Output in Widget
- WordPress Apply filter in plugin causes 500 internal error
- How to get the particular product quantity in orders in Woocommerce [closed]
- Creating a widget and missing jQuery
- Custom template for all woo commerce categories
- Is it possible to instantiate a new WC_Cart?
- Plugin showing error
- Sell access to form [closed]
- I want to filter my products with attributes [closed]
- Accessing widget information
- Setting text widget to one page only
- How to add captcha to publish widget
- Automatic recurring payment using YITH subscription and Dokan Stripe
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Change Dashboard URL from wp-admin to wp-admin/index.php
- How To Use do_shortcode with WooCommerce One Page Checkout
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Widgets are not displaying in the admin panel
- Can I add Short Code Of A Plugin In The Code Editor of WordPress?
- Adding custom post category to categories widget
- woocommerce: Customize email with item total count
- Save order without sending the invoice / order details woocommerce [closed]
- show wc_add notices on particular page in woo commerce custom plugin development
- Update widget values from ajax function
- The styles in the recent posts widgets plugin not working
- Make modification of add_to_cart button specific to single page
- How to get the checkout form data from checkout page when place-order button is clicked
- Product Page loads terribly slow when product gallery images are added
- How to make WooCommerce multiple filter with custom meta fields
- One WooCommerce Store to multi distributor sites
- Custom form data not displaying in cart page?
- best way to handle subscriptions with a licence?
- How to disable a widget area of a specific page?
- Is there a request for products plugin for WooCommerce
- woocommerce with external ftp site
- Only return taxonomies that are linked to a category & product
- WordPress eMails not working
- Add WooCommerce vendor slug to auto-generated SKU
- Custom plugin issue – Notice: Trying to get property of non-object in
- fetch price from different table woocommerce
- Cannot save a custom meta field in quick edit
- how to make settings page for woocommerce plugin?
- redirect to a custom page
- Widget display in theme
- How to add styling and script to a custom widget plugin
- change product image url in widgets & shop page
- woocommerce blank page after clicking add to cart [closed]
- How know the “admin” blog from wordpress multisite?
- twitter widget loads properly in all themes except my own theme?
- How to get certain part from widget
- What method should I use for a sidebar widget that reads latest posts?
- Last article Widget with text preview and more button
- Woocommerce Bookings – Resource needs to be allocated for part of the booking duration, not the whole booking
- Move related products after product summary? [closed]
- Turning Existing Eccommerce Site into Multi-SIte
- Can’t edit Contact Us form on front page
- Woocommerce – Product Description heading [closed]
- Visual Composer Data Source?
- Woocommerce disable checkout on specific day
- Hook for single product thumbnail
- Woocommerce where to set the Price Suffix [closed]
- Is there a method or plugin to download my products in WooCommerce?
- Sidebar Slideshow widget with text [closed]
- Show WooCommerce products based on query parameters on redirect
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?