• Resolved Ali

    (@golali)


    hi

    i was wondering how to remove commas between product tags. I’m using oceanwp theme.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Niels Lange

    (@nielslange)

    Hello @golali,

    To remove the commas between the product tags, you’d have to overwrite the corresponding templates. On https://docs.woocommerce.com/document/template-structure/ you can find information on how to overwrite templates.

    Thread Starter Ali

    (@golali)

    Thank you for the prompt response. I guess the comma between tags comes from meta.php and more specifically, this part:

    <?php echo wc_get_product_tag_list( $product->get_id(), ‘, ‘, ‘<span class=”tagged_as”>’ . _n( ‘Tag:’, ‘Tags:’, count( $product->get_tag_ids() ), ‘woocommerce’ ) . ‘ ‘, ‘</span>’ ); ?>

    however, I’m not able to find the comma I need to delete from the snippet as I’m not good with coding. any help?

    Hi @golali – some working knowledge of code will be required, as you’ll need to override the corresponding template in your child theme. Since this requires site access, that’s not something I’m able to provide in the forums.

    If you need help getting those templates overridden and can’t figure out how to do so from our documentation, we highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    – Joey

    Thread Starter Ali

    (@golali)

    thanks anyways

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘remove commas between product tags’ is closed to new replies.