You will use is_singular(‘product’) conditional tag. Are you using the excerpt_more filter for read more button? I am afraid what kind of PHP script you are using for read more and buy product button.
‘buy product’ button concerns external products. It’s displayed on the single product page and also on the Homepage and the category page.
I wish that ‘buy product’ button displayed only on the single product page and NOT appears on Home or Category.
I don’t try any of those codes. unfortunately, I’m not techy.
Thx
Any help, please.
Any straight code to do this task.
Thx in advance.
If you would like to hide the Add to Cart button on the shop and category pages but leave it on the product pages, here are a couple of solutions in the comments here – https://stackoverflow.com/questions/26976296/hide-add-to-cart-button-only-on-woocommerce-shop-category-pages/52578242
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.