This topic has 6 replies, 2 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler
Hi,
I would like to remove both the amount number that appears after a category name on the shop page and product information (product code and categories) on the single page.
Hello,
Please, add this code in Custom CSS:
span.sku_wrapper {
display: none !important;
}
span.posted_in {
display: none !important;
}
Also, you need to comment the code in the wp-content/themes/legenda/woocommerce/content-product_cat.php in lines 64 and 65:
if ( $category->count > 0 )
echo apply_filters( 'woocommerce_subcategory_count_html', ' (' . $category->count . ')', $category );
Regards,
Rose Tyler.
Hi,
Thanks, got the product information away, but now still the “product information” title is left behind. What is the code for removing that?
Also I’m not sure what you mean with “comment”? What should I do with that code?
Hello,
Try to add this code in Custom CSS:
.single-product .product_meta h4 {
display: none;
}
See screenshot: http://prntscr.com/ddyt3g or you can delete this code.
We recommend to make any changes in theme source files in child theme https://8theme.com/demo/docs/legenda/index.html#!/child_theme https://codex.wordpress.org/Child_Themes so you won’t lose your customizations after the next theme update.
Regards,
Rose Tyler.
How could I remove also the category name below the category picture, on shop page?
.post-type-archive-product .product-category h5 {
display: none;
}
Regards
Tagged: #information, category, product, remove, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up