×

Please Login or Register to continue.

5
(914 Views)

I am in trouble. How to remove woocommerce product tags and categories from the single product page. I am using Woocommerce wordpress plugin for products. There are lot of products tags and categories shown on the Single product page. 

Remove woocommerce products tags and categories from Single product page

As you can see, there are a lot of woocomercces product tags and categories.

I want to remove these tags and categories from every Woocommerce products page.  

(1K Points)
in Wordpress

Share

4 Answers
(9.2K Points)
4

This is a general issue with WooCommerce meta tags and categories. You can remove tags and categories from a single product page. Products meta removes by the additional CSS. Add additional CSS code.

.single-product .product_meta{
 display:none
 }

single_product and product_meta are the CSS class of WooCommerce. You have to make this none. Here, I have done it.

You can find these CSS classes on-page. Use inspect the element and find the CSS class.


Comment
I removed tags and categories. Thank you so much.
rajatmehra4005 01 Sep 2019

(4.1K Points)
4

WooCommerce plugin helps to create an e-commerce website. We can create unlimited products and categories with it. This is the default. The problem starts with the single product page. Every single product page contains a lot of tags and categories just because of the WooCommerce meta. You can solve it using CSS.  Use display:none and make CSS classes none. Find the CSS classes using inspect and pointer to category or tags.  

WooComerce Meta tags and categories CSS class - 

single-product  product_meta

Disable both CSS classes using display:none. 

This is the process of removing tags and categories from woocommerce single product page. 


Comment
Yes. Great information. Thank you.
rajatmehra4005 01 Sep 2019

(7.3K Points)
3

You can delete tags and categories from a woocommerce single product page using additional CSS. WordPress has a custom CSS option. You can use the custom edit option and delete tags and categories. It will be easy. 

1. First of all, go to Options.

2. Then click on General. 

3. You will find the custom CSS

Inspect the page and find out the CSS classes or add the below code in the WordPress custom CSS file .

.single-product span.posted_in {

    display: none !important;
}
.single-product span.tagged_as {
    display: none !important;
}

Hope it will help.

Comment me if another issue will occur. 

 


Comment

(2.2K Points)
2

One of the best part is the PHP code. You can remove categories and tags from the function.php file. Delete or remove woocommerce products category and tags like this - 

First of all, click on the appearance on the WordPress dashboard. Appearance holds the theme process and display. Now click on a function.php file. 

Add the meta category PHP code inside the function.php file. Paste this code bottom.

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );

 It will help you. 

 


Comment

Related Questions :-

Your Answer

You can post your answer after login..