Category listing | dot - by DIPHA - on WordPress WooCommerce support

Solved5 replies2 participantsUpdated by Eva Kemp

  • Avatar: DIPHA
    DIPHA
    Participant

    Hello,

    it’s just a small detail but there is a dot at the end of the category listing of the product page that seems out of place. It is also there when only one category is listed.

    http://imgur.com/58hZqzW

    Is there an option to deactive this?

    Cheers

    Melanie

    5 Answers

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    In this case edit the file wp-content/themes/legenda/woocommerce/content-single-product.php in line 68 and remove the dot before the code </span>' ); in this string: echo $product->get_categories( ', ', '<span class="posted_in">' . _n( 'Category:', 'Categories:', $size, 'woocommerce' ) . ' ', '.</span>' );

    Regards,
    Eva Kemp.

    Avatar: DIPHA
    DIPHA
    Participant

    Hello Eva,

    thank you! Is there a way to do this without editing the php files? Maybe using css? I have a child theme active but would prefer not to modify the php files since I possibly get problems when updating the theme. Is this correct?

    Cheers

    Melanie

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Unfortunately it can’t be done via css, you have to edit the file. Copy it to your child theme folder and edit it in there not to lose changes after theme update.

    Regards,
    Eva Kemp.

    Avatar: DIPHA
    DIPHA
    Participant

    Hello Eva,

    ok

    Cheers

    Melanie

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

The issue related to '‘Category listing | dot’' has been successfully resolved, and the topic is now closed for further responses