This topic has 4 replies, 2 voices, and was last updated 8 years, 6 months ago ago by Jack Richardson
Hi, how can I hide the category product count and sort dropdown? Please see what I’m talking about at
http://www.jefferson-rentals.com/IMAGES/TEMP/remove-sort.jpg and http://www.jefferson-rentals.com/IMAGES/TEMP/remove-count.jpg ?
Hello.
To hide sort dropdown use this css code in custom.css:
.woocommerce-ordering {
display: none;
}
To create custom.css you need rename default.custom.css to custom.css in wp-content/themes/xmarket directory via FTP and enable it in XMarket – General, tick “Enable Custom CSS file”.
As for the category product count remove or comment the following code in wp-content/themes/xmarket/woocommerce/content-product_cat.php:
<?php if ( $category->count > 0 ) : ?>
<mark class="count">(<?php echo $category->count; ?>)</mark>
<?php endif; ?>
Best regards,
Jack Richardson.
Thanks. I thought there was a way to run off the product count through the admin panel options. I had it turned off earlier but couldn’t find it again. I looked under both WOOCOMMERCE and Xmarket settings. Do you know if I can turn it off without adjusting the code?
Hello,
Sorry, but you have to edit theme files to remove product count.
Best regards,
Jack Richardson.
You must be logged in to reply to this topic.Log in/Sign up