If you are looking to hide tags in WooCommerce, there are a few different ways that you can do this. One way is to go to the Tags page in the WordPress admin area and uncheck the box next to the tag that you want to hide. This will remove the tag from all products that it is currently assigned to.
Another way to hide tags in WooCommerce is by editing the product page template. In your theme, locate the file called single-product.php and look for the line of code that displays the tags. This line will look something like this:
get_tags( ‘, ‘, ‘<span class="tagged_as">‘ . _n( ‘Tag:’, ‘Tags:’,
$tag_count, ‘woocommerce’ ) . ‘ ‘, ‘</span>‘ ); ?>
All you need to do is remove that line of code and save the file. This will cause the tags section to disappear from the product page completely.
PRO TIP: If you are using WooCommerce to sell products on your WordPress website, you may want to know how to hide tags from certain products. This can be useful if you have products that are similar but do not want to show the same tags on both products.
If you want to take things a step further, you can also add some code to your functions.php file that will prevent tags from being displayed anywhere on your site. Just add this code:
// Remove tags from products
function my_custom_remove_tags() {
global $wp_taxonomies;
$wp_taxonomies['product_tag']->show_ui = false;
// false - don't show UI
// also possible: $wp_taxonomies['product_tag']->show_in_menu = false;
// false - don't show in menu
// also possible: $wp_taxonomies['product_tag']->show_in_nav_menus = false;
// false - don't show in nav menus
// also possible: $wp_taxonomies['product_tag']->show_admin_column = false;
// false - don't show in admin column
// also possible: $wp->unregister('product-tag');
// unregister completely
}
add_action( 'init', 'my-custom-remove-tags' );
?>
Once you add this code and save it, tags will be completely removed from your WooCommerce site.
5 Related Question Answers Found
If you’re using WooCommerce to sell products on your website, you might want to hide the tags that are associated with each product. This can be useful if you don’t want customers to see all of the tags that are associated with a particular product, or if you want to keep your tags organized in a certain way. There are a few different ways that you can hide tags on WooCommerce product pages.
If you want to keep certain products out of sight on your WooCommerce store, you can hide them with a few simple clicks. This can be useful if you’re running a seasonal promotion and want to remove items from the catalog until next year, or if you’re selling digital products and don’t want customers to see them until they’ve purchased them. Hiding items in WooCommerce is easy to do and only takes a few clicks.
If you want to keep a product hidden from your WooCommerce store, there are a few ways you can do it. One way is to set the product’s visibility to “hidden.” You can do this by going to the product’s edit page and selecting “hidden” from the visibility drop-down menu. Another way to keep a product hidden is to put it in a “hidden” category.
To hide a product in WooCommerce:
Go to “Products” > “All Products”
Hover over the product you want to hide and click “Quick Edit”
In the Visibility drop-down, select “Hidden”. Finally, click “Update”. Your product will now be hidden.
If you want to hide specific products in your WooCommerce shop, there are a few different ways you can do this. One way is to simply set the product’s stock to zero. This will hide the product from your shop page, but customers will still be able to see it if they know the direct URL.