Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
725 views
in Q2A Core by
Is there anyway to configure Q2A to change the colour of the number of answers box to reflect that one of the answers has been marked as a 'best answer' ?

1 Answer

0 votes
by
Please see: http://www.question2answer.org/qa/3305/it-possible-to-show-on-main-page-the-question-has-best-answer#a3306

Basically, you need to use an advanced theme to modify the HTML that is output if a question has a best answer selected.
by
I'm assuming that now you don't need to do a core hack for this? (Since you said "This will be done in the next release")
Perhaps you could add a class to each box if it has a best answer - that way it's much easier for others to style?
by
You're right. This must have fallen between the cracks and I've made a note to add it in the next release.
by
Excellent, in which case I'll probably wait until the next release rather than modify the code to avoid maintenance headaches.
by
Is this already implemented? I want to change the background color of the nr of answers if the best answer has been indicated. Do you have an example how to do this?
by
From 1.5.4 on there is a CSS class .qa-a-count-selected added to the answer count field.

You could use CSS3 to add "best answer selected" to the answer field using:

.qa-a-count-selected:afte.qa-q-list-item {
position:relative;
}
.qa-a-count-selected:after {
font-size:10px;
color:#FFA540;
content:"Best selected";
position:absolute;
left:153px;
top:95px;
width:35px;
}

OR as stated in the question to change the background color:

.qa-a-count-selected {
  background:#FFCCCC;
}
...