Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by
As per Q2A if any answer marked then it will add title as "Best Answer".

We want to update this text with our title as per our site's name.

Can anyone suggest the right place and code that we can update?
Q2A version: 1.8.3

1 Answer

0 votes
ago by
selected ago by
Best answer

1. Edit file qa-include/lang/qa-lang-question.php

2. Change this line accordingly:

'select_text' => 'Best answer',

If you want to do things even better, you can use a translation. Refer to this section in particular: https://docs.question2answer.org/translate/#customizing-selected-urls-or-phrases

ago by
Also, after marked question as answered it's adding suffix [Closed]. We also want to change this text.
ago by
Not sure what theme you're using but that's not happening in SnowFlat. Anyway, most liketly the theme is getting the value from :


'closed' => 'closed',
ago by
I must try this one. Thanks!
ago by
We are using Donut theme.