Is it possible to return the Trash icon instead of the text

This topic has 19 replies, 3 voices, and was last updated 2 months, 2 weeks ago ago by Luca Rossi

  • Avatar: Goostaf
    Goostaf
    Participant
    September 27, 2024 at 10:11

    Hello, a long time ago you helped us to make a text instead of the basket icon on the Add to cart buttons, is it possible to return it? To show you more precisely how to return it, we will do it ourselves a little later

    Files is visible for topic creator and
    support staff only.
    18 Answers
    Avatar: Goostaf
    Goostaf
    Participant
    September 27, 2024 at 10:17
    Avatar: Goostaf
    Goostaf
    Participant
    September 27, 2024 at 11:53

    I understand correctly that you need to remove the code from the css style and something from the documents /wp-content/themes/xstore-child/woocommerce/content-product-slider.php and /wp-content/themes/xstore-child/woocommerce/content-product.php But I don’t know what exactly

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 27, 2024 at 13:35

    Dear @Goostaf,

    We hope this message finds you well. If you have implemented customizations in the specified files, we recommend renaming the WooCommerce folder or the individual files by appending the prefix ‘-old’ to their names. Also, you should temporary remove the CSS that was implemented for such case too. Please proceed with this modification and verify if the issue persists.

    Should you require further assistance, do not hesitate to contact us.

    Best Regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Goostaf
    Goostaf
    Participant
    September 27, 2024 at 13:57

    I removed the style and added it to the files, but nothing changes, the inscription remains

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    September 28, 2024 at 10:13

    Maybe I’m not asking the question correctly, we want to return the standard icon to the Add to Cart buttons, instead of the text, as it is now 🙂

    Files is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    September 28, 2024 at 10:18

    If you can, just write us how to do it ourselves, we will update the theme and do it

    Avatar: Justin
    Luca Rossi
    Support staff
    September 29, 2024 at 14:28

    Hi @Goostaf,

    We’re not sure which custom codes you updated but you can take a look at this file from your child theme: xstore-child/woocommerce/content-product.php.

    Please note that the issues are coming from the custom codes are out of scope our support standard service we provides.

    Thanks for understanding!

    Best Regards,
    The 8Theme Team

    Avatar: Goostaf
    Goostaf
    Participant
    September 29, 2024 at 15:22

    You just did it for us, now we want to return the standard method, but we don’t know how, because you did something else in files in this topic: https://www.8theme.com/topic/is-it-possible-to-replace-the-trash-icon-with-the-word-add-to-trash/#post-310548 besides the style

    Avatar: Goostaf
    Goostaf
    Participant
    September 29, 2024 at 16:32

    I don’t understand how to return the icon instead of the text6 what you wrote in the topic, I edit, but nothing comes back, the icon only works when I click Add to cart with quantity, this icon is needed everywhere instead of the word “To cart”, can I do it?

    Please contact administrator
    for this information.
    Avatar: Goostaf
    Goostaf
    Participant
    September 29, 2024 at 17:27

    I hope I described it clearly, in general, we just want to return the trash icon instead of the text, if possible

    Files is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    September 29, 2024 at 18:49

    that’s how we did it, if you can remove the quantity selection and raise the button as we had on the screenshot, we will be very happy

    Avatar: Goostaf
    Goostaf
    Participant
    September 29, 2024 at 18:50

    and for some reason, the products are not available, the icon is also not displayed

    Files is visible for topic creator and
    support staff only.
    Avatar: Goostaf
    Goostaf
    Participant
    September 29, 2024 at 19:07

    I will write again to summarize
    1. now we have set the Add to cart with quantity setting and this partially solves our problem, the only thing is if you can remove the quantity selection, leave only the button and raise it, it will be great.

    2. There is no text on the buttons in the products, instead of an icon, can this be corrected?

    Avatar: Justin
    Luca Rossi
    Support staff
    September 30, 2024 at 07:06

    Hi @Goostaf,

    Please try adding this custom CSS:

    
    .content-product .quantity-wrapper {position: absolute;top: 25px;}
    .content-product .quantity-wrapper .quantity {
        opacity: 0;
    }
    

    2. There is no text on the buttons in the products, instead of an icon, can this be corrected?

    Can you please provide some screenshots? We’re still not clear.

    Thank you!

    Avatar: Goostaf
    Goostaf
    Participant
    September 30, 2024 at 07:57

    1. Thank you very much!
    2. I wrote it wrong, the items that have the status “Out of stock” have text instead of the icon for some reason.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    September 30, 2024 at 09:02

    Hi @Goostaf,

    In this case, we suggest you to hide the add to cart button when products are out-of-stock:

    
    .product.outofstock a.button.product_type_simple {
        display: none;
    }
    

    https://prnt.sc/ANxBoUV0wjDY

    Best Regards,
    The 8Theme Team

    Avatar: Goostaf
    Goostaf
    Participant
    September 30, 2024 at 09:11

    Thank you, we will do so 🙂

    Avatar: Justin
    Luca Rossi
    Support staff
    September 30, 2024 at 10:49

    If you need anything else, feel free to let us know.

    Best Regards,
    The 8Theme Team

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

You must be logged in to reply to this topic.Log in/Sign up

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