Reply 305914 to: Categories above the product name
Olga Barlow
Support staff
October 20, 2021 at 08:51
Hello,
Then replace the previous code by this one add_action( 'woocommerce_single_product_summary', 'etheme_product_cats', 2 );
And don’t choose Primary category in the single product settings https://prnt.sc/1wtkawh