WordPress.org

Forums

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

  1. matt6303
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic