Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+6 votes
990 views
in Q2A Core by
I want to add the ask button here, how i can do this?

 $this->output('<div class="qa-q-item-stats">');

        $this->output('<div class="qa-left">');

        $this->voting($q_item);

        $this->output('</div>');

        $this->output('<div class="qa-right-box">');

        $this->a_count($q_item);

        parent::view_count($q_item);

        $this->output('</div>');

        $this->output('</div>');
Q2A version: ask

1 Answer

0 votes
by
selected by
 
Best answer

The code below is for displaying the "Ask a question" button. Write the button wherever you need it to appear

$this->output('<a href="' . qa_path('ask', null, qa_path_to_root()) . '" class="qa-ask-question-button qa-btn-primary ' . $this->ask_search_box_class . '">' . qa_lang_html('main/nav_ask') . '</a>');
by
And code for anwer button?
by
plz answer that i need to know
by
I will add this button in the next version that will be released next week
...