Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm new to WooCommerce and my products are currently being laid out with a thumbnail, product title, and price. Ideally I would like to have them horizontal, with a small excerpt to the right of the image.

Now, can this be done within the WooCommerce interface, or will I have to add functions to the PHP and then style with CSS? I couldn't find anything in the documentation to answer this.

Thanks in advance!

share|improve this question

1 Answer 1

This is indeed something that you need to make specific page templates for. Just CSS won't do the trick because you need to add a function to display the excerpt.

you could do something like this:

add_action( 'wp' , 'add_excerpt', 20);

function add_excerpt() {
    if ( is_shop() || is_product_category() || is_product_tag() ) {
        add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_excerpt', 5);
    }
}

which will add the excerpt to the product listings.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.