woocommerce if is child category code example
Example: woocommerce if is category page
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}