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

I need to add another button to the 'edit hide answer' and 'comment' buttons that appear under each question.

I have a custom theme already, but I am confused as to how I should insert this button and add a nice css class to it.

I really appreciate any help with this, thank you.

2 Answers

+3 votes
by
This works (tested):

        function q_view_buttons($q_view)
        {
            $q_view['form']['buttons'][] = array(
                'label' => 'yourlabel',
                'tags' => 'NAME="yourname"',
            );
            qa_html_theme_base::q_view_buttons($q_view);

        }
by
But if you want custom css, I think you will have to dig further... this only copies the css of the other buttons.
by
Hi Noahy, where I put this code?
+4 votes
by
...