Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.1k views
in Q2A Core by

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);
                }
 

1 Answer

+1 vote
by
selected by
 
Best answer

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

by
editing qa-include/qa-theme-base.php is a bad idea, since it will be overwritten when you upgrade; better to put it in a custom theme or custom layer.
by
it works , and can you please tell me how to remove 'votes' keyword?
by
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.
by
great it solves my problem!
...