• Resolved merijn29

    (@merijn29)


    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

    (@dornaweb)

    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

    (@merijn29)

    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 1 year, 5 months ago by merijn29.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change CSS class’ is closed to new replies.