A few years ago I was setting up a catalog style website for a client, and they wanted the add to cart button hidden which I thought I had done in woocommerce.php or functions.php, however neither of these files contain any sort of snippet that I can find to hide the add to cart button.
Are there any snippets I can add to re-add the button or will I need to manually search the files to find this bit of code I had used? From what I can see the button is ‘hidden’ and not removed but not entirely sure.
The button is hidden site wide, it does not show up on single product detail pages or within any shop page.
Any idea what PHP file other than these could possibly contain the code used to hide the button?
I checked most PHP files and cannot find any sort or remove_filter add_to_cart snippets anywhere.
Josh Range is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.