Most of the articles on the internet are about How to remove / replace the "view product" or "read more" button.
I couldn't find something related to allowing both buttons working together.
I am interested in having both buttons working in parallel ( at the same time ). The first button to be displayed should be "View product" (to be opened on the same page) then underneath "Add to Cart"
At the moment, my store only displays the Add to cart button. I am using Storefront theme ( + custom child theme ).
Would anyone be so kind and tell me how to do this?
Use this custom function hooked in
woocommerce_after_shop_loop_item
action hook, to add your custom button linked to the product:Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
Tested and works.
Embedding your styles (related to author comments):
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
Tested and works.