Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

how to remove the word "answers" and leave only the number?

0 votes

how to remove the word "answers" and leave only the number on the yellow box?

 

 qa-include/qa-theme-base.php

                         function a_count($post)

                        {
 
                                $this->output(@$post['answers_raw']);
                                // You can also use $post['answers_raw'] to get a raw integer count of answers
                                $this->output_split(@$post['answers'], 'qa-a-count', 'SPAN', 'SPAN',
                                @$post['answer_selected'] ? 'qa-a-count-selected' : null);
                }
 
asked Oct 19, 2011 in Q2A Core by Matías Alberto Ferná

1 Answer

+1 vote
 
Best answer

@$post['answers']['suffix'] = '';

answered Oct 20, 2011 by NoahY
selected Oct 20, 2011 by Matías Alberto Ferná
The whole qa_content variable is here:

http://wiki.question2answer.org/doku.php/development/qa-content

Best to learn how this works and figure out where the parts you are looking for exist.
great it solves my problem!