Archived topic
Change button "Add to cart" by icon .png
3 replies · Started by Alberto on June 19, 2021
Hi.
I'm trying to replace the "Add to Cart" button with my own .png, only on category pages (not single product page). A simple shopping bag icon would also do me a good job.
I've searched the forum and found something similar in this post, but it doesn't work for me.
https://generatepress.com/forums/topic/change-the-add-to-cart-button-to-an-icon-when-viewing-it-from-a-mobile/
Could you help me?
Thank you.
Hi Alberto,
This would be a question for WooCommerce' support team as the theme doesn't handle the Add to cart button from WooCommerce itself.
I did some Googling and believe this is what you need:
https://stackoverflow.com/questions/36307628/woocommerce-replace-add-to-cart-button-with-custom-button-link
http://hookr.io/filters/woocommerce_loop_add_to_cart_link/
Hope this helps.
Thanks Leo! I will investigate to change it.
No problem :)