[Resolved] Vertical List Product Categories

Home Forums Support Vertical List Product Categories

  • This topic has 5 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #1242158


    I have some woocommerce products that belong to more than one category. In the product view, the categories are all displayed online, one after the other.

    Would it be possible to display all categories in list format, that is, one below the other?

    Thank you in advance.

    Customer Support

    Hi there,

    the CSS is simple enough:

    .single-product .product_meta .posted_in a {
        display: block;

    However the , separator cannot be removed easily using CSS without removing the word Categorías as well.

    To remove the comma you would need to copy this template to your child theme:


    And on Line 34 that i have highlighted change it to:

    <?php echo wc_get_product_category_list( $product->get_id(), '', '<span class="posted_in">' . _n( 'Category:', 'Categories:', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '</span>' ); ?>


    Thank you very much for your answer, David

    I downloaded the template called meta.php and copied it to the generatepress_child theme folder.

    I have placed the css code that you indicated and I can see the categories in the list, but I still see the commas …

    I don’t know if I’m doing something wrong.

    I am testing on my local server so as not to compromise the production site.

    Thanks since now.

    Customer Support

    The file needs this folder structure:



    Thanks, David!

    It worked perfectly!

    Customer Support

    Awesome 🙂 Glad to be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.