Show Product category list in Woocommerce Wordpress Plugin without thumbnails

woocommerce, wordpress

Solution

You could use the following:

$args = array( 'taxonomy' => 'product_cat' );
$terms = get_terms('product_cat', $args);

if (count($terms) > 0) {
    echo '<p class="my_term-archive">';
    foreach ($terms as $term) {
        echo '<a href="/term-base/' . $term->slug . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '">' . $term->name . '</a>';    
    }
    echo '</p>';
}

Problem

I am using the following short code to list the product categories in woocommerce Wordpress plugin ``` <?php echo do_shortcode('[product_categories number=""]'); ?> ``` The problem is the category thumbnail that I need to get rid of. I want to hide it and doing it with CSS seems to be a big hassle. Is there anyway I can list the categories without the thumbnails appearing?

Original source