The “Add "View Product" button below add to cart button in WooCommerce archives pages“ answer code allows to display an additional “View Product” button below add to cart button on archive pages.
How to get this additional button to be displayed beside add to cart button (not below)?
Any help is appreciated.
3
Answers
It works for me. Need to add CSS to make them both on the place:
The div you added (better not to use inline CSS:
The “Add to cart” button:
Use id for your added button, and also for the add to cart button. (see image below).
A better solution, but a bit harder to implement will be to wrap both in a div and use flex CSS
I think your template changes the hooks order. You can be more aggressive and add your button through this filter:
Add the follows code snippets in your active theme’s functions.php –