Title: Change CSS class
Last modified: October 20, 2022

---

# Change CSS class

 *  Resolved [merijn29](https://wordpress.org/support/users/merijn29/)
 * (@merijn29)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/change-css-class/)
 * I want to change the layout of the specification table by using custom CSS. If
   I use the class .dwspecs-product-table, as suggested in the FAQ it also affects
   my other tables on my website. Is it possible to change this class to make it
   unique?
 * I want to modify it without changing all the other tables on my website..

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Dornaweb](https://wordpress.org/support/users/dornaweb/)
 * (@dornaweb)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/change-css-class/#post-16162764)
 * Hi
    `.dwspecs-product-table` selector only applies to specification tables, if
   you mean you want to apply styles only to a specific product, probably you can
   prepend body class to your selector, something like `body.postid-15 .dwspecs-
   product-table` will only apply to product page with id of `15`
 *  Thread Starter [merijn29](https://wordpress.org/support/users/merijn29/)
 * (@merijn29)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/change-css-class/#post-16187471)
 * Hello and thank you for your reply.
 * Sorry for the confusion. If I style the td and th elements, then this will also
   apply on the other tables on my website.
 * Or if I use the tr:nth-child(even) it also affect the other tables on my website.
   So I put .dwspecs-product-table in front of it, now its working fine.
    -  This reply was modified 3 years, 6 months ago by [merijn29](https://wordpress.org/support/users/merijn29/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change CSS class’ is closed to new replies.

 * ![](https://ps.w.org/product-specifications/assets/icon-256x256.png?rev=1781915)
 * [Product Specifications for Woocommerce](https://wordpress.org/plugins/product-specifications/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-specifications/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-specifications/)
 * [Active Topics](https://wordpress.org/support/plugin/product-specifications/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-specifications/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-specifications/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [merijn29](https://wordpress.org/support/users/merijn29/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/change-css-class/#post-16187471)
 * Status: resolved