Remove the label in the code - by Goostaf

This topic has 4 replies, 2 voices, and was last updated 4 years, 9 months ago ago by Olga Barlow

  • Avatar: Goostaf
    Goostaf
    Participant
    March 4, 2021 at 17:24

    Hello, I understand that maybe this one is not related to the topic, but can you tell me how to remove the label with the name in the product card as on the screen, we cannot find it in the code for some reason .. in which file does it lie? Thank you in advance!

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 4, 2021 at 20:21

    Hello,

    That is not related to our theme but to WooCommerce plugin and attributes of the woocommerce_template_loop_add_to_cart function that we use to display add to cart button.
    If you want to change it you can copy the mentioned function to child theme and edit it according to your needs https://wp-kama.ru/plugin/woocommerce/function/woocommerce_template_loop_add_to_cart

    Regards

    Avatar: Goostaf
    Goostaf
    Participant
    March 5, 2021 at 07:34

    Thank you, this is what I was looking for, and in order not to touch these files after the update, you need to create the same folders in the child theme (woocommerce / includes / wc-template-functions.php) and there is already a fixed file, right?

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 5, 2021 at 09:55

    Hello,

    No, copy only woocommerce_template_loop_add_to_cart function to child theme functions.php and edit this function. Don’t copy the mentioned file, it won’t work.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Remove the label in the code’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.