It works as expected on my end, here are the results after adding the code snippet on my test site:
You need to add this code to your child theme’s?functions.php?file or via a plugin that allows custom functions to be added, such as the?Code snippets?plugin.
Please don’t add custom code directly to your parent theme’s?functions.php?file as this will be wiped entirely when you update the theme.
After checking the “Read More” button’s HTML code I noticed that it is not part of the Core WooCommerce but created by the Crocoblocks plugin. This may be the reason why the previously provided code did not work.
I recommend contacting Crocoblock plugin support for further assistance regarding hiding the Read More button.
You added the “Add to Cart” button using the JetWooBuilder addons, which is why the code snippet from our guide didn’t function as expected. The code we shared on our site is specifically designed to work with the default button and the shop page only. It doesn’t support buttons added through third-party plugins.
Since this is a third-party plugin which we don’t provide support for (please see our Support Policy, it would be best to reach out to the plugin’s developers for further assistance. I am sure they will have no problem supporting you there.
Additionally, you can add this code snippet to your child theme’s functions.php, or use the Code snippet plugin to check if the “Read more” button gets hidden or not: