Hi.
I’m trying to customize my Comments’ style in WP (fonts, colors, borders, background, etc.).
I finally tested everything today and I found unexpected problem - It looks like my Comments’ plugin generates a new code (wrapper??) for every new comment or reply.
I wanted to use nth-child, but I’m not sure how to do that now.
This is the code:
.margin-top-40 #comments #wpcomm #wcThreadWrapper .wc-blog-post_author:nth-child(2) .wc-blog-post_author:nth-child(6) #wc-secondary-form-wrapper-7_6{
background-color:#ffffff;
}
#wc-secondary-form-wrapper-7_6 .wc-field-comment .wpdiscuz-textarea-wrap .wc_field_input{
background-color:#ffffff;
}
.margin-top-40 #comments #wpcomm #wcThreadWrapper .wc-blog-post_author:nth-child(3) #wc-secondary-form-wrapper-8_0{
background-color:#ffffff;
}
.margin-top-40 #comments #wpcomm #wcThreadWrapper .wc-blog-post_author:nth-child(3) #**wc-secondary-form-wrapper-8_0** .wc-secondary-form-wrapper .wc-field-comment .wpdiscuz-item .wpdiscuz-textarea-wrap .wc_field_input{
background-color:#ffffff;
}
.margin-top-40 #comments #wpcomm #wcThreadWrapper .wc-blog-post_author:nth-child(1) #wc-secondary-form-wrapper-3_0{
}
See what I mean?
wc-secondary-form-wrapper-7_6
wc-secondary-form-wrapper-3_0
secondary-form-wrapper-8_0
Basically, for every new comment or reply to a comment I’ll have to manually customize that fields.
I hope there is an easier way to do that?
Thanks!