WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Single product: category-specific styling (1 post)

  1. matt6303
    Member
    Posted 8 months ago #

    I'd like to give a certain element on my single product pages a different style depending upon what category the product is in.

    I know that the post ID becomes a class on the body tag, allowing me to style on a per-product basis. But how might I make the category ID become a class on the body tag, allowing me to style on a per-category basis?

    http://wordpress.org/plugins/woocommerce/

Reply

You must log in to post.

About this Plugin

About this Topic