Website Building » WooCommerce » How Do I Hide Tags on WooCommerce Product Page?

How Do I Hide Tags on WooCommerce Product Page?

Last updated on December 21, 2022 @ 5:27 pm

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.

One way to hide tags on WooCommerce product pages is to use the “Hide Tags” setting in the WooCommerce settings. To do this, go to WooCommerce > Settings > Products > Product Tags. Then, check the box next to “Hide Tags”.

This will hide all tags from being displayed on your product pages. If you only want to hide certain tags, you can also uncheck the boxes next to the tags that you want to display.

Another way to hide tags on WooCommerce product pages is by editing the code of your theme. If you’re comfortable editing code, you can add a bit of code to your theme’s functions.php file that will hide all tags from being displayed on your product pages. To do this, add the following code:

// HideTags
function my_hide_tags() {
if ( 
   is_product() ) { 
   remove_action( 
   'woocommerce_product_meta_end', 
   'woocommerce_template_single_meta' ); } 
} 
add_action( 'wp', 'my_hide_tags' );

If you only want to hide certain tags, you can also use a plugin like WooCommerce Hide Product Tags. This plugin lets you specify which tags should be hidden on your product pages.

You can choose to hide all tags, or only certain tags.

Hiding tags on WooCommerce product pages can be useful if you want to keep your tags organized in a certain way, or if you don’t want customers to see all of the tags that are associated with a particular product. There are a few different ways that you can hide tags on WooCommerce product pages, including using the “Hide Tags” setting in the WooCommerce settings, or adding a bit of code to your theme’s functions.php file.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.