Add product categories under title - by fpercussion

1 reply2 participantsUpdated by Amzy Leel

  • Avatar: fpercussion
    fpercussion
    Participant

    Hi,
    How can I display product categories under product title on my single product pages? I’ve tried adding the following to the child theme’s functions.php, but it didn’t work:
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_print_category_name’, 20 );

    Is there something like that I can do?
    Thanks in advance,
    Sara

    1 Answer

    Avatar: amzy
    Amzy Leel
    Participant

    Normally you do not have to do anything for this.
    by default it will show the categories under the product name in single product page but it is not shown in your site and it is weird.

    you can check the default behavior here : https://www.8theme.com/demo/xstore/jewellery/product/open-leaf-bracelet/

    let us know your wp-admin login details to check this.

Want to reply? Log in to reply to this topic. No account yet? Create one first.

Log inCreate account