Issue with hiding a specific WooCommerce product in child theme functions.php
Hello,
I am using the Betheme child theme and trying to hide a specific WooCommerce product from all shop pages (shop, category, search, related products) while keeping the product active and accessible via direct link.
I have added custom code to my child theme’s functions.php
file to achieve this, but every time I add the code, the site breaks with a “There has been a critical error on this website” message.
Could you please help me with the correct way to hide a product without causing errors? If there are any recommended hooks or best practices to do this in Betheme, that would be greatly appreciated.
https://carbonvega.com/product/abc/ pw:12345
Best,
Steve
Comments
Hi,
What you ask for requires file customization, which, in reference to Item Support Policy, is not allowed. http://themeforest.net/page/item_support_policy
If you want to modify files but don't know how, you should contact your web developer. Item Policy says:
Item support does not include services to modify or extend the item beyond the original features, style, and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customization services or checking out the great service providers on Envato Studio.
Thanks